Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: zychen <zychennvt@gmail.com>
To: Philipp Zabel <p.zabel@pengutronix.de>,
	Andi Shyti <andi.shyti@kernel.org>,
	linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Cc: Jacky Huang <ychuang3@nuvoton.com>,
	Shan-Chun Hung <schung@nuvoton.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Andrew Jeffery <andrew@codeconstruct.com.au>
Subject: Re: [PATCH RESEND v12 2/3] i2c: ma35d1: Add Nuvoton MA35D1 I2C driver support
Date: Wed, 2 Dec 2026 11:05:42 +0800	[thread overview]
Message-ID: <543b7682-b18a-4fe3-be3a-53639c95e43e@gmail.com> (raw)
In-Reply-To: <bfa45b377cccdff79c4d739319c756dcf4b41a31.camel@pengutronix.de>



Philipp Zabel 於 2026/12/1 下午 06:25 寫道:
> On Mo, 2026-11-30 at 11:23 +0800, Zi-Yu Chen wrote:
>> Add I2C support for Nuvoton MA35D1 SoC.
>> The controller supports standard, fast and fast-plus modes,
>> and provides controller/target functionality.
>>
>> Signed-off-by: Zi-Yu Chen <zychennvt@gmail.com>
>> ---
>>  drivers/i2c/busses/Kconfig      |  13 +
>>  drivers/i2c/busses/Makefile     |   1 +
>>  drivers/i2c/busses/i2c-ma35d1.c | 800 ++++++++++++++++++++++++++++++++
>>  3 files changed, 814 insertions(+)
>>  create mode 100644 drivers/i2c/busses/i2c-ma35d1.c
>>
> [...]
>> diff --git a/drivers/i2c/busses/i2c-ma35d1.c b/drivers/i2c/busses/i2c-ma35d1.c
>> new file mode 100644
>> index 000000000000..29bed9eb28f6
>> --- /dev/null
>> +++ b/drivers/i2c/busses/i2c-ma35d1.c
>> @@ -0,0 +1,800 @@
> [...]
>> +static int ma35d1_i2c_probe(struct platform_device *pdev)
>> +{
> [...]
>> +	i2c->rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
>> +	if (IS_ERR(i2c->rst))
>> +		return dev_err_probe(dev, PTR_ERR(i2c->rst),
>> +				     "failed to get reset control\n");
>> +
>> +	ret = reset_control_deassert(i2c->rst);
>> +	if (ret)
>> +		return dev_err_probe(dev, ret, "failed to deassert reset line\n");
> 
> No reset_control_assert() probe errors after this, or in remove().
> Is this on purpose?
> 
Not really. I can switch to devm_reset_control_get_exclusive_deasserted().

Best regards,
Zi-Yu

> regards
> Philipp



  reply	other threads:[~2026-12-02  3:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  3:23 [PATCH RESEND v12 0/3] i2c: ma35d1: Add support for MA35D1 I2C controller Zi-Yu Chen
2026-11-30  3:23 ` [PATCH RESEND v12 1/3] dt-bindings: i2c: nuvoton,ma35d1-i2c: Add " Zi-Yu Chen
2026-11-30  3:23 ` [PATCH RESEND v12 2/3] i2c: ma35d1: Add Nuvoton MA35D1 I2C driver support Zi-Yu Chen
2026-12-01 10:25   ` Philipp Zabel
2026-12-02  3:05     ` zychen [this message]
2026-11-30  3:23 ` [PATCH RESEND v12 3/3] arm64: dts: nuvoton: Add I2C nodes for MA35D1 SoC Zi-Yu Chen

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=543b7682-b18a-4fe3-be3a-53639c95e43e@gmail.com \
    --to=zychennvt@gmail.com \
    --cc=andi.shyti@kernel.org \
    --cc=andrew@codeconstruct.com.au \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=schung@nuvoton.com \
    --cc=ychuang3@nuvoton.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