- Subject: Re: [PATCH 2/2] i2c/designware: Provide optional i2c bus recovery function
- From: Shubhrajyoti Datta <omaplinuxkernel@xxxxxxxxx>
- Date: Mon, 27 Feb 2012 14:42:48 +0530
- Authentication-results: mr.google.com; spf=pass (google.com: domain of omaplinuxkernel@xxxxxxxxx designates 10.220.116.68 as permitted sender) smtp.mail=omaplinuxkernel@xxxxxxxxx; dkim=pass header.i=omaplinuxkernel@xxxxxxxxx
- Cc: Viresh Kumar <viresh.kumar@xxxxxx>, "khali@xxxxxxxxxxxx" <khali@xxxxxxxxxxxx>, "ben-linux@xxxxxxxxx" <ben-linux@xxxxxxxxx>, "w.sang@xxxxxxxxxxxxxx" <w.sang@xxxxxxxxxxxxxx>, "armando.visconti@xxxxxx" <armando.visconti@xxxxxx>, "shiraz.hashim@xxxxxx" <shiraz.hashim@xxxxxx>, "vipin.kumar@xxxxxx" <vipin.kumar@xxxxxx>, "rajeev-dlh.kumar@xxxxxx" <rajeev-dlh.kumar@xxxxxx>, "deepak.sikri@xxxxxx" <deepak.sikri@xxxxxx>, "vipulkumar.samar@xxxxxx" <vipulkumar.samar@xxxxxx>, "amit.virdi@xxxxxx" <amit.virdi@xxxxxx>, "pratyush.anand@xxxxxx" <pratyush.anand@xxxxxx>, "bhupesh.sharma@xxxxxx" <bhupesh.sharma@xxxxxx>, "viresh.linux@xxxxxxxxx" <viresh.linux@xxxxxxxxx>, "bhavna.yadav@xxxxxx" <bhavna.yadav@xxxxxx>, "vincenzo.frascino@xxxxxx" <vincenzo.frascino@xxxxxx>, "mirko.gardi@xxxxxx" <mirko.gardi@xxxxxx>, "salvatore.dedominicis@xxxxxx" <salvatore.dedominicis@xxxxxx>, "linux-i2c@xxxxxxxxxxxxxxx" <linux-i2c@xxxxxxxxxxxxxxx>
- In-reply-to: <4F4B3072.6050903@nvidia.com>
- References: <0ca1d8990c23a45193a32d0e7e889620b995af59.1330082915.git.viresh.kumar@st.com> <351031347b845920a0ea78e7491d955137e3d7aa.1330082915.git.viresh.kumar@st.com> <CAM=Q2cudYcSqAKk4qNg7MQxRBCkJ-XXXSL-Bg=sZ2+hvS_Qcxw@mail.gmail.com> <4F4B3072.6050903@nvidia.com>
On Mon, Feb 27, 2012 at 12:57 PM, Laxman Dewangan <ldewangan@xxxxxxxxxx> wrote:
> On Monday 27 February 2012 12:51 PM, Shubhrajyoti Datta wrote:
>>
>> On Fri, Feb 24, 2012 at 5:01 PM, Viresh Kumar<viresh.kumar@xxxxxx> wrote:
>>>
>>> From: Vincenzo Frascino<vincenzo.frascino@xxxxxx>
>>>
>>> Add optional i2c_recover_bus() function to the Synopsys DesignWare I2C
>>> adapter
>>> driver that performs i2c bus recovery after timeout. The scope of this
>>> routine
>>> is to define i2c bus recovery procedure as specified in the i2c protocol
>>> Rev. 03
>>> section 3.16 titled "Bus clear".
>>
>> What do you do in the function ?
>>
>> Could we have it in the driver file itself?
>>
> I think bus recovery mechanism is to send extra clock on SCL line by
> toggling the pin (using gpio apis)
You mean the SCL I didnt understand the gpio part?
Why is gpio needed?
and keep watching of sda line whether it
> becomes high or not.
> We can put this algorithms in the some common file (i2c/algos/) and so if
> any i2c bus driver want to use, they can use it.
> Little background: I am working on tegra i2c controller and we have similar
> logic in tegra-i2c driver which we want to upstream.
> If similar function is in common place, we can use this and need not to
> duplicating it on every bus driver.
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[LM Sensors]
[Linux USB Devel]
[Linux Media]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]