All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers: spmi-msm: fix scanning for peripherals
@ 2017-12-02 16:24 Jorge Ramirez-Ortiz
  2017-12-13 22:56 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Jorge Ramirez-Ortiz @ 2017-12-02 16:24 UTC (permalink / raw)
  To: u-boot

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c
index ca27ee5..c226913 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;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] drivers: spmi-msm: fix scanning for peripherals
  2017-12-02 16:24 [U-Boot] [PATCH] drivers: spmi-msm: fix scanning for peripherals Jorge Ramirez-Ortiz
@ 2017-12-13 22:56 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2017-12-13 22:56 UTC (permalink / raw)
  To: u-boot

On Sat, Dec 02, 2017 at 05:24:42PM +0100, Jorge Ramirez-Ortiz wrote:

> 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).

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171213/75bd6d1c/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-13 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-02 16:24 [U-Boot] [PATCH] drivers: spmi-msm: fix scanning for peripherals Jorge Ramirez-Ortiz
2017-12-13 22:56 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.