From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:57697 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933729AbeDXNpY (ORCPT ); Tue, 24 Apr 2018 09:45:24 -0400 Date: Tue, 24 Apr 2018 16:45:20 +0300 From: Heikki Krogerus To: Guenter Roeck Cc: Greg Kroah-Hartman , 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 Message-ID: <20180424134520.GA17550@kuha.fi.intel.com> References: <20180418123410.72090-1-heikki.krogerus@linux.intel.com> <20180418123410.72090-2-heikki.krogerus@linux.intel.com> <20180420172608.GB8997@roeck-us.net> <20180423080309.GG25303@kuha.fi.intel.com> <20180423164357.GA10461@roeck-us.net> <20180424114635.GA25723@kuha.fi.intel.com> <176946a5-0c4b-8db0-0476-1e546a783b31@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <176946a5-0c4b-8db0-0476-1e546a783b31@roeck-us.net> Sender: stable-owner@vger.kernel.org List-ID: 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