[PATCH v2 3/9] clk: rockchip: protect register macros against multipart values
From: Stephen Boyd <hidden>
Date: 2015-07-02 22:51:43
Also in:
linux-clk, linux-rockchip
From: Stephen Boyd <hidden>
Date: 2015-07-02 22:51:43
Also in:
linux-clk, linux-rockchip
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@sntech.de> ---
Applied to clk-rk3368 -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project