All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] xen_wdt: use the watchdog subsystem
@ 2017-11-14 16:23 Radu Rendec
  2017-11-14 16:23 ` [PATCH v3 1/2] watchdog: " Radu Rendec
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Radu Rendec @ 2017-11-14 16:23 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Wim Van Sebroeck, linux-watchdog

Hi Guenter,

Attaching v3 of the xen_wdt patch, including the dev_info() fix. Please
note that I had to make some additional changes to make this work - as
described in my previous email (included below for your convenience).

8<----------------------------------------------------------------------

On Sat, 2017-11-11 at 08:40 -0800, Guenter Roeck wrote:
> dev_info has that odd "wdt: " header because DRV_NAME is set to "wdt",
> which doesn't really make much sense. Please use something more sensible
> for DRV_NAME and use dev_info.

The trouble is (was) that the device is matched against the driver by
the name, so the device name has to be the same as the driver name.
Then, regardless of what the name is, __dev_printk() will print it
twice (once as the driver name and once as the device name).

As a workaround, after looking at platform_match(), I added an id_table
to the platform_driver struct and now the match is done by that. Then
the driver name can be different.

I set the driver name to "xen_wdt" and the device name to "watchdog".
Now the messages (using dev_info()) look like this:

xen_wdt watchdog: initialized (timeout=60s, nowayout=0)

At least this looks more meaningful; I hope it's ok.

8<----------------------------------------------------------------------

Radu Rendec (2):
  watchdog: xen_wdt: use the watchdog subsystem
  watchdog: xen_wdt: remove info message and version number

 drivers/watchdog/xen_wdt.c | 258 +++++++++++----------------------------------
 1 file changed, 59 insertions(+), 199 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-15 18:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-14 16:23 [PATCH v3 0/2] xen_wdt: use the watchdog subsystem Radu Rendec
2017-11-14 16:23 ` [PATCH v3 1/2] watchdog: " Radu Rendec
2017-11-15 14:58   ` Guenter Roeck
2017-11-15 15:34     ` Radu Rendec
2017-11-15 16:26       ` Guenter Roeck
2017-11-15 16:46         ` Radu Rendec
2017-11-15 18:21           ` Guenter Roeck
2017-11-14 16:23 ` [PATCH v3 2/2] watchdog: xen_wdt: remove info message and version number Radu Rendec
2017-11-14 17:31 ` [PATCH v3 0/2] xen_wdt: use the watchdog subsystem Guenter Roeck
2017-11-14 18:08   ` Radu Rendec

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.