From: sashiko-bot@kernel.org
To: "Paolo Pisati" <p.pisati@gmail.com>
Cc: linux-ide@vger.kernel.org, mfd@lists.linux.dev,
dlemoal@kernel.org, cassel@kernel.org, lee@kernel.org
Subject: Re: [PATCH v1 2/7] ata: pata_cswarp: bind to the Warp mfd cell instead of the Zorro device
Date: Wed, 11 Nov 2026 17:12:12 +0000 [thread overview]
Message-ID: <sashiko-outbox-209383@kernel.org> (raw)
In-Reply-To: <20261111163735.227286-3-p.pisati@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ata: pata_cswarp: duplicate ata_platform_remove_one() and
module_platform_driver()
--
commit 0358845c5d4b9568f67a2b55aedc3acc1ebbdef0
Author: Paolo Pisati <p.pisati@gmail.com>
ata: pata_cswarp: bind to the Warp mfd cell instead of the Zorro device
This commit converts pata_cswarp from a Zorro driver into a platform driver
that binds to the "warp-pata" MFD cell provided by warp-mfd.
> diff --git a/drivers/ata/pata_cswarp.c b/drivers/ata/pata_cswarp.c
> index 58fe6d0012dc5..41b4c93052cfd 100644
> --- a/drivers/ata/pata_cswarp.c
> +++ b/drivers/ata/pata_cswarp.c
[ ... ]
> @@ -145,34 +135,29 @@ static int pata_cswarp_probe(struct zorro_dev *z,
> IRQF_SHARED, &pata_cswarp_sht);
> }
>
> -static void pata_cswarp_remove(struct zorro_dev *z)
> +static void pata_cswarp_remove(struct platform_device *pdev)
> {
> - struct ata_host *host = dev_get_drvdata(&z->dev);
> + struct ata_host *host = dev_get_drvdata(&pdev->dev);
>
> ata_host_detach(host);
> }
>
> -static const struct zorro_device_id pata_cswarp_zorro_tbl[] = {
> - { .id = ZORRO_PROD_CSLAB_WARP_1260 },
> - { }
> -};
> -MODULE_DEVICE_TABLE(zorro, pata_cswarp_zorro_tbl);
> -
> -static struct zorro_driver pata_cswarp_driver = {
> - .name = "pata_cswarp",
> - .id_table = pata_cswarp_zorro_tbl,
> +static struct platform_driver pata_cswarp_driver = {
> + .driver = {
> + .name = "warp-pata",
> + },
> .probe = pata_cswarp_probe,
> .remove = pata_cswarp_remove,
> };
>
> static int __init pata_cswarp_init(void)
> {
> - return zorro_register_driver(&pata_cswarp_driver);
> + return platform_driver_register(&pata_cswarp_driver);
> }
>
> static void __exit pata_cswarp_unregister(void)
> {
> - zorro_unregister_driver(&pata_cswarp_driver);
> + platform_driver_unregister(&pata_cswarp_driver);
> }
[Severity: Low]
Now that pata_cswarp is a platform_driver, could pata_cswarp_remove() be
replaced with libata's ata_platform_remove_one(), and pata_cswarp_init() /
pata_cswarp_unregister() with module_platform_driver(pata_cswarp_driver)?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261111163735.227286-1-p.pisati@gmail.com?part=2
next prev parent reply other threads:[~2026-11-11 17:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 16:37 [PATCH v1 0/7] zorro: add a CS-Lab Warp 1260 MFD Paolo Pisati
2026-11-11 16:37 ` [PATCH v1 1/7] zorro: warp mfd: add the CS-Lab Warp multifunction parent Paolo Pisati
2026-11-11 17:03 ` sashiko-bot
2026-11-11 18:04 ` Lee Jones
2026-11-11 16:37 ` [PATCH v1 2/7] ata: pata_cswarp: bind to the Warp mfd cell instead of the Zorro device Paolo Pisati
2026-11-11 17:12 ` sashiko-bot [this message]
2026-11-11 16:37 ` [PATCH v1 3/7] m68k: defconfig: enable WARP_MFD Paolo Pisati
2026-11-11 16:37 ` [PATCH v1 4/7] zorro: warp mfd: add the dual-port RAM command channel and expose the board identity Paolo Pisati
2026-11-11 17:23 ` sashiko-bot
2026-11-11 16:37 ` [PATCH v1 5/7] zorro: warp mfd: expose the voltage and temperature sensors Paolo Pisati
2026-11-11 16:37 ` [PATCH v1 6/7] zorro: warp mfd: expose the fan duty cycle Paolo Pisati
2026-11-11 16:37 ` [PATCH v1 7/7] zorro: warp mfd: expose the Kickstart slot selection Paolo Pisati
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=sashiko-outbox-209383@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=lee@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=p.pisati@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/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