All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacky Huang <ychuang570808@gmail.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: sashiko-reviews@lists.linux.dev, Zi-Yu Chen <zychennvt@gmail.com>,
	conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v3] arm64: dts: nuvoton: ma35d1: add CAN nodes
Date: Sat, 12 Sep 2026 19:02:25 +0800	[thread overview]
Message-ID: <bfc92b12-5067-46c6-b1f9-0dbd42fc9470@gmail.com> (raw)
In-Reply-To: <20260911-frisky-imperial-elephant-3336e4-mkl@pengutronix.de>



Marc Kleine-Budde 於 2026/9/11 下午 01:56 寫道:
> On 11.09.2026 10:15:21, Jacky Huang wrote:
>>> [ ... ]
>>>> @@ -244,6 +244,58 @@ gpion: gpio@340 {
>>>>                         };
>>>>                 };
>>>>
>>>> +             can0: can@403c0000 {
>>>> +                     compatible = "bosch,m_can";
>>>> +                     reg = <0x0 0x403c0000 0x0 0x200>, <0x0 0x403c0200 0x0 0x2000>;
>>>> +                     reg-names = "m_can", "message_ram";
>>>> +                     interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
>>>> +                                  <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
>>>> +                     interrupt-names = "int0", "int1";
>>>> +                     clocks = <&clk HCLK3>, <&clk CAN0_GATE>;
>>>> +                     clock-names = "hclk", "cclk";
>>>> +                     bosch,mram-cfg = <0x0 4 4 32 32 32 8 8>;
>>>> +                     status = "disabled";
>>>> +             };
>>> [Severity: Medium]
>>> Should this node include the hardware resets property (e.g.,
>>> resets = <&sys MA35D1_RESET_CANFD0>;)?
>>>
>>> Without the hardware reset line, the bosch,m_can driver cannot perform a
>>> hardware reset of the CAN controllers during probe or interface toggles.
>>> It must rely solely on software initialization, which can fail to fully
>>> recover the controller if the bootloader or a prior crashed state left
>>> the hardware in an unpredictable state.
>>>
>>> This omission pattern is identically repeated across the newly added can1,
>>> can2, and can3 nodes below.
>> The reset property is optional for the MA35D1 CAN nodes.
> yes, but....
>
>> The bosch,m_can binding does not require a reset property, and the
>> m_can driver obtains the reset control through
>> devm_reset_control_get_optional_shared().
>>
>> The MA35D1 CAN controllers also operate correctly without explicit
>> CAN reset properties in the existing platform DTS. Therefore, no
>> change is required for this patch.
> ...we've observed that the SW reset doesn't clear the CAN state and
> error counters, see commit 9271d0ea07c2 ("can: m_can: add support for
> optional reset") for details. As your SoC has a reset line connected to
> the M_CAN IP core, please add it to the dtsi.
>
> regards,
> Marc
>

Hi Marc,

Thanks for pointing this out. I agree that the hardware reset properties 
should
be described for the MA35D1 CAN controllers.

Zi-Yu, please add the corresponding CANFD reset properties to can0 
through can3 in v4.

I will re-review the updated version.

Best regards,
Jacky Huang


  reply	other threads:[~2026-09-12 11:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-08  1:45 [PATCH v3] arm64: dts: nuvoton: ma35d1: add CAN nodes Zi-Yu Chen
2026-09-08  1:54 ` sashiko-bot
2026-09-11  2:15   ` Jacky Huang
2026-09-11  5:56     ` Marc Kleine-Budde
2026-09-12 11:02       ` Jacky Huang [this message]
2026-09-11  2:25 ` Jacky Huang

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=bfc92b12-5067-46c6-b1f9-0dbd42fc9470@gmail.com \
    --to=ychuang570808@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zychennvt@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.