mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
c8c3dcb9df
The function locomo_m62332_senddata sends a three byte i2c message to a M62332 DAC. This entire function is guarded with a spin_lock_irqsave at the start of the function and a spin_unlock_irqrestore at the end. As each byte is transferred, the i2c ACK from the DAC is checked. Currently, if the ACK is missing the function simply returns without the unlock. It also leaves the i2c bus in an invalid state since the last byte transferred did not have a "stop" condition and leave the bus idle. Fix this by adding an exit path using goto. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com> |
||
---|---|---|
.. | ||
clkdev.c | ||
dmabounce.c | ||
gic.c | ||
icst307.c | ||
icst525.c | ||
it8152.c | ||
Kconfig | ||
locomo.c | ||
Makefile | ||
sa1111.c | ||
scoop.c | ||
sharpsl_param.c | ||
time-acorn.c | ||
uengine.c | ||
via82c505.c | ||
vic.c |