lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon,  3 Dec 2012 16:11:25 +0800
From:	Qing Xu <qingx@...vell.com>
To:	qingx@...vell.com, zhouqiao@...vell.com, sameo@...ux.intel.com,
	tianxf@...vell.com, cxie4@...vell.com, linux-kernel@...r.kernel.org
Subject: [PATCH] mfd: 88pm80x: fix no interrupt mask reg

From: Qing Xu <qingx@...vell.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@...vell.com>
Signed-off-by: Qing Xu <qingx@...vell.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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