[PATCH v2 3/9] clk: rockchip: protect register macros against multipart values

Stephen Boyd sboyd at codeaurora.org
Thu Jul 2 15:51:43 PDT 2015

On 06/18, Heiko Stuebner wrote:
> The macros calculate the correct offset from the id in the parameter.
> If this parameter does not consist of a single number, the calculation
> will return wrong registers in the best case or create unaligned accesses
> in the worst case. So protect the calculations against such values.
> Signed-off-by: Heiko Stuebner <heiko at sntech.de>
> ---

Applied to clk-rk3368

Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

More information about the Linux-rockchip mailing list