diff options
author | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> | 2017-12-02 17:24:42 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-12-12 21:33:38 -0500 |
commit | bd3006c8494bedb11814e593ba1a64f3e4935030 (patch) | |
tree | 98c5fe24b32cae4bf6f9f13479913e6c005e878f /drivers/spmi | |
parent | cf71338ee7a1dc16f13a4f1b89f32c624210df45 (diff) | |
download | u-boot-bd3006c8494bedb11814e593ba1a64f3e4935030.tar.gz |
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).
Diffstat (limited to 'drivers/spmi')
-rw-r--r-- | drivers/spmi/spmi-msm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c index ca27ee5736..c226913f9e 100644 --- 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; |