Commit bd3006c8494bedb11814e593ba1a64f3e4935030
Committed by
Tom Rini
1 parent
cf71338ee7
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
drivers: spmi-msm: fix scanning for peripherals
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).
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/spmi/spmi-msm.c
... | ... | @@ -161,7 +161,7 @@ |
161 | 161 | return -EINVAL; |
162 | 162 | |
163 | 163 | /* Scan peripherals connected to each SPMI channel */ |
164 | - for (i = 0; i < SPMI_MAX_CHANNELS ; i++) { | |
164 | + for (i = 0; i < SPMI_MAX_PERIPH ; i++) { | |
165 | 165 | uint32_t periph = readl(priv->arb_chnl + ARB_CHANNEL_OFFSET(i)); |
166 | 166 | uint8_t slave_id = (periph & 0xf0000) >> 16; |
167 | 167 | uint8_t pid = (periph & 0xff00) >> 8; |