* [PATCH] pinctrl: sdm660: Set tile property for pingroups
@ 2018-11-12 20:25 Craig Tatlor
2018-11-13 2:50 ` Bjorn Andersson
2018-11-17 12:25 ` Linus Walleij
0 siblings, 2 replies; 3+ messages in thread
From: Craig Tatlor @ 2018-11-12 20:25 UTC (permalink / raw)
Cc: ctatlor97, linux-arm-msm, Bjorn Andersson, Linus Walleij,
linux-gpio, linux-kernel
This was missed when tiles support was added in a revison and
causes the driver to fail to load.
Fixes: 9cf0c526bc58 ("pinctrl: qcom: Add sdm660 pinctrl driver")
Signed-off-by: Craig Tatlor <ctatlor97@gmail.com>
---
drivers/pinctrl/qcom/pinctrl-sdm660.c | 28 ++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/drivers/pinctrl/qcom/pinctrl-sdm660.c b/drivers/pinctrl/qcom/pinctrl-sdm660.c
index 6838b38555a1..1bfb0ae6b387 100644
--- a/drivers/pinctrl/qcom/pinctrl-sdm660.c
+++ b/drivers/pinctrl/qcom/pinctrl-sdm660.c
@@ -33,7 +33,7 @@ enum {
}
-#define PINGROUP(id, base, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
+#define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
{ \
.name = "gpio" #id, \
.pins = gpio##id##_pins, \
@@ -51,11 +51,12 @@ enum {
msm_mux_##f9 \
}, \
.nfuncs = 10, \
- .ctl_reg = base + REG_SIZE * id, \
- .io_reg = base + 0x4 + REG_SIZE * id, \
- .intr_cfg_reg = base + 0x8 + REG_SIZE * id, \
- .intr_status_reg = base + 0xc + REG_SIZE * id, \
- .intr_target_reg = base + 0x8 + REG_SIZE * id, \
+ .ctl_reg = REG_SIZE * id, \
+ .io_reg = 0x4 + REG_SIZE * id, \
+ .intr_cfg_reg = 0x8 + REG_SIZE * id, \
+ .intr_status_reg = 0xc + REG_SIZE * id, \
+ .intr_target_reg = 0x8 + REG_SIZE * id, \
+ .tile = _tile, \
.mux_bit = 2, \
.pull_bit = 0, \
.drv_bit = 6, \
@@ -82,6 +83,7 @@ enum {
.intr_cfg_reg = 0, \
.intr_status_reg = 0, \
.intr_target_reg = 0, \
+ .tile = NORTH, \
.mux_bit = -1, \
.pull_bit = pull, \
.drv_bit = drv, \
@@ -1397,13 +1399,13 @@ static const struct msm_pingroup sdm660_groups[] = {
PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _),
PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _),
PINGROUP(113, SOUTH, _, _, _, _, _, _, _, _, _),
- SDC_QDSD_PINGROUP(sdc1_clk, 0x99a000, 13, 6),
- SDC_QDSD_PINGROUP(sdc1_cmd, 0x99a000, 11, 3),
- SDC_QDSD_PINGROUP(sdc1_data, 0x99a000, 9, 0),
- SDC_QDSD_PINGROUP(sdc2_clk, 0x99b000, 14, 6),
- SDC_QDSD_PINGROUP(sdc2_cmd, 0x99b000, 11, 3),
- SDC_QDSD_PINGROUP(sdc2_data, 0x99b000, 9, 0),
- SDC_QDSD_PINGROUP(sdc1_rclk, 0x99a000, 15, 0),
+ SDC_QDSD_PINGROUP(sdc1_clk, 0x9a000, 13, 6),
+ SDC_QDSD_PINGROUP(sdc1_cmd, 0x9a000, 11, 3),
+ SDC_QDSD_PINGROUP(sdc1_data, 0x9a000, 9, 0),
+ SDC_QDSD_PINGROUP(sdc2_clk, 0x9b000, 14, 6),
+ SDC_QDSD_PINGROUP(sdc2_cmd, 0x9b000, 11, 3),
+ SDC_QDSD_PINGROUP(sdc2_data, 0x9b000, 9, 0),
+ SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0),
};
static const struct msm_pinctrl_soc_data sdm660_pinctrl = {
--
2.19.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] pinctrl: sdm660: Set tile property for pingroups
2018-11-12 20:25 [PATCH] pinctrl: sdm660: Set tile property for pingroups Craig Tatlor
@ 2018-11-13 2:50 ` Bjorn Andersson
2018-11-17 12:25 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2018-11-13 2:50 UTC (permalink / raw)
To: Craig Tatlor; +Cc: linux-arm-msm, Linus Walleij, linux-gpio, linux-kernel
On Mon 12 Nov 12:25 PST 2018, Craig Tatlor wrote:
> This was missed when tiles support was added in a revison and
> causes the driver to fail to load.
>
> Fixes: 9cf0c526bc58 ("pinctrl: qcom: Add sdm660 pinctrl driver")
> Signed-off-by: Craig Tatlor <ctatlor97@gmail.com>
> ---
Sorry for not spotting this in my previous review.
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> drivers/pinctrl/qcom/pinctrl-sdm660.c | 28 ++++++++++++++-------------
> 1 file changed, 15 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/pinctrl/qcom/pinctrl-sdm660.c b/drivers/pinctrl/qcom/pinctrl-sdm660.c
> index 6838b38555a1..1bfb0ae6b387 100644
> --- a/drivers/pinctrl/qcom/pinctrl-sdm660.c
> +++ b/drivers/pinctrl/qcom/pinctrl-sdm660.c
> @@ -33,7 +33,7 @@ enum {
> }
>
>
> -#define PINGROUP(id, base, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
> +#define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
> { \
> .name = "gpio" #id, \
> .pins = gpio##id##_pins, \
> @@ -51,11 +51,12 @@ enum {
> msm_mux_##f9 \
> }, \
> .nfuncs = 10, \
> - .ctl_reg = base + REG_SIZE * id, \
> - .io_reg = base + 0x4 + REG_SIZE * id, \
> - .intr_cfg_reg = base + 0x8 + REG_SIZE * id, \
> - .intr_status_reg = base + 0xc + REG_SIZE * id, \
> - .intr_target_reg = base + 0x8 + REG_SIZE * id, \
> + .ctl_reg = REG_SIZE * id, \
> + .io_reg = 0x4 + REG_SIZE * id, \
> + .intr_cfg_reg = 0x8 + REG_SIZE * id, \
> + .intr_status_reg = 0xc + REG_SIZE * id, \
> + .intr_target_reg = 0x8 + REG_SIZE * id, \
> + .tile = _tile, \
> .mux_bit = 2, \
> .pull_bit = 0, \
> .drv_bit = 6, \
> @@ -82,6 +83,7 @@ enum {
> .intr_cfg_reg = 0, \
> .intr_status_reg = 0, \
> .intr_target_reg = 0, \
> + .tile = NORTH, \
> .mux_bit = -1, \
> .pull_bit = pull, \
> .drv_bit = drv, \
> @@ -1397,13 +1399,13 @@ static const struct msm_pingroup sdm660_groups[] = {
> PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _),
> PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _),
> PINGROUP(113, SOUTH, _, _, _, _, _, _, _, _, _),
> - SDC_QDSD_PINGROUP(sdc1_clk, 0x99a000, 13, 6),
> - SDC_QDSD_PINGROUP(sdc1_cmd, 0x99a000, 11, 3),
> - SDC_QDSD_PINGROUP(sdc1_data, 0x99a000, 9, 0),
> - SDC_QDSD_PINGROUP(sdc2_clk, 0x99b000, 14, 6),
> - SDC_QDSD_PINGROUP(sdc2_cmd, 0x99b000, 11, 3),
> - SDC_QDSD_PINGROUP(sdc2_data, 0x99b000, 9, 0),
> - SDC_QDSD_PINGROUP(sdc1_rclk, 0x99a000, 15, 0),
> + SDC_QDSD_PINGROUP(sdc1_clk, 0x9a000, 13, 6),
> + SDC_QDSD_PINGROUP(sdc1_cmd, 0x9a000, 11, 3),
> + SDC_QDSD_PINGROUP(sdc1_data, 0x9a000, 9, 0),
> + SDC_QDSD_PINGROUP(sdc2_clk, 0x9b000, 14, 6),
> + SDC_QDSD_PINGROUP(sdc2_cmd, 0x9b000, 11, 3),
> + SDC_QDSD_PINGROUP(sdc2_data, 0x9b000, 9, 0),
> + SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0),
> };
>
> static const struct msm_pinctrl_soc_data sdm660_pinctrl = {
> --
> 2.19.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] pinctrl: sdm660: Set tile property for pingroups
2018-11-12 20:25 [PATCH] pinctrl: sdm660: Set tile property for pingroups Craig Tatlor
2018-11-13 2:50 ` Bjorn Andersson
@ 2018-11-17 12:25 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2018-11-17 12:25 UTC (permalink / raw)
To: Craig Tatlor
Cc: linux-arm-msm, Bjorn Andersson, open list:GPIO SUBSYSTEM, linux-kernel
On Mon, Nov 12, 2018 at 9:26 PM Craig Tatlor <ctatlor97@gmail.com> wrote:
> This was missed when tiles support was added in a revison and
> causes the driver to fail to load.
>
> Fixes: 9cf0c526bc58 ("pinctrl: qcom: Add sdm660 pinctrl driver")
> Signed-off-by: Craig Tatlor <ctatlor97@gmail.com>
Patch applied for fixes with Björn's tag!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-17 12:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12 20:25 [PATCH] pinctrl: sdm660: Set tile property for pingroups Craig Tatlor
2018-11-13 2:50 ` Bjorn Andersson
2018-11-17 12:25 ` Linus Walleij
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).