Linux RTC
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Set name of regmap_config
@ 2018-03-08 10:21 Jeffy Chen
  2018-03-08 10:21 ` [PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio() Jeffy Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffy Chen @ 2018-03-08 10:21 UTC (permalink / raw)
  To: linux-kernel, broonie
  Cc: Jeffy Chen, linux-rtc, Sylvain Lemieux, Arnd Bergmann,
	Michael Turquette, Heiko Stuebner, Alessandro Zummo,
	linux-rockchip, Stephen Boyd, Gabriel Fernandez, linux-clk,
	Alexandre Belloni, Alexandre Belloni, Russell King, Lee Jones,
	Nicolas Ferre, Jerome Brunet, Vladimir Zapolskiy, Arvind Yadav,
	linux-arm-kernel


After 9b947a13e7f6 ("regmap: use debugfs even when no device"), we are
allowing regmap to create debugfs without a valid device. Some of them
would end up using "dummy*" as debugfs name.

This series try to set names in some regmap_config to avoid that.


Changes in v3:
Modify commit message.

Jeffy Chen (4):
  mfd: syscon: Set name of regmap_config
  rtc: at91sam9: Pass pdev->dev to regmap_init_mmio()
  clk: lpc32xx: Set name of regmap_config
  ARM: rockchip: Set name of regmap_config

 arch/arm/mach-rockchip/platsmp.c | 1 +
 drivers/clk/nxp/clk-lpc32xx.c    | 1 +
 drivers/mfd/syscon.c             | 1 +
 drivers/rtc/rtc-at91sam9.c       | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio()
  2018-03-08 10:21 [PATCH v3 0/4] Set name of regmap_config Jeffy Chen
@ 2018-03-08 10:21 ` Jeffy Chen
  2018-03-08 20:49   ` Alexandre Belloni
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffy Chen @ 2018-03-08 10:21 UTC (permalink / raw)
  To: linux-kernel, broonie
  Cc: Jeffy Chen, linux-rtc, Alessandro Zummo, Alexandre Belloni,
	Nicolas Ferre, linux-arm-kernel

Otherwise it would use "dummy*" to create regmap debugfs dir.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---

Changes in v3: None

 drivers/rtc/rtc-at91sam9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c
index 7418a763ce52..0d6a17a77841 100644
--- a/drivers/rtc/rtc-at91sam9.c
+++ b/drivers/rtc/rtc-at91sam9.c
@@ -402,7 +402,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
 		if (IS_ERR(gpbr))
 			return PTR_ERR(gpbr);
 
-		rtc->gpbr = regmap_init_mmio(NULL, gpbr,
+		rtc->gpbr = regmap_init_mmio(&pdev->dev, gpbr,
 					     &gpbr_regmap_config);
 	} else {
 		struct of_phandle_args args;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio()
  2018-03-08 10:21 ` [PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio() Jeffy Chen
@ 2018-03-08 20:49   ` Alexandre Belloni
  2018-03-09  1:51     ` JeffyChen
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Belloni @ 2018-03-08 20:49 UTC (permalink / raw)
  To: Jeffy Chen
  Cc: linux-kernel, broonie, linux-rtc, Alessandro Zummo, Nicolas Ferre,
	linux-arm-kernel

On 08/03/2018 at 18:21:52 +0800, Jeffy Chen wrote:
> Otherwise it would use "dummy*" to create regmap debugfs dir.
> 
> Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
> ---
> 
> Changes in v3: None
> 
>  drivers/rtc/rtc-at91sam9.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c
> index 7418a763ce52..0d6a17a77841 100644
> --- a/drivers/rtc/rtc-at91sam9.c
> +++ b/drivers/rtc/rtc-at91sam9.c
> @@ -402,7 +402,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
>  		if (IS_ERR(gpbr))
>  			return PTR_ERR(gpbr);
>  
> -		rtc->gpbr = regmap_init_mmio(NULL, gpbr,
> +		rtc->gpbr = regmap_init_mmio(&pdev->dev, gpbr,
>  					     &gpbr_regmap_config);

This would be misleading as the gpbr is not directly related to the rtc.


-- 
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio()
  2018-03-08 20:49   ` Alexandre Belloni
@ 2018-03-09  1:51     ` JeffyChen
  0 siblings, 0 replies; 4+ messages in thread
From: JeffyChen @ 2018-03-09  1:51 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: linux-kernel, broonie, linux-rtc, Alessandro Zummo, Nicolas Ferre,
	linux-arm-kernel

Hi Alexandre,

On 03/09/2018 04:49 AM, Alexandre Belloni wrote:
> On 08/03/2018 at 18:21:52 +0800, Jeffy Chen wrote:
>> Otherwise it would use "dummy*" to create regmap debugfs dir.
>>
>> Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
>> ---
>>
>> Changes in v3: None
>>
>>   drivers/rtc/rtc-at91sam9.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c
>> index 7418a763ce52..0d6a17a77841 100644
>> --- a/drivers/rtc/rtc-at91sam9.c
>> +++ b/drivers/rtc/rtc-at91sam9.c
>> @@ -402,7 +402,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
>>   		if (IS_ERR(gpbr))
>>   			return PTR_ERR(gpbr);
>>
>> -		rtc->gpbr = regmap_init_mmio(NULL, gpbr,
>> +		rtc->gpbr = regmap_init_mmio(&pdev->dev, gpbr,
>>   					     &gpbr_regmap_config);
>
> This would be misleading as the gpbr is not directly related to the rtc.
ok, will fix that, thanks.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-09  1:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-08 10:21 [PATCH v3 0/4] Set name of regmap_config Jeffy Chen
2018-03-08 10:21 ` [PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio() Jeffy Chen
2018-03-08 20:49   ` Alexandre Belloni
2018-03-09  1:51     ` JeffyChen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox