public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: 88pm80x: fix no interrupt mask reg
@ 2012-12-03  8:11 Qing Xu
  2012-12-12  6:28 ` Qing Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Qing Xu @ 2012-12-03  8:11 UTC (permalink / raw)
  To: qingx, zhouqiao, sameo, tianxf, cxie4, linux-kernel

From: Qing Xu <qingx@marvell.com>

1.88pm80x do not have interrupt mask registers and we use
interrupt enable register. So we need to set mask_invert flag.
2.add support for D0 version

Signed-off-by: Xiaofan Tian <tianxf@marvell.com>
Signed-off-by: Qing Xu <qingx@marvell.com>
---
 drivers/mfd/88pm800.c |    4 +++-
 drivers/mfd/88pm805.c |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c
index e1525ab..3fcc8dd 100644
--- a/drivers/mfd/88pm800.c
+++ b/drivers/mfd/88pm800.c
@@ -119,7 +119,8 @@ enum {
 	PM800_CHIP_A1  = 0x61,
 	PM800_CHIP_B0  = 0x62,
 	PM800_CHIP_C0  = 0x63,
-	PM800_CHIP_END = PM800_CHIP_C0,
+	PM800_CHIP_D0  = 0x64,
+	PM800_CHIP_END = PM800_CHIP_D0,
 
 	/* Make sure to update this to the last stepping */
 	PM8XXX_CHIP_END = PM800_CHIP_END
@@ -362,6 +363,7 @@ static struct regmap_irq_chip pm800_irq_chip = {
 	.status_base = PM800_INT_STATUS1,
 	.mask_base = PM800_INT_ENA_1,
 	.ack_base = PM800_INT_STATUS1,
+	.mask_invert = 1,
 };
 
 static int pm800_pages_init(struct pm80x_chip *chip)
diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c
index 8c9e25a..39a91bd 100644
--- a/drivers/mfd/88pm805.c
+++ b/drivers/mfd/88pm805.c
@@ -187,6 +187,7 @@ static struct regmap_irq_chip pm805_irq_chip = {
 	.status_base = PM805_INT_STATUS1,
 	.mask_base = PM805_INT_MASK1,
 	.ack_base = PM805_INT_STATUS1,
+	.mask_invert = 1,
 };
 
 static int __devinit device_805_init(struct pm80x_chip *chip)
-- 
1.7.0.4


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

* Re: [PATCH] mfd: 88pm80x: fix no interrupt mask reg
  2012-12-03  8:11 [PATCH] mfd: 88pm80x: fix no interrupt mask reg Qing Xu
@ 2012-12-12  6:28 ` Qing Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Qing Xu @ 2012-12-12  6:28 UTC (permalink / raw)
  To: Qing Xu
  Cc: Qiao Zhou, sameo@linux.intel.com, Xiaofan Tian, Chao Xie,
	linux-kernel@vger.kernel.org

On 12/03/2012 04:11 PM, Qing Xu wrote:
> From: Qing Xu <qingx@marvell.com>
>
> 1.88pm80x do not have interrupt mask registers and we use
> interrupt enable register. So we need to set mask_invert flag.
> 2.add support for D0 version
>
> Signed-off-by: Xiaofan Tian <tianxf@marvell.com>
> Signed-off-by: Qing Xu <qingx@marvell.com>
> ---
>   drivers/mfd/88pm800.c |    4 +++-
>   drivers/mfd/88pm805.c |    1 +
>   2 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c
> index e1525ab..3fcc8dd 100644
> --- a/drivers/mfd/88pm800.c
> +++ b/drivers/mfd/88pm800.c
> @@ -119,7 +119,8 @@ enum {
>   	PM800_CHIP_A1  = 0x61,
>   	PM800_CHIP_B0  = 0x62,
>   	PM800_CHIP_C0  = 0x63,
> -	PM800_CHIP_END = PM800_CHIP_C0,
> +	PM800_CHIP_D0  = 0x64,
> +	PM800_CHIP_END = PM800_CHIP_D0,
>   
>   	/* Make sure to update this to the last stepping */
>   	PM8XXX_CHIP_END = PM800_CHIP_END
> @@ -362,6 +363,7 @@ static struct regmap_irq_chip pm800_irq_chip = {
>   	.status_base = PM800_INT_STATUS1,
>   	.mask_base = PM800_INT_ENA_1,
>   	.ack_base = PM800_INT_STATUS1,
> +	.mask_invert = 1,
>   };
>   
>   static int pm800_pages_init(struct pm80x_chip *chip)
> diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c
> index 8c9e25a..39a91bd 100644
> --- a/drivers/mfd/88pm805.c
> +++ b/drivers/mfd/88pm805.c
> @@ -187,6 +187,7 @@ static struct regmap_irq_chip pm805_irq_chip = {
>   	.status_base = PM805_INT_STATUS1,
>   	.mask_base = PM805_INT_MASK1,
>   	.ack_base = PM805_INT_STATUS1,
> +	.mask_invert = 1,
>   };
>   
>   static int __devinit device_805_init(struct pm80x_chip *chip)


Samuel,

Could you help to review my patch? Thanks a lot!

Qing



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

end of thread, other threads:[~2012-12-12  6:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03  8:11 [PATCH] mfd: 88pm80x: fix no interrupt mask reg Qing Xu
2012-12-12  6:28 ` Qing Xu

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