projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b929c0
)
firmware: raspberrypi: Fix type assignment
author
Maxime Ripard
<maxime@cerno.tech>
Mon, 2 Jan 2023 11:52:55 +0000
(12:52 +0100)
committer
Florian Fainelli
<f.fainelli@gmail.com>
Tue, 10 Jan 2023 21:44:04 +0000
(13:44 -0800)
We silently cast an unsigned int into a __le32 which makes sparse
complain. Moreover, we never actually convert endianness between the
CPU's and the expected little-endian value. Fix both at once by calling
cpu_to_le32().
Fixes:
40c31955e4e9
("firmware: raspberrypi: Provide a helper to query a clock max rate")
Reported-by: kernel test robot <lkp@intel.com>
Link:
https://lore.kernel.org/r/20221116091712.1309651-3-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link:
https://lore.kernel.org/r/20230102115255.17802-1-maxime@cerno.tech
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
include/soc/bcm2835/raspberrypi-firmware.h
patch
|
blob
|
history
diff --git
a/include/soc/bcm2835/raspberrypi-firmware.h
b/include/soc/bcm2835/raspberrypi-firmware.h
index
ab95559
..
73cac8d
100644
(file)
--- a/
include/soc/bcm2835/raspberrypi-firmware.h
+++ b/
include/soc/bcm2835/raspberrypi-firmware.h
@@
-170,7
+170,7
@@
struct rpi_firmware_clk_rate_request {
#define RPI_FIRMWARE_CLK_RATE_REQUEST(_id) \
{ \
- .id =
_id,
\
+ .id =
cpu_to_le32(_id),
\
}
#if IS_ENABLED(CONFIG_RASPBERRYPI_FIRMWARE)