• Laurent Pinchart's avatar
    clocksource: sh_mtu2: Rename clock to "fck" in the non-legacy case · 6dc9693b
    Laurent Pinchart authored
    The sh_mtu2 driver gets the MTU2 functional clock using a connection ID
    of "mtu2_fck". While all SH SoCs create clock lookup entries with a NULL
    device ID and a "mtu2_fck" connection ID, the ARM SoCs use the device ID
    only with a NULL connection ID. This works on legacy platforms but will
    break on ARM with DT boot.
    
    Fix the situation by using a connection ID of "fck" in the non-legacy
    platform data case. Clock lookup entries will be renamed to use the
    device ID as well as the connection ID as platforms get moved to new
    platform data. The legacy code will eventually be dropped, leaving us
    with device ID based clock lookup, compatible with DT boot.
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
    Tested-by: default avatarWolfram Sang <wsa@sang-engineering.com>
    6dc9693b
sh_mtu2.c 14 KB