Thread (22 messages) flat view 22 messages, 3 authors, 2012-12-09

Re: [PATCH 04/11] brcmsmac: radio on led support

From: Arend van Spriel <hidden>
Date: 2012-12-05 17:50:01

On 12/05/2012 04:09 PM, Hauke Mehrtens wrote:
quoted
+	if (state)
quoted
+		bcma_cc_set32(cc_drv, BCMA_CC_GPIOOUT, gpio_out);
+	else
+		bcma_cc_mask32(cc_drv, BCMA_CC_GPIOOUT, ~gpio_out);
Could you use bcma_chipco_gpio_out() instead, in the mips tree is a
patch adding locking around the gpio registers. bcma_cc_set32 and
bcma_cc_mask32 are not atomic. Two threads are accessing them in
parallel will cause problems. The patches in the mips tree are adding
full libgpio support, so it should also be possible to register the gpio
from the generic gpio system and use the generic gpio functions.
Sure. I will rework the patch.

Gr. AvS
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help