From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ray Jui Subject: Re: [V4, 1/2] i2c: brcmstb: Add Broadcom settop SoC i2c controller driver Date: Tue, 19 May 2015 13:50:51 -0700 Message-ID: <555BA22B.9020408@broadcom.com> References: <1432052625-6210-1-git-send-email-kdasu.kdev@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1432052625-6210-1-git-send-email-kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kamal Dasu , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org Cc: f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, gregory.0xf0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, jchandra-dY08KVG/lbpWk0Htik3J/w@public.gmane.org, rajeevkumar.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w@public.gmane.org List-Id: linux-i2c@vger.kernel.org Hi Kamal, There's one change still missing (that I mentioned when reviewing v2 of the patchset): >>> What is the max len that can be supported? BSC_CNT_REG1_MASK = 63? Then you should check against that. Note Wolfram has introduced a way to validate the supported data length at the i2c-core, which you should adapt: commit b7f625840267b18ef1011cba0085bb7e237d76f7 Author: Wolfram Sang Date: Mon Jan 5 23:45:59 2015 +0100 i2c: add quirk checks to core Let the core do the checks if HW quirks prevent a transfer. Saves code from drivers and adds consistency. <<< So you should add struct i2c_adapter_quirks and set the max_read_len and max_write_len. I have no more comment for the rest of the code. Thanks, Ray