linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: linux-i2c@vger.kernel.org
Subject: [PATCH 0/2] Use master-abort for slave probes
Date: Wed, 6 May 2020 10:36:15 +0100	[thread overview]
Message-ID: <20200506093615.GO1551@shell.armlinux.org.uk> (raw)

Hi,

This series allows us to use the "master abort" feature when probing
slaves rather than resetting the controller, which allows more
graceful recovery to bus free state after sending the address byte.

The i2c-pxa controller expects to send data after the address byte
rather than a stop.  Rather than resetting the bus (and thus forcing
a bus-free state by releasing the SCL line) which may leave the bus
in an indeterminant state, use the master-abort command instead.

This patch series applies on top of the previous posted cleanup patches,
although it may also apply to -rc.

 drivers/i2c/busses/i2c-pxa.c | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up

             reply	other threads:[~2020-05-06  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06  9:36 Russell King - ARM Linux admin [this message]
2020-05-06  9:36 ` [PATCH 1/2] i2c: pxa: clear all master action bits in i2c_pxa_stop_message() Russell King
2020-05-12 10:38   ` Wolfram Sang
2020-05-06  9:36 ` [PATCH 2/2] i2c: pxa: use master-abort for device probes Russell King
2020-05-12 10:39   ` Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200506093615.GO1551@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=linux-i2c@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).