From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Sven Schnelle <svens@linux.ibm.com>
Cc: Marc Zyngier <maz@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
"Joerg Roedel (AMD)" <joro@8bytes.org>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Sudeep Holla <sudeep.holla@kernel.org>,
Ard Biesheuvel <ardb@kernel.org>,
linux-kernel@vger.kernel.org, iommu@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Hendrik Brueckner <brueckner@linux.ibm.com>,
Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
Arnd Bergmann <arnd@arndb.de>,
linux-s390@vger.kernel.org
Subject: Re: [PATCH 3/3] drivers: firmware: add ARM on s390 accelerator driver
Date: Sat, 5 Dec 2026 10:47:33 +0100 [thread overview]
Message-ID: <axPcb4_Z6UJIBf2d@monoceros> (raw)
In-Reply-To: <20261204144529.960326-4-svens@linux.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 2030 bytes --]
Hello,
On Fri, Dec 04, 2026 at 03:45:29PM +0100, Sven Schnelle wrote:
> +#include <linux/mod_devicetable.h>
> +#include <linux/platform_device.h>
<linux/platform_device.h> already provides acpi_device_id and
of_device_id, so please don't include <linux/mod_devicetable.h>. I want
to remove the latter and so appreciate every driver that doesn't
introduce a use. (And for your motivation: <linux/mod_devicetable.h>
pulls in several definitions that your driver doesn't need and thus
introduces useless build dependencies.)
> [...]
> +static const struct of_device_id platform_accel_of_match[] = {
> + { .compatible = "ibm,platform-accel-v1.0-cpacf", .data = &platform_accel_dev_cpacf },
> + { .compatible = "ibm,platform-accel-v1.0-dfltcc", .data = &platform_accel_dev_dfltcc },
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, platform_accel_of_match);
> +
> +#if IS_ENABLED(CONFIG_ACPI)
Is this still how things are done? I thought these tables are supposed
to be used unconditionally nowadays.
> +static const struct acpi_device_id platform_accel_acpi_match[] = {
> + { "IBM077A", (kernel_ulong_t)&platform_accel_dev_cpacf },
> + { "IBM077B", (kernel_ulong_t)&platform_accel_dev_dfltcc },
> + {},
Please use named initializers and drop the trailing comma after the list
terminator. Also note that { } is more common than {}. (Also applies to
the of_device_id array above.)
> +};
> +MODULE_DEVICE_TABLE(acpi, platform_accel_acpi_match);
> +#endif
> +
> +static struct platform_driver platform_accel_driver = {
> + .probe = platform_accel_probe,
> + .remove = platform_accel_remove,
> + .driver = {
> + .name = "platform-accel",
> + .of_match_table = platform_accel_of_match,
> +#if IS_ENABLED(CONFIG_ACPI)
> + .acpi_match_table = ACPI_PTR(platform_accel_acpi_match),
> +#endif
> + },
> +};
> +
That empty line is unusual.
> +module_platform_driver(platform_accel_driver);
> +
> +MODULE_AUTHOR("IBM Corporation");
> +MODULE_DESCRIPTION("IBM s390 ARM acceleration platform driver");
> +MODULE_LICENSE("GPL");
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2026-12-05 9:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:45 [PATCH 0/3] Add arm on s390 accelerator driver Sven Schnelle
2026-12-04 14:45 ` [PATCH 1/3] iommu: sva: allow SVA without PASID Sven Schnelle
2026-12-04 15:12 ` sashiko-bot
2026-12-04 14:45 ` [PATCH 2/3] dt-bindings: firmware: platform-accel: add yaml documentation Sven Schnelle
2026-12-04 15:22 ` sashiko-bot
2026-12-05 13:18 ` Krzysztof Kozlowski
2026-12-04 14:45 ` [PATCH 3/3] drivers: firmware: add ARM on s390 accelerator driver Sven Schnelle
2026-12-04 15:28 ` Arnd Bergmann
2026-12-04 15:45 ` sashiko-bot
2026-12-05 9:47 ` Uwe Kleine-König [this message]
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=axPcb4_Z6UJIBf2d@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=borntraeger@linux.ibm.com \
--cc=brueckner@linux.ibm.com \
--cc=catalin.marinas@arm.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=robin.murphy@arm.com \
--cc=sudeep.holla@kernel.org \
--cc=svens@linux.ibm.com \
--cc=will@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 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.