Skip to content

Change snvs rtc and poweroff to use syscon add pwrkey driver

Russell King - ARM Linux linux-arm-kernel linux-devicetree linux-input linux-pm linux-rtc 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/20 of 7 patches 0 repliesNew
  2. v2 posting 1/20 of 7 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] Change snvs rtc and poweroff to use syscon add pwrkey driver
Quoted 12 lines · Zhi Li
Quoted 9 lines · Russell King - ARM Linux

Looking at the RTC code, it would be pretty trivial to do.

Rather than passing around struct regmap, pass around the private data structure.

Rename the regmap_* function calls to be private accessors. Implement a set of new accessors - if the private data has the regmap, use the regmap API. Otherwise, use the old method, and print a warning that an old DT is being used.

Quoted 5 lines

This method work. But code will become ugly and complex. I seach whole dts tree.
Only imx6 use this driver.

Does it really valuable to keep compatiblity with cost of complex driver code?

Let me put this a different way.

Would you be upset if you installed a new kernel, rebooted and found that the system then fscked your filesystem, stamping a date of 1 Jan 1970 on it. Then you use a later dtb, and you have to go through another fsck of your filesystem because it's apparently been more than "31 days" or so since it was last fscked, and all this caused by the RTC vanishing because we couldn't be bothered with backward compatibility?

There are real products out there which use iMX6 today. In production, being sold.

Do not break existing DTBs unless there really is no other choice.

And I don't think it makes the code ugly, though it does make it _slightly_ more complex. That's a price worth paying for keeping stuff working.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.