Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1209360
| From | Hartley Sweeten <HartleyS@visionengravers.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH V2] Watchdog: Fix parent of watchdog_devices |
| Date | 2015-08-18 18:50 +0200 |
| Message-ID | <pYSfh-3x6-45@gated-at.bofh.it> (permalink) |
| References | <pYS5B-3kN-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tuesday, August 18, 2015 9:34 AM, Pratyush Anand wrote: > > /sys/class/watchdog/watchdogn/device/modalias can help to identify the > driver/module for a given watchdog node. However, many wdt devices does not set > its parent and so, we do not see an entry for device in sysfs for such devices. > > This patch fixes parent of watchdog_device so that > /sys/class/watchdog/watchdogn/device is populated. > > Exceptions: booke, diag288, mpc8xxx, octeon, softdog and w83627hf -- They do not > have any parent. Not sure, how we can we identify driver for these devices. > > Signed-off-by: Pratyush Anand <panand@redhat.com> > --- [snip] drivers/watchdog/ep93xx_wdt.c | 1 + [snip] diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index 7a2cc7191c58..0a4d7cc05d54 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c @@ -132,6 +132,7 @@ static int ep93xx_wdt_probe(struct platform_device *pdev) val = readl(mmio_base + EP93XX_WATCHDOG); ep93xx_wdt_wdd.bootstatus = (val & 0x01) ? WDIOF_CARDRESET : 0; ep93xx_wdt_wdd.timeout = timeout; + ep93xx_wdt_wdd.parent = &pdev->dev; watchdog_set_nowayout(&ep93xx_wdt_wdd, nowayout); For ep93xx_wdt.c, use whichever tag you prefer: Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Thanks, Hartley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V2] Watchdog: Fix parent of watchdog_devices Pratyush Anand <panand@redhat.com> - 2015-08-18 18:40 +0200 RE: [PATCH V2] Watchdog: Fix parent of watchdog_devices Hartley Sweeten <HartleyS@visionengravers.com> - 2015-08-18 18:50 +0200
csiph-web