All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio: mvebu: fix blink counter register selection
@ 2017-05-30 12:28 ` Richard Genoud
  0 siblings, 0 replies; 21+ messages in thread
From: Richard Genoud @ 2017-05-30 12:28 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Alexandre Courbot, Andrew Lunn, Gregory Clement, Jason Cooper,
	linux-arm-kernel, linux-gpio, linux-kernel, linux-pwm,
	Mark Rutland, Ralph Sennhauser, Rob Herring, Russell King,
	Sebastian Hesselbarth, Thierry Reding, Richard Genoud

The blink counter A was always selected because 0 was forced in the
blink select counter register.
The variable 'set' was obviously there to be used as the register value,
selecting the B counter when id==1 and A counter when id==0.

Tested on clearfog-pro (Marvell 88F6828)

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
---
 drivers/gpio/gpio-mvebu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index 19a92efabbef..cdef2c78cb3b 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -747,7 +747,7 @@ static int mvebu_pwm_probe(struct platform_device *pdev,
 		set = U32_MAX;
 	else
 		return -EINVAL;
-	writel_relaxed(0, mvebu_gpioreg_blink_counter_select(mvchip));
+	writel_relaxed(set, mvebu_gpioreg_blink_counter_select(mvchip));
 
 	mvpwm = devm_kzalloc(dev, sizeof(struct mvebu_pwm), GFP_KERNEL);
 	if (!mvpwm)

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

end of thread, other threads:[~2017-05-30 16:35 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30 12:28 [PATCH 1/2] gpio: mvebu: fix blink counter register selection Richard Genoud
2017-05-30 12:28 ` Richard Genoud
2017-05-30 12:28 ` [PATCH 2/2] gpio: mvebu: fix gpio bank registration when pwm is used Richard Genoud
2017-05-30 12:28   ` Richard Genoud
2017-05-30 13:16   ` Gregory CLEMENT
2017-05-30 13:16     ` Gregory CLEMENT
2017-05-30 14:45     ` Richard Genoud
2017-05-30 14:45       ` Richard Genoud
2017-05-30 14:45       ` Richard Genoud
2017-05-30 15:14       ` Ralph Sennhauser
2017-05-30 15:14         ` Ralph Sennhauser
2017-05-30 15:14         ` Ralph Sennhauser
2017-05-30 16:35         ` Richard Genoud
2017-05-30 16:35           ` Richard Genoud
2017-05-30 16:35           ` Richard Genoud
2017-05-30 13:01 ` [PATCH 1/2] gpio: mvebu: fix blink counter register selection Gregory CLEMENT
2017-05-30 13:01   ` Gregory CLEMENT
2017-05-30 13:06   ` Gregory CLEMENT
2017-05-30 13:06     ` Gregory CLEMENT
2017-05-30 15:18 ` Ralph Sennhauser
2017-05-30 15:18   ` Ralph Sennhauser

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.