All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Torgue <alexandre.torgue@st.com>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Patrice Chotard <patrice.chotard@st.com>,
	Rob Herring <robh+dt@kernel.org>,
	linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/3] pinctrl: Add STM32F746 MCU support
Date: Wed, 6 Jul 2016 09:49:53 +0200	[thread overview]
Message-ID: <577CB821.7000206@st.com> (raw)
In-Reply-To: <20160705140218.GD26134@windriver.com>

Hi Paul,

On 07/05/2016 04:02 PM, Paul Gortmaker wrote:
> [[PATCH 2/3] pinctrl: Add STM32F746 MCU support] On 05/07/2016 (Tue 15:40) Alexandre TORGUE wrote:
>
>> From: Maxime Coquelin <mcoquelin.stm32@gmail.com>
>>
>> This patch which adds STM32F746 pinctrl and GPIO support, relies on the
>> generic STM32 pinctrl driver.
>>
>> Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
>> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
>>
>> diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig
>> index 0f28841..4c40dae 100644
>> --- a/drivers/pinctrl/stm32/Kconfig
>> +++ b/drivers/pinctrl/stm32/Kconfig
>> @@ -13,4 +13,10 @@ config PINCTRL_STM32F429
>>   	default MACH_STM32F429
>>   	select PINCTRL_STM32
>>
>> +config PINCTRL_STM32F746
>> +	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
>          ^^^^
>
>> +	depends on OF
>> +	default MACH_STM32F746
>> +	select PINCTRL_STM32
>> +
>> +	),
>> +};
>> +
>
> [...]
>
>> +static const struct of_device_id stm32f746_pctrl_match[] = {
>> +	{
>> +		.compatible = "st,stm32f746-pinctrl",
>> +		.data = &stm32f746_match_data,
>> +	},
>> +	{ }
>> +};
>> +MODULE_DEVICE_TABLE(of, stm32f746_pctrl_match);
>    ^^^^^^^^^^^^^^^^^^^^
>
>> +
>> +static struct platform_driver stm32f746_pinctrl_driver = {
>> +	.probe = stm32_pctl_probe,
>> +	.driver = {
>> +		.name = "stm32f746-pinctrl",
>> +		.of_match_table = stm32f746_pctrl_match,
>> +	},
>> +};
>> +
>> +static int __init stm32f746_pinctrl_init(void)
>> +{
>> +	return platform_driver_register(&stm32f746_pinctrl_driver);
>> +}
>> +
>> +module_init(stm32f746_pinctrl_init);
>> +
>> +MODULE_LICENSE("GPL");
>> +MODULE_DESCRIPTION("STM32F746 Pinctrl Driver");
>> +MODULE_AUTHOR("Maxime Coquelin <mcoquelin.stm32@gmail.com>");
>
> ...and here as well.  Please don't use modular support functions and
> infrastructure for code that is only built-in.  Either make sure it can
> be modular and use a tristate Kconfig, or delete all the MODULE_<tags>
> and use device_initcall() to register the driver.

Thanks for remark. I will send a v2 removing modular stuff.

Regards

Alex

>
> Thanks,
> Paul.
> --
>
>> --
>> 1.9.1
>>



WARNING: multiple messages have this Message-ID (diff)
From: alexandre.torgue@st.com (Alexandre Torgue)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] pinctrl: Add STM32F746 MCU support
Date: Wed, 6 Jul 2016 09:49:53 +0200	[thread overview]
Message-ID: <577CB821.7000206@st.com> (raw)
In-Reply-To: <20160705140218.GD26134@windriver.com>

Hi Paul,

