From: "liuyuntao (F)" <liuyuntao12@huawei.com>
To: Arnd Bergmann <arnd@arndb.de>,
<openipmi-developer@lists.sourceforge.net>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<dmaengine@vger.kernel.org>,
"linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
<linux-i2c@vger.kernel.org>, <linux-usb@vger.kernel.org>
Cc: "Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Claudiu Beznea" <claudiu.beznea@tuxon.dev>,
"Robert Jarzmik" <robert.jarzmik@free.fr>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Corey Minyard" <minyard@acm.org>,
"Ludovic.Desroches" <ludovic.desroches@microchip.com>,
"Alan Stern" <stern@rowland.harvard.edu>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
codrin.ciubotariu@microchip.com,
"Duje Mihanović" <duje.mihanovic@skole.hr>,
"Robert Richter" <rric@kernel.org>,
"Andi Shyti" <andi.shyti@kernel.org>,
"Haojian Zhuang" <haojian.zhuang@gmail.com>,
"Tony Luck" <tony.luck@intel.com>,
"Borislav Petkov" <bp@alien8.de>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
morbidrsa@gmail.com,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Vinod Koul" <vkoul@kernel.org>,
"Mark Brown" <broonie@kernel.org>,
"James Morse" <james.morse@arm.com>,
"Daniel Mack" <daniel@zonque.org>
Subject: Re: [PATCH -next 0/9] drivers: fix some module autoloading
Date: Mon, 19 Aug 2024 20:23:01 +0800 [thread overview]
Message-ID: <c1bc5137-9654-4434-a329-9381e14dffaf@huawei.com> (raw)
In-Reply-To: <dabde7bf-dcff-47c6-a68d-f5018ab00282@app.fastmail.com>
yes sir^^.
Regards!
Yuntao
On 2024/8/19 20:09, Arnd Bergmann wrote:
> On Mon, Aug 19, 2024, at 13:38, Yuntao Liu wrote:
>> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
>> based on the alias from platform_device_id table.
>>
>> Yuntao Liu (9):
>> usb: ehci-mv: fix module autoloading
>> soc: pxa: ssp: fix module autoloading
>> misc: atmel-ssc: fix module autoloading
>> i2c: at91: fix module autoloading
>> mpc85xx_edac: fix module autoloading
>> dmaengine: pxa: fix module autoloading
>> dmaengine: mmp_pdma: fix module autoloading
>> dmaengine: at_hdmac: fix module autoloading
>> ipmi: ipmi_ssif: fix module autoloading
>
> I looked at all the patches and found that most of them do not
> use the table any more, or will stop using it in the near future.
>
> I think your work to validate the correctness of the entries
> is useful, but it may be more helpful to focus on removing
> all the unused tables, including those that have a
> MODULE_DEVICE_TABLE() tag.
>
> If you are planning to do more such cleanups, maybe you can
> go through them one subsystem at a time and look for drivers
> that have both of_device_id and i2c_device_id/platform_device_id/
> spi_device_id tables. If nothing in the kernel creates a device
> with the legacy string, you can then send a patch that removes
> the old device ID list and at the same time makes the DT support
> unconditional in case there is an #ifdef CONFIG_OF check.
>
> If the probe() function accesses platform_data, this would also
> be unused, allowing an even nicer cleanup of removing the
> platofrm_data path in favor of OF properties.
>
> Arnd
next prev parent reply other threads:[~2024-08-19 12:23 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-19 11:38 [PATCH -next 0/9] drivers: fix some module autoloading Yuntao Liu
2024-08-19 11:38 ` [PATCH -next 1/9] usb: ehci-mv: fix " Yuntao Liu
2024-08-19 11:49 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 2/9] soc: pxa: ssp: " Yuntao Liu
2024-08-19 11:50 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 3/9] misc: atmel-ssc: " Yuntao Liu
2024-08-19 11:54 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 4/9] i2c: at91: " Yuntao Liu
2024-08-19 11:55 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 5/9] mpc85xx_edac: " Yuntao Liu
2024-08-19 11:57 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 6/9] dmaengine: pxa: " Yuntao Liu
2024-08-19 11:58 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 7/9] dmaengine: mmp_pdma: " Yuntao Liu
2024-08-19 11:59 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 8/9] dmaengine: at_hdmac: " Yuntao Liu
2024-08-19 12:01 ` Arnd Bergmann
2024-08-19 11:38 ` [PATCH -next 9/9] ipmi: ipmi_ssif: " Yuntao Liu
2024-08-19 12:03 ` Arnd Bergmann
2024-08-19 12:09 ` [PATCH -next 0/9] drivers: fix some " Arnd Bergmann
2024-08-19 12:23 ` liuyuntao (F) [this message]
2024-08-19 20:31 ` Andi Shyti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1bc5137-9654-4434-a329-9381e14dffaf@huawei.com \
--to=liuyuntao12@huawei.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andi.shyti@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=broonie@kernel.org \
--cc=claudiu.beznea@tuxon.dev \
--cc=codrin.ciubotariu@microchip.com \
--cc=daniel@zonque.org \
--cc=dmaengine@vger.kernel.org \
--cc=duje.mihanovic@skole.hr \
--cc=gregkh@linuxfoundation.org \
--cc=haojian.zhuang@gmail.com \
--cc=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-edac@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=ludovic.desroches@microchip.com \
--cc=mchehab@kernel.org \
--cc=minyard@acm.org \
--cc=morbidrsa@gmail.com \
--cc=openipmi-developer@lists.sourceforge.net \
--cc=robert.jarzmik@free.fr \
--cc=rric@kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=tony.luck@intel.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox