From: Ray Jui <rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
To: Kamal Dasu <kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>,
Florian Fainelli
<f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Gregory Fong
<gregory.0xf0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Jayachandran C
<jchandra-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>bcm-kernel-feedback-list
<jchandra-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
rajeev kumar
<rajeevkumar.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>Jayachandran
C <jchandra-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
bcm-kernel-feedback-list
<bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
Subject: Re: [V4, 1/2] i2c: brcmstb: Add Broadcom settop SoC i2c controller driver
Date: Wed, 20 May 2015 13:37:08 -0700 [thread overview]
Message-ID: <555CF074.9020405@broadcom.com> (raw)
In-Reply-To: <CAC=U0a3dxJi1c1FrQaqGojc8JXzs=om2Z1r=nB0dinyrFzz-+g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Okay, Kamal. I got it. Thanks for the explanation.
Wolfram, I have no more comment on this patch.
Thanks,
Ray
On 5/20/2015 1:35 PM, Kamal Dasu wrote:
> Ray,
>
> I am using non combined operation so it not necessary have limit. I
> am not sending a stop condition till the last byte is written or read.
> So if the xfer has more than the i2c buffer len we break up the
> transfers after the initial salve address write into max read/write
> data buffer size.
>
> Thanks
> Kamal
>
> On Tue, May 19, 2015 at 4:50 PM, Ray Jui <rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> wrote:
>> 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 <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
>> 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
>>
next prev parent reply other threads:[~2015-05-20 20:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 16:23 [V4, 1/2] i2c: brcmstb: Add Broadcom settop SoC i2c controller driver Kamal Dasu
[not found] ` <1432052625-6210-1-git-send-email-kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-19 16:23 ` [V4, 2/2] dt-bindings: i2c: Add i2c-brcmstb dt bindings Kamal Dasu
2015-05-19 20:50 ` [V4, 1/2] i2c: brcmstb: Add Broadcom settop SoC i2c controller driver Ray Jui
[not found] ` <555BA22B.9020408-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2015-05-20 20:35 ` Kamal Dasu
[not found] ` <CAC=U0a3dxJi1c1FrQaqGojc8JXzs=om2Z1r=nB0dinyrFzz-+g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-20 20:37 ` Ray Jui [this message]
2015-06-03 15:54 ` Wolfram Sang
-- strict thread matches above, loose matches on Subject: below --
2015-06-09 17:26 Kamal Dasu
[not found] ` <CAC=U0a2R=G0toDqUQzVueREDXFxs0Dm4eiBAdyhzH7Fp57-nRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-09 22:16 ` 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=555CF074.9020405@broadcom.com \
--to=rjui-dy08kvg/lbpwk0htik3j/w@public.gmane.org \
--cc=f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=gregory.0xf0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=jchandra-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
--cc=kdasu.kdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.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).