mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "yubowen (H)" <yubowen8@huawei.com>
To: Andi Shyti <andi.shyti@kernel.org>
Cc: <linuxarm@huawei.com>, <liudingyuan@h-partners.com>,
	<linux-i2c@vger.kernel.org>, <acpi@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <rafael@kernel.org>,
	<lenb@kernel.org>, <zhanjie9@hisilicon.com>,
	<prime.zeng@hisilicon.com>, <wanghuiqiang@huawei.com>,
	<xuwei5@huawei.com>, <ouyiyong1@huawei.com>
Subject: Re: [PATCH v5 2/2] i2c: hisi: Add I2C bus recovery support
Date: Fri, 30 Oct 2026 10:39:36 +0800	[thread overview]
Message-ID: <810c504e-8950-46d3-846b-bacef5ba92d2@huawei.com> (raw)
In-Reply-To: <auCAeZHhQVMtPVlZ@zenone.zhora.eu>


在 2026/10/27 18:51, Andi Shyti 写道:
> Hi Bowen,
>
> the patch looks good and it can be taken without 1/2.
>
> Just few nitpicks,
>
> ...
>
>> +static int hisi_i2c_get_bus_recovery_res(struct hisi_i2c_controller *ctlr,
>> +					 struct platform_device *pdev)
>> +{
>> +	struct resource *res0;
> /res0/res/
>
>> +
>> +	res0 = platform_get_resource(pdev, IORESOURCE_MEM, 1);
>> +
>> +	if (!res0 || resource_size(res0) != HISI_I2C_RECOVERY_REG_SIZE)
>> +		return -ENODEV;
>> +
>> +	ctlr->sctrl_addr = devm_ioremap_resource(&pdev->dev, res0);
>> +	if (IS_ERR(ctlr->sctrl_addr)) {
>> +		ctlr->sctrl_addr = NULL;
>> +		return -ENOMEM;
> return PTR_ERR(ctlr->sctrl_addr);
>
>> +	}
>> +
>> +	return 0;
>> +}
> ...
>
>>   static int hisi_i2c_start_xfer(struct hisi_i2c_controller *ctlr)
>>   {
>>   	struct i2c_msg *msg = ctlr->msgs;
>> @@ -496,6 +634,10 @@ static int hisi_i2c_probe(struct platform_device *pdev)
>>   
>>   	hisi_i2c_configure_bus(ctlr);
>>   
>> +	ret = hisi_i2c_recovery_init(ctlr);
>> +	if (ret)
>> +		dev_info(ctlr->dev, "I2C bus recovery not available\n");
> I would use here dev_dbg(...);
>
> If it's OK with you, I can change the ones above and apply,
> otherwise, please send a v6.
>
> Andi
>
>> +
>>   	adapter = &ctlr->adapter;
>>   	snprintf(adapter->name, sizeof(adapter->name),
>>   		 "HiSilicon I2C Controller %s", dev_name(dev));
>> -- 
>> 2.33.0
>>
Thank you for the feedback, I be back with V6.

Best Regards,
Bowen



      reply	other threads:[~2026-10-30  2:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 12:13 [PATCH v5 0/2] HiSilicon " Bowen Yu
2026-09-29 12:13 ` [PATCH v5 1/2] ACPI: Add stub for acpi_has_method() for !CONFIG_ACPI Bowen Yu
2026-09-29 12:28   ` Rafael J. Wysocki (Intel)
2026-09-29 12:13 ` [PATCH v5 2/2] i2c: hisi: Add I2C bus recovery support Bowen Yu
2026-10-13 13:44   ` Jie Zhan
2026-10-27 10:51   ` Andi Shyti
2026-10-30  2:39     ` yubowen (H) [this message]

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=810c504e-8950-46d3-846b-bacef5ba92d2@huawei.com \
    --to=yubowen8@huawei.com \
    --cc=acpi@vger.kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=lenb@kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=liudingyuan@h-partners.com \
    --cc=ouyiyong1@huawei.com \
    --cc=prime.zeng@hisilicon.com \
    --cc=rafael@kernel.org \
    --cc=wanghuiqiang@huawei.com \
    --cc=xuwei5@huawei.com \
    --cc=zhanjie9@hisilicon.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

all inboxes | Powered by JetHome®