summaryrefslogtreecommitdiffstats
path: root/drivers/clk/sifive
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-09-29 21:55:21 +0200
committerStephen Boyd <sboyd@kernel.org>2022-10-17 23:06:07 +0200
commit2ff4ba9e37024735f5cefc5ea2a73fc66addfe0e (patch)
treea3b0f8df645da9efb09ac09c46c8d2e984a26ae4 /drivers/clk/sifive
parentLinux 6.1-rc1 (diff)
downloadlinux-2ff4ba9e37024735f5cefc5ea2a73fc66addfe0e.tar.xz
linux-2ff4ba9e37024735f5cefc5ea2a73fc66addfe0e.zip
clk: rs9: Fix I2C accessors
Add custom I2C accessors to this driver, since the regular I2C regmap ones do not generate the exact I2C transfers required by the chip. On I2C write, it is mandatory to send transfer length first, on read the chip returns the transfer length in first byte. Instead of always reading back 8 bytes, which is the default and also the size of the entire register file, set BCP register to 1 to read out 1 byte which is less wasteful. Fixes: 892e0ddea1aa ("clk: rs9: Add Renesas 9-series PCIe clock generator driver") Reported-by: Alexander Stein <alexander.stein@ew.tq-group.com> Signed-off-by: Marek Vasut <marex@denx.de> Link: https://lore.kernel.org/r/20220929195521.284497-1-marex@denx.de Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/sifive')
0 files changed, 0 insertions, 0 deletions