On 07/05/2016 04:02 PM, Paul Gortmaker wrote:
> [[PATCH 2/3] pinctrl: Add STM32F746 MCU support] On 05/07/2016 (Tue 15:40) Alexandre TORGUE wrote:
>
>> From: Maxime Coquelin <mcoquelin.stm32@gmail.com>
>>
>> This patch which adds STM32F746 pinctrl and GPIO support, relies on the
>> generic STM32 pinctrl driver.
>>
>> Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
>> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
>>
>> diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig
>> index 0f28841..4c40dae 100644
>> --- a/drivers/pinctrl/stm32/Kconfig
>> +++ b/drivers/pinctrl/stm32/Kconfig
>> @@ -13,4 +13,10 @@ config PINCTRL_STM32F429
>>   	default MACH_STM32F429
>>   	select PINCTRL_STM32
>>
>> +config PINCTRL_STM32F746
>> +	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
>          ^^^^
>
>> +	depends on OF
>> +	default MACH_STM32F746
>> +	select PINCTRL_STM32
>> +
>> +	),
>> +};
>> +
>
> [...]
>
>> +static const struct of_device_id stm32f746_pctrl_match[] = {
>> +	{
>> +		.compatible = "st,stm32f746-pinctrl",
>> +		.data = &stm32f746_match_data,
>> +	},
>> +	{ }
>> +};
>> +MODULE_DEVICE_TABLE(of, stm32f746_pctrl_match);
>    ^^^^^^^^^^^^^^^^^^^^
>
>> +
>> +static struct platform_driver stm32f746_pinctrl_driver = {
>> +	.probe = stm32_pctl_probe,
>> +	.driver = {
>> +		.name = "stm32f746-pinctrl",
>> +		.of_match_table = stm32f746_pctrl_match,
>> +	},
>> +};
>> +
>> +static int __init stm32f746_pinctrl_init(void)
>> +{
>> +	return platform_driver_register(&stm32f746_pinctrl_driver);
>> +}
>> +
>> +module_init(stm32f746_pinctrl_init);
>> +
>> +MODULE_LICENSE("GPL");
>> +MODULE_DESCRIPTION("STM32F746 Pinctrl Driver");
>> +MODULE_AUTHOR("Maxime Coquelin <mcoquelin.stm32@gmail.com>");
>
> ...and here as well.  Please don't use modular support functions and
> infrastructure for code that is only built-in.  Either make sure it can
> be modular and use a tristate Kconfig, or delete all the MODULE_<tags>
> and use device_initcall() to register the driver.

Thanks for remark. I will send a v2 removing modular stuff.

Regards

Alex

>
> Thanks,
> Paul.
> --
>
>> --
>> 1.9.1
>>

WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Torgue <alexandre.torgue@st.com>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Patrice Chotard <patrice.chotard@st.com>,
	Rob Herring <robh+dt@kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-gpio@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>
Subject: Re: [PATCH 2/3] pinctrl: Add STM32F746 MCU support
Date: Wed, 6 Jul 2016 09:49:53 +0200	[thread overview]
Message-ID: <577CB821.7000206@st.com> (raw)
In-Reply-To: <20160705140218.GD26134@windriver.com>

Hi Paul,

