projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf71338
)
drivers: spmi-msm: fix scanning for peripherals
author
Jorge Ramirez-Ortiz
<jorge.ramirez-ortiz@linaro.org>
Sat, 2 Dec 2017 16:24:42 +0000
(17:24 +0100)
committer
Tom Rini
<trini@konsulko.com>
Wed, 13 Dec 2017 02:33:38 +0000
(21:33 -0500)
A typo in the probe function causes not all peripherals to be scanned
(in the case of the Dragonboard820c - work in progress - it wont find pmic0).
drivers/spmi/spmi-msm.c
patch
|
blob
|
history
diff --git
a/drivers/spmi/spmi-msm.c
b/drivers/spmi/spmi-msm.c
index ca27ee5736877a23fef42ed45e245c234064d2fa..c226913f9e8c2af9ef6252f59e3aa306ec0102e5 100644
(file)
--- a/
drivers/spmi/spmi-msm.c
+++ b/
drivers/spmi/spmi-msm.c
@@
-161,7
+161,7
@@
static int msm_spmi_probe(struct udevice *dev)
return -EINVAL;
/* Scan peripherals connected to each SPMI channel */
- for (i = 0; i < SPMI_MAX_
CHANNELS
; i++) {
+ for (i = 0; i < SPMI_MAX_
PERIPH
; i++) {
uint32_t periph = readl(priv->arb_chnl + ARB_CHANNEL_OFFSET(i));
uint8_t slave_id = (periph & 0xf0000) >> 16;
uint8_t pid = (periph & 0xff00) >> 8;