public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>,
	Andy Shevchenko <andy@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Takashi Iwai <tiwai@suse.com>
Subject: Re: [PATCH v1 1/1] pinctrl: denverton: Enable platform device in the absence of ACPI enumeration
Date: Wed, 4 Oct 2023 10:18:01 +0200	[thread overview]
Message-ID: <76d1e643-9b81-4c23-8f46-73fe59913600@kernel.org> (raw)
In-Reply-To: <20230926190818.931951-1-andriy.shevchenko@linux.intel.com>

On 26/09/2023 21:08, Andy Shevchenko wrote:
> This is to cater the need for non-ACPI system whereby
> a platform device has to be created in order to bind
> with the Denverton pinctrl platform driver.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/pinctrl/intel/pinctrl-denverton.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/pinctrl/intel/pinctrl-denverton.c b/drivers/pinctrl/intel/pinctrl-denverton.c
> index 0c4694cfa594..a1a7242e0451 100644
> --- a/drivers/pinctrl/intel/pinctrl-denverton.c
> +++ b/drivers/pinctrl/intel/pinctrl-denverton.c
> @@ -257,6 +257,11 @@ static const struct acpi_device_id dnv_pinctrl_acpi_match[] = {
>  };
>  MODULE_DEVICE_TABLE(acpi, dnv_pinctrl_acpi_match);
>  
> +static const struct platform_device_id dnv_pinctrl_platform_ids[] = {
> +	{ "denverton-pinctrl", (kernel_ulong_t)&dnv_soc_data },
> +	{ }
> +};
> +
>  static struct platform_driver dnv_pinctrl_driver = {
>  	.probe = intel_pinctrl_probe_by_hid,
>  	.driver = {
> @@ -264,6 +269,7 @@ static struct platform_driver dnv_pinctrl_driver = {
>  		.acpi_match_table = dnv_pinctrl_acpi_match,
>  		.pm = &dnv_pinctrl_pm_ops,
>  	},
> +	.id_table = dnv_pinctrl_platform_ids,
>  };
>  
>  static int __init dnv_pinctrl_init(void)
> @@ -281,4 +287,5 @@ module_exit(dnv_pinctrl_exit);
>  MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>");
>  MODULE_DESCRIPTION("Intel Denverton SoC pinctrl/GPIO driver");
>  MODULE_LICENSE("GPL v2");
> +MODULE_ALIAS("platform:denverton-pinctrl");

Why do you need the alias? It's the same as ID table. You most likely
miss MODULE_DEVICE_TABLE() or your table is just wrong.

Best regards,
Krzysztof


  parent reply	other threads:[~2023-10-04  8:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 19:08 [PATCH v1 1/1] pinctrl: denverton: Enable platform device in the absence of ACPI enumeration Andy Shevchenko
2023-09-27  7:43 ` Mika Westerberg
2023-09-27 12:19   ` Andy Shevchenko
2023-10-04  8:18 ` Krzysztof Kozlowski [this message]
2023-10-04 13:09   ` Andy Shevchenko
2023-10-04 13:20     ` Krzysztof Kozlowski
2023-10-04 19:42       ` Andy Shevchenko
2023-10-05  7:53         ` Krzysztof Kozlowski
2023-10-05  8:38           ` Andy Shevchenko
2023-10-05  8:42             ` Andy Shevchenko

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=76d1e643-9b81-4c23-8f46-73fe59913600@kernel.org \
    --to=krzk@kernel.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=andy@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=tiwai@suse.com \
    /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