[PATCH v2 4/5] rtc: mt6397: Add BBPU alarm status reset and shutdown handling

Shunxi Zhang (章顺喜) ot_shunxi.zhang at mediatek.com
Thu Nov 20 19:20:27 PST 2025


On Thu, 2025-11-20 at 14:40 +0100, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On 20/11/2025 13:18, ot_shunxi.zhang at mediatek.com wrote:
> > 
> >       rtc = devm_kzalloc(&pdev->dev, sizeof(struct mt6397_rtc),
> > GFP_KERNEL);
> > @@ -275,6 +294,8 @@ static int mtk_rtc_probe(struct platform_device
> > *pdev)
> >       if (IS_ERR(rtc->rtc_dev))
> >               return PTR_ERR(rtc->rtc_dev);
> > 
> > +     rtc->alarm_sta_supported = of_property_read_bool(np,
> > "mediatek,alarm-sta-supported");
> 
> You cannot add undocumented ABI. Read carefully Linux documentation.
> 
> Best regards,
> Krzysztof

Dear sir,
  Thanks for your comment, I will read & check linux documentation.
It will be revised in the next version.

Best Regards
Shunxi Zhang


More information about the Linux-mediatek mailing list