Message ID | 156630456771.17444.15687151782258703992.sendpatchset@octo (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Geert Uytterhoeven |
Headers | show |
Series | renesas, cmt: DT Binding Documentation and Minor Driver Updates V2 | expand |
On Tue, Aug 20, 2019 at 2:34 PM Magnus Damm <magnus.damm@gmail.com> wrote: > From: Magnus Damm <damm+renesas@opensource.se> > > Update the CMT driver to mark "renesas,cmt-48" as deprecated. > > Instead of documenting a theoretical hardware device based on current software > support level, define DT bindings top-down based on available data sheet > information and make use of part numbers in the DT compat string. > > In case of the only in-tree users r8a7740 and sh73a0 the compat strings > "renesas,r8a7740-cmt1" and "renesas,sh73a0-cmt1" may be used instead. > > Signed-off-by: Magnus Damm <damm+renesas@opensource.se> > Reviewed-by: Simon Horman <horms+renesas@verge.net.au> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
--- 0011/drivers/clocksource/sh_cmt.c +++ work/drivers/clocksource/sh_cmt.c 2019-07-18 19:31:01.917491800 +0900 @@ -921,7 +921,11 @@ static const struct platform_device_id s MODULE_DEVICE_TABLE(platform, sh_cmt_id_table); static const struct of_device_id sh_cmt_of_table[] __maybe_unused = { - { .compatible = "renesas,cmt-48", .data = &sh_cmt_info[SH_CMT_48BIT] }, + { + /* deprecated, preserved for backward compatibility */ + .compatible = "renesas,cmt-48", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, { /* deprecated, preserved for backward compatibility */ .compatible = "renesas,cmt-48-gen2",