From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH 1/2] usb: typec: tps6598x: handle block reads separately with plain-I2C adapters
Date: Tue, 24 Apr 2018 16:45:20 +0300 [thread overview]
Message-ID: <20180424134520.GA17550@kuha.fi.intel.com> (raw)
In-Reply-To: <176946a5-0c4b-8db0-0476-1e546a783b31@roeck-us.net>
On Tue, Apr 24, 2018 at 06:02:56AM -0700, Guenter Roeck wrote:
> The chip should return the number of bytes it has available and then NAK
> the transfer. The chip driver should then report the number of bytes read
> to its caller. This is why i2c_smbus_read_block_data() and friends return
> not just 0/-errno, but the number of bytes read.
Thanks for the info.
Br,
--
heikki
next prev parent reply other threads:[~2018-04-24 13:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-18 12:34 [PATCH 0/2] usb: typec: fixes Heikki Krogerus
2018-04-18 12:34 ` [PATCH 1/2] usb: typec: tps6598x: handle block reads separately with plain-I2C adapters Heikki Krogerus
2018-04-20 17:26 ` Guenter Roeck
2018-04-22 12:54 ` Greg Kroah-Hartman
2018-04-23 8:03 ` Heikki Krogerus
2018-04-23 16:43 ` Guenter Roeck
2018-04-24 11:46 ` Heikki Krogerus
2018-04-24 13:02 ` Guenter Roeck
2018-04-24 13:45 ` Heikki Krogerus [this message]
2018-04-18 12:34 ` [PATCH 2/2] usb: typec: ucsi: Increase command completion timeout value Heikki Krogerus
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=20180424134520.GA17550@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=stable@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).