aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorRussell King <[email protected]>2019-06-10 20:10:53 +0300
committerLinus Walleij <[email protected]>2019-06-12 11:14:01 +0200
commit8ba705957f561ecc0ed4fb6b9c300477c1fc9536 (patch)
treeb415ac3cb8a30faf66de13f827b2700b9228e84b /drivers/usb/cdns3/cdns3-debug.h
parent6653dd88cf69d95b0e96baf4856e41e5b3cf8005 (diff)
gpio: omap: simplify set_multiple()
One of the reasons for set_multiple() to exist is to allow multiple GPIOs on the same chip to be changed simultaneously - see commit 5f42424354f5 ("gpiolib: allow simultaneous setting of multiple GPIO outputs"): - Simultaneous glitch-free setting of multiple pins on any kind of parallel bus attached to GPIOs provided they all reside on the same chip and bank. In order for this to work, we should not use the atomic set/clear registers, but instead read-modify-write the dataout register. We already take the spinlock to ensure that happens atomically, so move the code into the set_multiple() function and kill the two helper functions. Signed-off-by: Russell King <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Tested-by: Tony Lindgren <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions