All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01
@ 2019-02-12 21:46 Stuart Menefy
  2019-02-13  7:24 ` Lee Jones
  2019-02-13  8:09   ` Krzysztof Kozlowski
  0 siblings, 2 replies; 4+ messages in thread
From: Stuart Menefy @ 2019-02-12 21:46 UTC (permalink / raw)
  To: Sangbeom Kim, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz,
	Lee Jones, linux-kernel, linux-samsung-soc
  Cc: Stuart Menefy

The RTC portion of the S2MPA01 appears to have the same
register layout as the S2MPS14.

Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
---
 drivers/mfd/sec-core.c | 2 ++
 drivers/mfd/sec-irq.c  | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index e0835c9df7a1..08621ef5d822 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -103,6 +103,8 @@ static const struct mfd_cell s2mps15_devs[] = {
 static const struct mfd_cell s2mpa01_devs[] = {
 	{
 		.name = "s2mpa01-pmic",
+	}, {
+		.name = "s2mps14-rtc",
 	},
 };
 
diff --git a/drivers/mfd/sec-irq.c b/drivers/mfd/sec-irq.c
index ad0099077e7e..a98c5d165039 100644
--- a/drivers/mfd/sec-irq.c
+++ b/drivers/mfd/sec-irq.c
@@ -455,6 +455,9 @@ int sec_irq_init(struct sec_pmic_dev *sec_pmic)
 	case S5M8767X:
 		sec_irq_chip = &s5m8767_irq_chip;
 		break;
+	case S2MPA01:
+		sec_irq_chip = &s2mps14_irq_chip;
+		break;
 	case S2MPS11X:
 		sec_irq_chip = &s2mps11_irq_chip;
 		break;
-- 
2.13.6


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

* Re: [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01
  2019-02-12 21:46 [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01 Stuart Menefy
@ 2019-02-13  7:24 ` Lee Jones
  2019-02-13  8:09   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 4+ messages in thread
From: Lee Jones @ 2019-02-13  7:24 UTC (permalink / raw)
  To: Stuart Menefy
  Cc: Sangbeom Kim, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz,
	linux-kernel, linux-samsung-soc

Good morning Stuart,

It's been a while.  I hope all is well with you.

> The RTC portion of the S2MPA01 appears to have the same
> register layout as the S2MPS14.
> 
> Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
> ---
>  drivers/mfd/sec-core.c | 2 ++
>  drivers/mfd/sec-irq.c  | 3 +++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
> index e0835c9df7a1..08621ef5d822 100644
> --- a/drivers/mfd/sec-core.c
> +++ b/drivers/mfd/sec-core.c
> @@ -103,6 +103,8 @@ static const struct mfd_cell s2mps15_devs[] = {
>  static const struct mfd_cell s2mpa01_devs[] = {
>  	{
>  		.name = "s2mpa01-pmic",
> +	}, {
> +		.name = "s2mps14-rtc",
>  	},
>  };

Ideally one line entries should be on one line (see: s2mps13_devs).

Would you like to take a couple of minutes to make those changes
file-wide and rework this patch on top of it please?

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01
  2019-02-12 21:46 [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01 Stuart Menefy
@ 2019-02-13  8:09   ` Krzysztof Kozlowski
  2019-02-13  8:09   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2019-02-13  8:09 UTC (permalink / raw)
  To: Stuart Menefy
  Cc: Sangbeom Kim, Bartlomiej Zolnierkiewicz, Lee Jones, linux-kernel,
	linux-samsung-soc

On Tue, 12 Feb 2019 at 22:46, Stuart Menefy
<stuart.menefy@mathembedded.com> wrote:
>
> The RTC portion of the S2MPA01 appears to have the same
> register layout as the S2MPS14.
>
> Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
> ---
>  drivers/mfd/sec-core.c | 2 ++
>  drivers/mfd/sec-irq.c  | 3 +++
>  2 files changed, 5 insertions(+)

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

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

* Re: [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01
@ 2019-02-13  8:09   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2019-02-13  8:09 UTC (permalink / raw)
  To: Stuart Menefy
  Cc: Sangbeom Kim, Bartlomiej Zolnierkiewicz, Lee Jones, linux-kernel,
	linux-samsung-soc

On Tue, 12 Feb 2019 at 22:46, Stuart Menefy
<stuart.menefy@mathembedded.com> wrote:
>
> The RTC portion of the S2MPA01 appears to have the same
> register layout as the S2MPS14.
>
> Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
> ---
>  drivers/mfd/sec-core.c | 2 ++
>  drivers/mfd/sec-irq.c  | 3 +++
>  2 files changed, 5 insertions(+)

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

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

end of thread, other threads:[~2019-02-13  8:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12 21:46 [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01 Stuart Menefy
2019-02-13  7:24 ` Lee Jones
2019-02-13  8:09 ` Krzysztof Kozlowski
2019-02-13  8:09   ` Krzysztof Kozlowski

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.