[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <18cba830-cd08-42f6-9c42-92edb7e442e8@amlogic.com>
Date: Wed, 4 Sep 2024 16:44:11 +0800
From: Xianwei Zhao <xianwei.zhao@...ogic.com>
To: Krzysztof Kozlowski <krzk@...nel.org>,
Yiting Deng <yiting.deng@...ogic.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: linux-amlogic@...ts.infradead.org, linux-rtc@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/3] rtc: support for the Amlogic on-chip RTC
Hi Krzysztof,
Thanks for your reply.
On 2024/9/3 22:04, Krzysztof Kozlowski wrote:
> [ EXTERNAL EMAIL ]
>
> On 03/09/2024 09:00, Xianwei Zhao via B4 Relay wrote:
>> From: Yiting Deng <yiting.deng@...ogic.com>
>>
>
> ...
>
>> + rtc->map = devm_regmap_init_mmio(&pdev->dev, base, &aml_rtc_regmap_config);
>> + if (IS_ERR(rtc->map)) {
>> + dev_err_probe(&pdev->dev, PTR_ERR(rtc->map), "regmap init failed\n");
>> + return PTR_ERR(rtc->map);
>
> Nothing improved. Read the comment. Use git grep to see how this is done
> if the comment is somehow unclear.
>
Got it, Merge two statements into one.
"return dev_err_probe();"
Will fix it.
> <form letter>
> This is a friendly reminder during the review process.
>
> It seems my or other reviewer's previous comments were not fully
> addressed. Maybe the feedback got lost between the quotes, maybe you
> just forgot to apply it. Please go back to the previous discussion and
> either implement all requested changes or keep discussing them.
>
"So the third driver? What is wrong with existing ones? And why this one
is named so differently?"
Are you saying these part were not fully addressed? If so, let me answer
it here.
Yes, this is the third driver.The RTC hardware of A4 SoC is different
from the previous one, so need add new RTC driver to support it.
A4 RTC hardware includes a timing function and an alarm function.
But the existing has only timing function, alarm function is using the
system clock to implement a virtual alarm.
The driver file name modfiy to rtc-amlogic-a4.c suggested by Alexandre
Belloni.
> Thank you.
> </form letter>
>
> Best regards,
> Krzysztof
>
Powered by blists - more mailing lists