public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Liu Kimriver/刘金河" <kimriver.liu@siengine.com>
To: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Cc: "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>,
	"andi.shyti@kernel.org" <andi.shyti@kernel.org>,
	"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v8] i2c: designware: fix master is holding SCL low while ENABLE bit is disabled
Date: Tue, 10 Sep 2024 09:53:20 +0000	[thread overview]
Message-ID: <5d47dd133343473b9108c22fe5ff9a44@siengine.com> (raw)
In-Reply-To: <3ededf4f-7fba-4b15-ada8-a7172bd56caa@linux.intel.com>

Hi Jarkko 

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

>On 9/10/24 9:13 AM, Kimriver Liu wrote:
>> It was observed 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 master is 
>> holding SCL low. If ENABLE bit is disabled, the software need enable 
>> it before trying to issue ABORT bit. otherwise, the controller ignores 
>> any write to ABORT bit.
>> 
>> Signed-off-by: Kimriver Liu <kimriver.liu@siengine.com>
>> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>> 
>> ---
>> V7->V8:
>> 	1.calculate this delay based on the actual speed in use
>> 	  fsleep(DIV_ROUND_CLOSEST_ULL(10 * MICRO, t->bus_freq_hz))
>> 	2. add Reviewed-by: Mika Westerberg<mika.westerberg@linux.intel.com>
>> V6->V7:
>> 	1. add Subject versioning [PATCH v7]
>> 	2. change fsleep(25) to usleep_range(25, 250)
>> 	3. Add macro definition DW_iC_ENABLE_ENABLE to fix compile errors
>> 	  | Reported-by: kernel test robot <lkp@intel.com>
>> 	  | Closes:https://lore.kernel.org/oe-kbuild-all/202409082011.9JF6aYsk-lkp@intel.com/
>> 	4. base: 
>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commi
>> t/?h=master
>> V5->V6: restore i2c_dw_is_master_idling() function checking
>> V4->V5: delete master idling checking
>> V3->V4:
>> 	1. update commit messages and add patch version and changelog
>> 	2. move print the error message in i2c_dw_xfer
>> V2->V3: change (!enable) to (!(enable & DW_IC_ENABLE_ENABLE))
>> V1->V2: used standard words in function names and addressed review 
>> V1->comments
>> 
>> link to V1:
>> https://lore.kernel.org/lkml/20240904064224.2394-1-kimriver.liu@siengi
>> ne.com/
>> ---
>>   drivers/i2c/busses/i2c-designware-common.c | 13 +++++++++++++
>>   drivers/i2c/busses/i2c-designware-core.h   |  1 +
>>   drivers/i2c/busses/i2c-designware-master.c | 22 ++++++++++++++++++++++
>>   3 files changed, 36 insertions(+)
>> 
>Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>

Thanks for the Acked!

I will update a new version V9 based on Andy's suggestions.

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

  reply	other threads:[~2024-09-10  9:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-10  6:13 [PATCH v8] i2c: designware: fix master is holding SCL low while ENABLE bit is disabled Kimriver Liu
2024-09-10  9:02 ` Jarkko Nikula
2024-09-10  9:53   ` Liu Kimriver/刘金河 [this message]
2024-09-10  9:02 ` Andy Shevchenko
2024-09-10  9:38   ` Liu Kimriver/刘金河
2024-09-10 10:45     ` Andy Shevchenko
2024-09-10 11:43       ` Liu Kimriver/刘金河
2024-09-10 11:59         ` Andy Shevchenko
2024-09-11  1:37           ` Liu Kimriver/刘金河
2024-09-11 14:42             ` Andy Shevchenko
2024-09-10 11:20     ` Jarkko Nikula
2024-09-10 11:54       ` 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=5d47dd133343473b9108c22fe5ff9a44@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