Skip to content

Commit 29d861b

Browse files
Marek Vasutbebarino
authored andcommitted
clk: rs9: Fix DIF OEn bit placement on 9FGV0241
On 9FGV0241, the DIF OE0 is BIT(1) and DIF OE1 is BIT(2), on the other chips like 9FGV0441 and 9FGV0841 DIF OE0 is BIT(0) and so on. Increment the index in BIT() macro instead of the result of BIT() macro to shift the bit correctly on 9FGV0241. Fixes: 603df19 ("clk: rs9: Support device specific dif bit calculation") Signed-off-by: Marek Vasut <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Alexander Stein <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 2fbabea commit 29d861b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-renesas-pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static u8 rs9_calc_dif(const struct rs9_driver_data *rs9, int idx)
163163
enum rs9_model model = rs9->chip_info->model;
164164

165165
if (model == RENESAS_9FGV0241)
166-
return BIT(idx) + 1;
166+
return BIT(idx + 1);
167167
else if (model == RENESAS_9FGV0441)
168168
return BIT(idx);
169169

0 commit comments

Comments
 (0)