firmware: ti_sci: extend clock identifiers from u8 to u32
authorTero Kristo <t-kristo@ti.com>
Tue, 28 May 2019 13:10:24 +0000 (16:10 +0300)
committerTero Kristo <t-kristo@ti.com>
Wed, 12 Jun 2019 11:45:00 +0000 (14:45 +0300)
commit81f4458c9c6998fcd37c427d16d76d4dba65d015
tree91cb8ff90a7308c5c1aac583c9725fe274ca9268
parent3f1f22d8009035a641a359a09239bcc6ffac7bb9
firmware: ti_sci: extend clock identifiers from u8 to u32

Future SoCs are going to have more than 255 device clocks in certain cases,
and thus the API must be extended to support this. The support is done in
backwards compatible extension, in which the new u32 clock identifier
fields are only used if the existing u8 size clock identifier is set as
255. In all the other cases, the existing u8 clock identifier is used. As
the size of the messages sent / received is not verified for existing
devices / old firmware, increasing the size of the messages from the end
is also fine. Due to this reason, depending on ABI version isn't necessary
either.

Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h
include/linux/soc/ti/ti_sci_protocol.h