Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754158AbcJZIUb (ORCPT ); Wed, 26 Oct 2016 04:20:31 -0400 Received: from mga11.intel.com ([192.55.52.93]:50844 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbcJZIU1 (ORCPT ); Wed, 26 Oct 2016 04:20:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,549,1473145200"; d="scan'208";a="894100719" Date: Wed, 26 Oct 2016 11:16:00 +0300 From: Mika Westerberg To: Tin Huynh Cc: Jarkko Nikula , Andy Shevchenko , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Loc Ho , Thang Nguyen , Phong Vo , patches Subject: Re: [PATCH v1] I2C Designware Core Supports SMBUS BLOCK Message-ID: <20161026081600.GM1476@lahna.fi.intel.com> References: <1477370113-15145-1-git-send-email-tnhuynh@apm.com> <20161025115025.GI1476@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 267 Lines: 6 On Wed, Oct 26, 2016 at 02:26:05PM +0700, Tin Huynh wrote: > But can you explain more about 'but even that starts to require small > helper function'? So you could add a small function i2c_dw_xfer_need_stop() that returns true if you need to set the stop bit.