i2c: omap: Move the remove constraint
Subsystems (4)
PATCH v3 1/1 i2c: omap: Move the remove constraint
Currently we just queue the transfer and release the qos constraints, however we do not wait for the transfer to complete to release the constraint. Move the remove constraint after the bus busy as we are sure that the transfers are completed by then.
---
v2: rebase to the for-next branch
v3: Fix a typo
drivers/i2c/busses/i2c-omap.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/i2c/busses/i2c-omap.c +4 -3
@@ -654,13 +654,14 @@ omap_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)break ; } -if (dev->set_mpu_wkup_lat !=NULL ) - dev->set_mpu_wkup_lat (dev->dev,-1 ); -if (r ==0 ) r = num;omap_i2c_wait_for_bb (dev); + +if (dev->set_mpu_wkup_lat !=NULL ) + dev->set_mpu_wkup_lat (dev->dev,-1 ); + out:pm_runtime_mark_last_busy (dev->dev);pm_runtime_put_autosuspend (dev->dev);
Signature · 1 line
1.7.5.4
Wolfram Sang
AppliedPATCH v3 1/1 i2c: omap: Move the remove constraint
Quoted 8 lines · Shubhrajyoti D
Currently we just queue the transfer and release the qos constraints, however we do not wait for the transfer to complete to release the constraint. Move the remove constraint after the bus busy as we are sure that the transfers are completed by then.
Acked-by Jean Pihet <[email protected]>Signed-off-by Shubhrajyoti D <[email protected]>
Applied to for-next. Please let me know if it should go to for-current.
Signature · 9 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121116/3ac6caa5/attachment.sig>
PATCH v3 1/1 i2c: omap: Move the remove constraint
Quoted 11 lines · Wolfram Sang
Quoted 8 lines · Shubhrajyoti D
Currently we just queue the transfer and release the qos constraints, however we do not wait for the transfer to complete to release the constraint. Move the remove constraint after the bus busy as we are sure that the transfers are completed by then.
Acked-by Jean Pihet <[email protected]>Signed-off-by Shubhrajyoti D <[email protected]>Applied to for-next. Please let me know if it should go to for-current.
I feel for-next should be fine.
Quoted 4 lines
--
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |