Re: [PATCH] Microchip MCP795xx RTC driver patch

From: Krzysztof Kozlowski
Date: Fri Oct 28 2022 - 19:49:16 EST


On 16/10/2022 12:29, tollsimy wrote:
> RTC Microchip mcp795 patch for 5.19-rc5
>
> Here is the mcp795 patch for the 5.19-rc5 merge window.
> The main modification are the following:
> - fixed wrong driver naming: RTC is a Microchip
> mcp795 and not Maxim mcp795
> - added date/time write sequences: added date/time
> write sequences accordingly to official silicon
> errata document to fix silicon bugs.
> - added support to date/time permanent storage:
> the driver was missing some register bits in order
> to enable the storage of date/time whenever the
> device looses main power.
> - added a check after starting oscillator in order
> to be sure that it is properly working as specified
> in the datasheet
> - renamed OSCON bit to OSCRUN as in the datasheet
> - add debug messages when setting and reading the
> alarm
> - removed wrong offset when retrieving the current
> year from the device
>
> The patch has been successfully tested in the latest
> linux-next releases, and the original problems that I found have
> all been resolved.

Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC. It might happen, that command when run on an older
kernel, gives you outdated entries. Therefore please be sure you base
your patches on recent Linux kernel.

You missed several people so it seems you did not follow the process.

>
> Signed-off-by: tollsimy <simonetollardo@xxxxxxxxx>

Full name is needed.

>
> ---
> .../devicetree/bindings/rtc/maxim,mcp795.txt | 11 -
> .../bindings/rtc/microchip,mcp795.txt | 11 +

Bindings are always separate patch.

> drivers/rtc/rtc-mcp795.c | 359 ++++++++++++++----
> 3 files changed, 296 insertions(+), 85 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/rtc/maxim,mcp795.txt
> create mode 100644 Documentation/devicetree/bindings/rtc/microchip,mcp795.txt
>
> diff --git a/Documentation/devicetree/bindings/rtc/maxim,mcp795.txt b/Documentation/devicetree/bindings/rtc/maxim,mcp795.txt
> deleted file mode 100644
> index a59fdd8c236d..000000000000
> --- a/Documentation/devicetree/bindings/rtc/maxim,mcp795.txt
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -* Maxim MCP795 SPI Serial Real-Time Clock
> -
> -Required properties:
> -- compatible: Should contain "maxim,mcp795".
> -- reg: SPI address for chip
> -
> -Example:
> - mcp795: rtc@0 {
> - compatible = "maxim,mcp795";
> - reg = <0>;
> - };
> diff --git a/Documentation/devicetree/bindings/rtc/microchip,mcp795.txt b/Documentation/devicetree/bindings/rtc/microchip,mcp795.txt
> new file mode 100644
> index 000000000000..854364c3a173
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/microchip,mcp795.txt
> @@ -0,0 +1,11 @@
> +* Microchip MCP795 SPI Serial Real-Time Clock
> +
> +Required properties:
> +- compatible: Should contain "microchip,mcp795".
> +- reg: SPI address for chip
> +
> +Example:
> + mcp795: rtc@0 {
> + compatible = "microchip,mcp795";
> + reg = <0>;
> + };

This part is not erally explained/justified.

Best regards,
Krzysztof