[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <684f00b4-9161-4bca-a94c-8c44577bafca@icloud.com>
Date: Wed, 2 Jul 2025 20:13:43 +0800
From: Zijun Hu <zijun_hu@...oud.com>
To: Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jean Delvare <jdelvare@...e.com>, Guenter Roeck <linux@...ck-us.net>,
Rudolf Marek <r.marek@...embler.cz>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
"James E . J . Bottomley" <James.Bottomley@...senpartnership.com>,
Helge Deller <deller@....de>, "David S . Miller" <davem@...emloft.net>,
Andreas Larsson <andreas@...sler.com>
Cc: Thadeu Lima de Souza Cascardo <cascardo@...lia.com>,
linux-kernel@...r.kernel.org, linux-hwmon@...r.kernel.org,
linux-watchdog@...r.kernel.org, linux-parisc@...r.kernel.org,
sparclinux@...r.kernel.org, Zijun Hu <zijun.hu@....qualcomm.com>
Subject: Re: [PATCH v2 7/9] char: misc: Allocate 4 more fixed minors for
watchdog
On 2025/7/2 02:45, Arnd Bergmann wrote:
> On Tue, Jul 1, 2025, at 17:24, Zijun Hu wrote:
>> From: Zijun Hu <zijun.hu@....qualcomm.com>
>>
>> There are drivers which needs more fixed minors for watchdog, but
>> watchdog only has one fixed minor currently, it causes hardcoded and
>> unregistered fixed minors are used by these drivers.
>>
>> Allocate 4 more fixed minors and apply for these drivers.
>
> Missing signoff?
my mistake. thank you for pointing out.
>
>
> I don't think this is the right fix here, these drivers implement
> the normal watchdog API, so they should not even call misc_register
> but should instead call watchdog_dev_register().
>
agree
Documentation/watchdog/convert_drivers_to_kernel_api.rst indeed suggests
convert old watchdog implementation to new one using watchdog framework.
> Obviously doing this right is a bigger change, so maybe the simpler
> answer is to use dynamic minors instead of the nonstandard ones.
>
yes. it is feasible.
> FWIW, I double-checked to see whether there are any in-tree
> references to these two drivers, and there is one each:
>
> drivers/i2c/busses/i2c-i801.c: { "Hermes", DMI_DEV_TYPE_OTHER, 0x73, "fscher" },
> drivers/i2c/busses/i2c-i801.c: { "Hades", DMI_DEV_TYPE_OTHER, 0x73, "fschds" },
> drivers/i2c/busses/i2c-i801.c: { "Syleus", DMI_DEV_TYPE_OTHER, 0x73, "fscsyl" },
> arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = "winbond,w83793";
>
> These were added in 2009 and 2016, respectively, so the hardware
> is probably around somewhere but quite hard to find.
>
let me drop this change in next revision.
may try to convert them by following the guidance at my spare time.
> Arnd
Powered by blists - more mailing lists