* [PATCH 0/3] SPMI fixlets
@ 2024-07-25 16:46 Stephen Boyd
2024-07-25 16:46 ` [PATCH 1/3] spmi: add missing MODULE_DESCRIPTION() macros Stephen Boyd
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Stephen Boyd @ 2024-07-25 16:46 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel, patches
Hi Greg,
Here's some small SPMI fixes that I found while searching through my
inbox. I see you've already picked up the module description one but
I've included it here anyway for completeness. The pmic-arb irq domain
fix is the most important one here. Unfortunately I missed it and so
SPMI interrupts for newer platforms are busted in v6.10. Luckily there
aren't that many of those devices in use so the damage was minimal.
David Collins (1):
spmi: pmic-arb: add missing newline in dev_err format strings
Jeff Johnson (1):
spmi: add missing MODULE_DESCRIPTION() macros
Konrad Dybcio (1):
spmi: pmic-arb: Pass the correct of_node to irq_domain_add_tree
drivers/spmi/hisi-spmi-controller.c | 1 +
drivers/spmi/spmi-pmic-arb.c | 12 ++++++------
2 files changed, 7 insertions(+), 6 deletions(-)
base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
--
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/
https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] spmi: add missing MODULE_DESCRIPTION() macros
2024-07-25 16:46 [PATCH 0/3] SPMI fixlets Stephen Boyd
@ 2024-07-25 16:46 ` Stephen Boyd
2024-07-25 16:46 ` [PATCH 2/3] spmi: pmic-arb: Pass the correct of_node to irq_domain_add_tree Stephen Boyd
2024-07-25 16:46 ` [PATCH 3/3] spmi: pmic-arb: add missing newline in dev_err format strings Stephen Boyd
2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2024-07-25 16:46 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Jeff Johnson, linux-kernel, patches
From: Jeff Johnson <quic_jjohnson@quicinc.com>
make allmodconfig && make W=1 C=1 reports:
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/spmi/hisi-spmi-controller.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/spmi/spmi-pmic-arb.o
Add the missing invocations of the MODULE_DESCRIPTION() macro.
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://lore.kernel.org/r/20240609-md-drivers-spmi-v1-1-f1d5b24e7a66@quicinc.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
drivers/spmi/hisi-spmi-controller.c | 1 +
drivers/spmi/spmi-pmic-arb.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/spmi/hisi-spmi-controller.c b/drivers/spmi/hisi-spmi-controller.c
index fa068b34b040..3cafdf22c909 100644
--- a/drivers/spmi/hisi-spmi-controller.c
+++ b/drivers/spmi/hisi-spmi-controller.c
@@ -344,6 +344,7 @@ static void __exit spmi_controller_exit(void)
}
module_exit(spmi_controller_exit);
+MODULE_DESCRIPTION("Hisilicon 3670 SPMI Controller driver");
MODULE_LICENSE("GPL v2");
MODULE_VERSION("1.0");
MODULE_ALIAS("platform:spmi_controller");
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index 791cdc160c51..f240fcc5a4e1 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers/spmi/spmi-pmic-arb.c
@@ -1891,5 +1891,6 @@ static struct platform_driver spmi_pmic_arb_driver = {
};
module_platform_driver(spmi_pmic_arb_driver);
+MODULE_DESCRIPTION("Qualcomm MSM SPMI Controller (PMIC Arbiter) driver");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:spmi_pmic_arb");
--
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/
https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] spmi: pmic-arb: Pass the correct of_node to irq_domain_add_tree
2024-07-25 16:46 [PATCH 0/3] SPMI fixlets Stephen Boyd
2024-07-25 16:46 ` [PATCH 1/3] spmi: add missing MODULE_DESCRIPTION() macros Stephen Boyd
@ 2024-07-25 16:46 ` Stephen Boyd
2024-07-25 16:46 ` [PATCH 3/3] spmi: pmic-arb: add missing newline in dev_err format strings Stephen Boyd
2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2024-07-25 16:46 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Konrad Dybcio, linux-kernel, patches, Abel Vesa, Dmitry Baryshkov,
stable
From: Konrad Dybcio <konrad.dybcio@linaro.org>
Currently, irqchips for all of the subnodes (which represent a given
bus master) point to the parent wrapper node. This is no bueno, as
no interrupts arrive, ever (because nothing references that node).
Fix that by passing a reference to the respective master's of_node.
Worth noting, this is a NOP for devices with only a single master
described.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240522-topic-spmi_multi_master_irqfix-v2-1-7ec92a862b9f@linaro.org
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fixes: 02922ccbb330 ("spmi: pmic-arb: Register controller for bus instead of arbiter")
Cc: stable@vger.kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
drivers/spmi/spmi-pmic-arb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index f240fcc5a4e1..b6880c13163c 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers/spmi/spmi-pmic-arb.c
@@ -1737,8 +1737,7 @@ static int spmi_pmic_arb_bus_init(struct platform_device *pdev,
dev_dbg(&pdev->dev, "adding irq domain for bus %d\n", bus_index);
- bus->domain = irq_domain_add_tree(dev->of_node,
- &pmic_arb_irq_domain_ops, bus);
+ bus->domain = irq_domain_add_tree(node, &pmic_arb_irq_domain_ops, bus);
if (!bus->domain) {
dev_err(&pdev->dev, "unable to create irq_domain\n");
return -ENOMEM;
--
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/
https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] spmi: pmic-arb: add missing newline in dev_err format strings
2024-07-25 16:46 [PATCH 0/3] SPMI fixlets Stephen Boyd
2024-07-25 16:46 ` [PATCH 1/3] spmi: add missing MODULE_DESCRIPTION() macros Stephen Boyd
2024-07-25 16:46 ` [PATCH 2/3] spmi: pmic-arb: Pass the correct of_node to irq_domain_add_tree Stephen Boyd
@ 2024-07-25 16:46 ` Stephen Boyd
2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2024-07-25 16:46 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: David Collins, linux-kernel, patches, Bjorn Andersson
From: David Collins <quic_collinsd@quicinc.com>
dev_err() format strings should end with '\n'. Several such
format strings in the spmi-pmic-arb driver are missing it.
Add newlines where needed.
Fixes: 02922ccbb330 ("spmi: pmic-arb: Register controller for bus instead of arbiter")
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
Link: https://lore.kernel.org/r/20240703221248.3640490-1-quic_collinsd@quicinc.com
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
drivers/spmi/spmi-pmic-arb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
index b6880c13163c..9ba9495fcc4b 100644
--- a/drivers/spmi/spmi-pmic-arb.c
+++ b/drivers/spmi/spmi-pmic-arb.c
@@ -398,7 +398,7 @@ static int pmic_arb_fmt_read_cmd(struct spmi_pmic_arb_bus *bus, u8 opc, u8 sid,
*offset = rc;
if (bc >= PMIC_ARB_MAX_TRANS_BYTES) {
- dev_err(&bus->spmic->dev, "pmic-arb supports 1..%d bytes per trans, but:%zu requested",
+ dev_err(&bus->spmic->dev, "pmic-arb supports 1..%d bytes per trans, but:%zu requested\n",
PMIC_ARB_MAX_TRANS_BYTES, len);
return -EINVAL;
}
@@ -477,7 +477,7 @@ static int pmic_arb_fmt_write_cmd(struct spmi_pmic_arb_bus *bus, u8 opc,
*offset = rc;
if (bc >= PMIC_ARB_MAX_TRANS_BYTES) {
- dev_err(&bus->spmic->dev, "pmic-arb supports 1..%d bytes per trans, but:%zu requested",
+ dev_err(&bus->spmic->dev, "pmic-arb supports 1..%d bytes per trans, but:%zu requested\n",
PMIC_ARB_MAX_TRANS_BYTES, len);
return -EINVAL;
}
@@ -1702,7 +1702,7 @@ static int spmi_pmic_arb_bus_init(struct platform_device *pdev,
index = of_property_match_string(node, "reg-names", "cnfg");
if (index < 0) {
- dev_err(dev, "cnfg reg region missing");
+ dev_err(dev, "cnfg reg region missing\n");
return -EINVAL;
}
@@ -1712,7 +1712,7 @@ static int spmi_pmic_arb_bus_init(struct platform_device *pdev,
index = of_property_match_string(node, "reg-names", "intr");
if (index < 0) {
- dev_err(dev, "intr reg region missing");
+ dev_err(dev, "intr reg region missing\n");
return -EINVAL;
}
--
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/
https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-25 16:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 16:46 [PATCH 0/3] SPMI fixlets Stephen Boyd
2024-07-25 16:46 ` [PATCH 1/3] spmi: add missing MODULE_DESCRIPTION() macros Stephen Boyd
2024-07-25 16:46 ` [PATCH 2/3] spmi: pmic-arb: Pass the correct of_node to irq_domain_add_tree Stephen Boyd
2024-07-25 16:46 ` [PATCH 3/3] spmi: pmic-arb: add missing newline in dev_err format strings Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox