* [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset
@ 2019-07-23 15:56 Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 2/8] pinctrl: cannonlake: " Andy Shevchenko
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-broxton.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/pinctrl/intel/pinctrl-broxton.c b/drivers/pinctrl/intel/pinctrl-broxton.c
index e2d4505d6747..2be7e414f803 100644
--- a/drivers/pinctrl/intel/pinctrl-broxton.c
+++ b/drivers/pinctrl/intel/pinctrl-broxton.c
@@ -15,8 +15,9 @@
#include "pinctrl-intel.h"
#define BXT_PAD_OWN 0x020
-#define BXT_HOSTSW_OWN 0x080
#define BXT_PADCFGLOCK 0x060
+#define BXT_HOSTSW_OWN 0x080
+#define BXT_GPI_IS 0x100
#define BXT_GPI_IE 0x110
#define BXT_COMMUNITY(s, e) \
@@ -24,6 +25,7 @@
.padown_offset = BXT_PAD_OWN, \
.padcfglock_offset = BXT_PADCFGLOCK, \
.hostown_offset = BXT_HOSTSW_OWN, \
+ .is_offset = BXT_GPI_IS, \
.ie_offset = BXT_GPI_IE, \
.gpp_size = 32, \
.pin_base = (s), \
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v1 2/8] pinctrl: cannonlake: Provide Interrupt Status register offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
@ 2019-07-23 15:56 ` Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 3/8] pinctrl: geminilake: " Andy Shevchenko
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-cannonlake.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/intel/pinctrl-cannonlake.c b/drivers/pinctrl/intel/pinctrl-cannonlake.c
index 08024b065033..f51b27bbf9f1 100644
--- a/drivers/pinctrl/intel/pinctrl-cannonlake.c
+++ b/drivers/pinctrl/intel/pinctrl-cannonlake.c
@@ -19,6 +19,7 @@
#define CNL_PADCFGLOCK 0x080
#define CNL_LP_HOSTSW_OWN 0x0b0
#define CNL_H_HOSTSW_OWN 0x0c0
+#define CNL_GPI_IS 0x100
#define CNL_GPI_IE 0x120
#define CNL_GPP(r, s, e, g) \
@@ -37,6 +38,7 @@
.padown_offset = CNL_PAD_OWN, \
.padcfglock_offset = CNL_PADCFGLOCK, \
.hostown_offset = (o), \
+ .is_offset = CNL_GPI_IS, \
.ie_offset = CNL_GPI_IE, \
.pin_base = (s), \
.npins = ((e) - (s) + 1), \
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v1 3/8] pinctrl: geminilake: Provide Interrupt Status register offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 2/8] pinctrl: cannonlake: " Andy Shevchenko
@ 2019-07-23 15:56 ` Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 4/8] pinctrl: icelake: " Andy Shevchenko
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-geminilake.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/intel/pinctrl-geminilake.c b/drivers/pinctrl/intel/pinctrl-geminilake.c
index b49a484754b9..de96aa9794a2 100644
--- a/drivers/pinctrl/intel/pinctrl-geminilake.c
+++ b/drivers/pinctrl/intel/pinctrl-geminilake.c
@@ -17,6 +17,7 @@
#define GLK_PAD_OWN 0x020
#define GLK_PADCFGLOCK 0x080
#define GLK_HOSTSW_OWN 0x0b0
+#define GLK_GPI_IS 0x100
#define GLK_GPI_IE 0x110
#define GLK_COMMUNITY(s, e) \
@@ -24,6 +25,7 @@
.padown_offset = GLK_PAD_OWN, \
.padcfglock_offset = GLK_PADCFGLOCK, \
.hostown_offset = GLK_HOSTSW_OWN, \
+ .is_offset = GLK_GPI_IS, \
.ie_offset = GLK_GPI_IE, \
.gpp_size = 32, \
.pin_base = (s), \
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v1 4/8] pinctrl: icelake: Provide Interrupt Status register offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 2/8] pinctrl: cannonlake: " Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 3/8] pinctrl: geminilake: " Andy Shevchenko
@ 2019-07-23 15:56 ` Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 5/8] pinctrl: sunrisepoint: " Andy Shevchenko
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-icelake.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/intel/pinctrl-icelake.c b/drivers/pinctrl/intel/pinctrl-icelake.c
index 5f2f5c61ad41..6489e9bbb61f 100644
--- a/drivers/pinctrl/intel/pinctrl-icelake.c
+++ b/drivers/pinctrl/intel/pinctrl-icelake.c
@@ -18,6 +18,7 @@
#define ICL_PAD_OWN 0x020
#define ICL_PADCFGLOCK 0x080
#define ICL_HOSTSW_OWN 0x0b0
+#define ICL_GPI_IS 0x100
#define ICL_GPI_IE 0x110
#define ICL_GPP(r, s, e, g) \
@@ -36,6 +37,7 @@
.padown_offset = ICL_PAD_OWN, \
.padcfglock_offset = ICL_PADCFGLOCK, \
.hostown_offset = ICL_HOSTSW_OWN, \
+ .is_offset = ICL_GPI_IS, \
.ie_offset = ICL_GPI_IE, \
.pin_base = (s), \
.npins = ((e) - (s) + 1), \
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v1 5/8] pinctrl: sunrisepoint: Provide Interrupt Status register offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
` (2 preceding siblings ...)
2019-07-23 15:56 ` [PATCH v1 4/8] pinctrl: icelake: " Andy Shevchenko
@ 2019-07-23 15:56 ` Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 6/8] pinctrl: denverton: " Andy Shevchenko
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-sunrisepoint.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c b/drivers/pinctrl/intel/pinctrl-sunrisepoint.c
index ccafeea4939c..44d7f50bbc82 100644
--- a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c
+++ b/drivers/pinctrl/intel/pinctrl-sunrisepoint.c
@@ -18,6 +18,7 @@
#define SPT_PAD_OWN 0x020
#define SPT_PADCFGLOCK 0x0a0
#define SPT_HOSTSW_OWN 0x0d0
+#define SPT_GPI_IS 0x100
#define SPT_GPI_IE 0x120
#define SPT_COMMUNITY(b, s, e) \
@@ -26,6 +27,7 @@
.padown_offset = SPT_PAD_OWN, \
.padcfglock_offset = SPT_PADCFGLOCK, \
.hostown_offset = SPT_HOSTSW_OWN, \
+ .is_offset = SPT_GPI_IS, \
.ie_offset = SPT_GPI_IE, \
.gpp_size = 24, \
.gpp_num_padown_regs = 4, \
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v1 6/8] pinctrl: denverton: Provide Interrupt Status register offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
` (3 preceding siblings ...)
2019-07-23 15:56 ` [PATCH v1 5/8] pinctrl: sunrisepoint: " Andy Shevchenko
@ 2019-07-23 15:56 ` Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 7/8] pinctrl: lewisburg: " Andy Shevchenko
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-denverton.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/pinctrl/intel/pinctrl-denverton.c b/drivers/pinctrl/intel/pinctrl-denverton.c
index 3a4932b557b4..fde83cd4aac5 100644
--- a/drivers/pinctrl/intel/pinctrl-denverton.c
+++ b/drivers/pinctrl/intel/pinctrl-denverton.c
@@ -15,8 +15,9 @@
#include "pinctrl-intel.h"
#define DNV_PAD_OWN 0x020
-#define DNV_HOSTSW_OWN 0x0C0
#define DNV_PADCFGLOCK 0x090
+#define DNV_HOSTSW_OWN 0x0C0
+#define DNV_GPI_IS 0x100
#define DNV_GPI_IE 0x120
#define DNV_GPP(n, s, e) \
@@ -32,6 +33,7 @@
.padown_offset = DNV_PAD_OWN, \
.padcfglock_offset = DNV_PADCFGLOCK, \
.hostown_offset = DNV_HOSTSW_OWN, \
+ .is_offset = DNV_GPI_IS, \
.ie_offset = DNV_GPI_IE, \
.pin_base = (s), \
.npins = ((e) - (s) + 1), \
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v1 7/8] pinctrl: lewisburg: Provide Interrupt Status register offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
` (4 preceding siblings ...)
2019-07-23 15:56 ` [PATCH v1 6/8] pinctrl: denverton: " Andy Shevchenko
@ 2019-07-23 15:56 ` Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 8/8] pinctrl: intel: Remove default Interrupt Status offset Andy Shevchenko
2019-08-06 10:30 ` [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Mika Westerberg
7 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-lewisburg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/intel/pinctrl-lewisburg.c b/drivers/pinctrl/intel/pinctrl-lewisburg.c
index 03b04c7ae9e8..2e06fb1464ab 100644
--- a/drivers/pinctrl/intel/pinctrl-lewisburg.c
+++ b/drivers/pinctrl/intel/pinctrl-lewisburg.c
@@ -17,6 +17,7 @@
#define LBG_PAD_OWN 0x020
#define LBG_PADCFGLOCK 0x060
#define LBG_HOSTSW_OWN 0x080
+#define LBG_GPI_IS 0x100
#define LBG_GPI_IE 0x110
#define LBG_COMMUNITY(b, s, e) \
@@ -25,6 +26,7 @@
.padown_offset = LBG_PAD_OWN, \
.padcfglock_offset = LBG_PADCFGLOCK, \
.hostown_offset = LBG_HOSTSW_OWN, \
+ .is_offset = LBG_GPI_IS, \
.ie_offset = LBG_GPI_IE, \
.gpp_size = 24, \
.pin_base = (s), \
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v1 8/8] pinctrl: intel: Remove default Interrupt Status offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
` (5 preceding siblings ...)
2019-07-23 15:56 ` [PATCH v1 7/8] pinctrl: lewisburg: " Andy Shevchenko
@ 2019-07-23 15:56 ` Andy Shevchenko
2019-08-06 10:30 ` [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Mika Westerberg
7 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2019-07-23 15:56 UTC (permalink / raw)
To: Linus Walleij, linux-gpio, Mika Westerberg; +Cc: Andy Shevchenko
Since some of the GPIO controllers use different Interrupt Status offset,
it make sense to provide it explicitly in the drivers.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-intel.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c
index 1e8018edde4d..3a945997b8eb 100644
--- a/drivers/pinctrl/intel/pinctrl-intel.c
+++ b/drivers/pinctrl/intel/pinctrl-intel.c
@@ -30,7 +30,6 @@
#define REVID_MASK GENMASK(31, 16)
#define PADBAR 0x00c
-#define GPI_IS 0x100
#define PADOWN_BITS 4
#define PADOWN_SHIFT(p) ((p) % 8 * PADOWN_BITS)
@@ -1343,9 +1342,6 @@ static int intel_pinctrl_probe(struct platform_device *pdev,
community->regs = regs;
community->pad_regs = regs + padbar;
- if (!community->is_offset)
- community->is_offset = GPI_IS;
-
ret = intel_pinctrl_add_padgroups(pctrl, community);
if (ret)
return ret;
--
2.20.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
` (6 preceding siblings ...)
2019-07-23 15:56 ` [PATCH v1 8/8] pinctrl: intel: Remove default Interrupt Status offset Andy Shevchenko
@ 2019-08-06 10:30 ` Mika Westerberg
7 siblings, 0 replies; 9+ messages in thread
From: Mika Westerberg @ 2019-08-06 10:30 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Linus Walleij, linux-gpio
On Tue, Jul 23, 2019 at 06:56:26PM +0300, Andy Shevchenko wrote:
> Since some of the GPIO controllers use different Interrupt Status offset,
> it make sense to provide it explicitly in the driver.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
For this and the rest of the patches in this series,
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-08-06 10:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23 15:56 [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 2/8] pinctrl: cannonlake: " Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 3/8] pinctrl: geminilake: " Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 4/8] pinctrl: icelake: " Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 5/8] pinctrl: sunrisepoint: " Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 6/8] pinctrl: denverton: " Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 7/8] pinctrl: lewisburg: " Andy Shevchenko
2019-07-23 15:56 ` [PATCH v1 8/8] pinctrl: intel: Remove default Interrupt Status offset Andy Shevchenko
2019-08-06 10:30 ` [PATCH v1 1/8] pinctrl: broxton: Provide Interrupt Status register offset Mika Westerberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).