On 07/05/2016 04:02 PM, Paul Gortmaker wrote:
> [[PATCH 2/3] pinctrl: Add STM32F746 MCU support] On 05/07/2016 (Tue 15:40) Alexandre TORGUE wrote:
>
>> From: Maxime Coquelin <mcoquelin.stm32@gmail.com>
>>
>> This patch which adds STM32F746 pinctrl and GPIO support, relies on the
>> generic STM32 pinctrl driver.
>>
>> Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
>> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
>>
>> diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig
>> index 0f28841..4c40dae 100644
>> --- a/drivers/pinctrl/stm32/Kconfig
>> +++ b/drivers/pinctrl/stm32/Kconfig
>> @@ -13,4 +13,10 @@ config PINCTRL_STM32F429
>>   	default MACH_STM32F429
>>   	select PINCTRL_STM32
>>
>> +config PINCTRL_STM32F746
>> +	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
>          ^^^^
>
>> +	depends on OF
>> +	default MACH_STM32F746
>> +	select PINCTRL_STM32
>> +
>> +	),
>> +};
>> +
>
> [...]
>
>> +static const struct of_device_id stm32f746_pctrl_match[] = {
>> +	{
>> +		.compatible = "st,stm32f746-pinctrl",
>> +		.data = &stm32f746_match_data,
>> +	},
>> +	{ }
>> +};
>> +MODULE_DEVICE_TABLE(of, stm32f746_pctrl_match);
>    ^^^^^^^^^^^^^^^^^^^^
>
>> +
>> +static struct platform_driver stm32f746_pinctrl_driver = {
>> +	.probe = stm32_pctl_probe,
>> +	.driver = {
>> +		.name = "stm32f746-pinctrl",
>> +		.of_match_table = stm32f746_pctrl_match,
>> +	},
>> +};
>> +
>> +static int __init stm32f746_pinctrl_init(void)
>> +{
>> +	return platform_driver_register(&stm32f746_pinctrl_driver);
>> +}
>> +
>> +module_init(stm32f746_pinctrl_init);
>> +
>> +MODULE_LICENSE("GPL");
>> +MODULE_DESCRIPTION("STM32F746 Pinctrl Driver");
>> +MODULE_AUTHOR("Maxime Coquelin <mcoquelin.stm32@gmail.com>");
>
> ...and here as well.  Please don't use modular support functions and
> infrastructure for code that is only built-in.  Either make sure it can
> be modular and use a tristate Kconfig, or delete all the MODULE_<tags>
> and use device_initcall() to register the driver.

Thanks for remark. I will send a v2 removing modular stuff.

Regards

Alex

>
> Thanks,
> Paul.
> --
>
>> --
>> 1.9.1
>>

  reply	other threads:[~2016-07-06  7:50 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05 13:40 [PATCH 0/3] Add STM32F746 MCU pinctrl support Alexandre TORGUE
2016-07-05 13:40 ` Alexandre TORGUE
2016-07-05 13:40 ` Alexandre TORGUE
2016-07-05 13:40 ` [PATCH 1/3] includes: dt-bindings: Add STM32F746 pinctrl DT bindings Alexandre TORGUE
2016-07-05 13:40   ` Alexandre TORGUE
2016-07-05 13:40   ` Alexandre TORGUE
2016-07-05 14:59   ` Linus Walleij
2016-07-05 14:59     ` Linus Walleij
2016-07-05 15:21     ` Alexandre Torgue
2016-07-05 15:21       ` Alexandre Torgue
2016-07-05 15:21       ` Alexandre Torgue
2016-07-05 13:40 ` [PATCH 2/3] pinctrl: Add STM32F746 MCU support Alexandre TORGUE
2016-07-05 13:40   ` Alexandre TORGUE
2016-07-05 13:40   ` Alexandre TORGUE
     [not found]   ` <1467726017-20041-3-git-send-email-alexandre.torgue-qxv4g6HH51o@public.gmane.org>
2016-07-05 14:02     ` Paul Gortmaker
2016-07-05 14:02       ` Paul Gortmaker
2016-07-05 14:02       ` Paul Gortmaker
2016-07-06  7:49       ` Alexandre Torgue [this message]
2016-07-06  7:49         ` Alexandre Torgue
2016-07-06  7:49         ` Alexandre Torgue
2016-07-05 15:01   ` Linus Walleij
2016-07-05 15:01     ` Linus Walleij
2016-07-05 13:40 ` [PATCH 3/3] Documentation: dt: Add new compatible to STM32 pinctrl driver bindings Alexandre TORGUE
2016-07-05 13:40   ` Alexandre TORGUE
2016-07-05 13:40   ` Alexandre TORGUE
     [not found]   ` <1467726017-20041-4-git-send-email-alexandre.torgue-qxv4g6HH51o@public.gmane.org>
2016-07-05 15:02     ` Linus Walleij
2016-07-05 15:02       ` Linus Walleij
2016-07-05 15:02       ` Linus Walleij

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=577CB821.7000206@st.com \
    --to=alexandre.torgue@st.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=patrice.chotard@st.com \
    --cc=paul.gortmaker@windriver.com \
    --cc=robh+dt@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.