1 From: Russell King <rmk+kernel@armlinux.org.uk>
2 Bcc: linux@mail.armlinux.org.uk
3 Subject: [PATCH 6/7] i2c: pxa: use master-abort for device probes
5 Content-Disposition: inline
6 Content-Transfer-Encoding: 8bit
7 Content-Type: text/plain; charset="utf-8"
9 Use master-abort to send the stop condition after an address cycle
10 rather than resetting the controller.
12 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
14 drivers/i2c/busses/i2c-pxa.c | 10 ++--------
15 1 file changed, 2 insertions(+), 8 deletions(-)
17 --- a/drivers/i2c/busses/i2c-pxa.c
18 +++ b/drivers/i2c/busses/i2c-pxa.c
19 @@ -899,14 +899,8 @@ static void i2c_pxa_irq_txempty(struct p
21 icr |= ICR_START | ICR_TB;
23 - if (i2c->msg->len == 0) {
25 - * Device probes have a message length of zero
26 - * and need the bus to be reset before it can
31 + if (i2c->msg->len == 0)
33 i2c_pxa_master_complete(i2c, 0);