Commit 4dba406
qca_spi: Fix clock speed for multiple QCA7000
Storing the maximum clock speed in module parameter qcaspi_clkspeed
has the unintended side effect that the first probed instance
defines the value for all other instances. Fix this issue by storing
it in max_speed_hz of the relevant SPI device.
This fix keeps the priority of the speed parameter (module parameter,
device tree property, driver default). Btw this uses the opportunity
to get the rid of the unused member clkspeed.
Fixes: 291ab06 ("net: qualcomm: new Ethernet over SPI driver for QCA7000")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://patch.msgid.link/20241206184643.123399-2-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 356983f commit 4dba406
2 files changed
+10
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | 821 | | |
823 | 822 | | |
824 | 823 | | |
| |||
909 | 908 | | |
910 | 909 | | |
911 | 910 | | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
918 | 915 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
923 | 920 | | |
924 | 921 | | |
925 | 922 | | |
| |||
944 | 941 | | |
945 | 942 | | |
946 | 943 | | |
947 | | - | |
| 944 | + | |
948 | 945 | | |
949 | | - | |
| 946 | + | |
950 | 947 | | |
951 | 948 | | |
952 | 949 | | |
953 | 950 | | |
954 | | - | |
955 | 951 | | |
956 | 952 | | |
957 | 953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
0 commit comments