linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Liu Kimriver/刘金河" <kimriver.liu@siengine.com>
To: Andi Shyti <andi.shyti@kernel.org>
Cc: "jarkko.nikula@linux.intel.com" <jarkko.nikula@linux.intel.com>,
	"andriy.shevchenko@linux.intel.com"
	<andriy.shevchenko@linux.intel.com>,
	"mika.westerberg@linux.intel.com"
	<mika.westerberg@linux.intel.com>,
	"jsd@semihalf.com" <jsd@semihalf.com>,
	"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v9] i2c: designware: fix controller is holding SCL low while ENABLE bit is disabled
Date: Wed, 11 Sep 2024 10:53:18 +0000	[thread overview]
Message-ID: <a6e3accdbf6446f4befb8865b0ced07f@siengine.com> (raw)
In-Reply-To: <ynzj54wf54b3ebxambxu73trcxee5xjiwhvs6tok652hhkxiff@wympszncw2gx>

HI andi and andy,

>-----Original Message-----
>From: Andi Shyti <andi.shyti@kernel.org> 
>Sent: 2024年9月11日 18:16
>To: Liu Kimriver/刘金河 <kimriver.liu@siengine.com>
>Cc: jarkko.nikula@linux.intel.com; andriy.shevchenko@linux.intel.com; mika.westerberg@linux.intel.com; jsd@semihalf.com; linux-i2c@vger.kernel.org; linux-kernel@vger.kernel.org
>Subject: Re: [PATCH v9] i2c: designware: fix controller is holding SCL low while ENABLE bit is disabled

>Andy,

>On Wed, Sep 11, 2024 at 04:39:45PM GMT, Kimriver Liu wrote:
>> It was observed that issuing ABORT bit (IC_ENABLE[1]) will not
>> work when IC_ENABLE is already disabled.
>> 
>> Check if ENABLE bit (IC_ENABLE[0]) is disabled when the controller
>> is holding SCL low. If ENABLE bit is disabled, the software need
>> to enable it before trying to issue ABORT bit. otherwise,
>> the controller ignores any write to ABORT bit.
>> 
>> These kernel logs show up whenever an I2C transaction is
>> attempted after this failure.
>> i2c_designware e95e0000.i2c: timeout waiting for bus ready
>> i2c_designware e95e0000.i2c: timeout in disabling adapter
>> 
>> The patch can be fix the controller cannot be disabled while
>> SCL is held low in ENABLE bit is already disabled.
>> 
>> Fixes: 2409205acd3c ("i2c: designware: fix __i2c_dw_disable() in case master is holding SCL low")
>> Signed-off-by: Kimriver Liu <kimriver.liu@siengine.com>
>> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>

>if you're happe, I would take this in.

>Thanks Kimriver for following up on all the reviews, I really
>appreciate your responsivness.

 Thanks for the review!

 I have done the testing of the V9 patch on our product , it Verified successful when controller is holding SCL low.

------------------------------------------
Best Regards
Kimriver Liu

  reply	other threads:[~2024-09-11 10:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-11  8:39 [PATCH v9] i2c: designware: fix controller is holding SCL low while ENABLE bit is disabled Kimriver Liu
2024-09-11 10:16 ` Andi Shyti
2024-09-11 10:53   ` Liu Kimriver/刘金河 [this message]
2024-09-11 14:45 ` Andy Shevchenko
2024-09-11 14:52   ` Andy Shevchenko
2024-09-12  1:17     ` Liu Kimriver/刘金河

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=a6e3accdbf6446f4befb8865b0ced07f@siengine.com \
    --to=kimriver.liu@siengine.com \
    --cc=andi.shyti@kernel.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=jarkko.nikula@linux.intel.com \
    --cc=jsd@semihalf.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    /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).