Qiu-ji Chen
fe0ebeafc3
staging: greybus: uart: Fix atomicity violation in get_serial_info()
...
Our static checker found a bug where set_serial_info() uses a mutex, but
get_serial_info() does not. Fortunately, the impact of this is relatively
minor. It doesn't cause a crash or any other serious issues. However, if a
race condition occurs between set_serial_info() and get_serial_info(),
there is a chance that the data returned by get_serial_info() will be
meaningless.
Signed-off-by: Qiu-ji Chen <chenqiuji666@gmail.com >
Fixes: 0aad5ad563 ("greybus/uart: switch to ->[sg]et_serial()")
Reviewed-by: Johan Hovold <johan+linaro@kernel.org >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Reviewed-by: Alex Elder <elder@riscstar.com >
Link: https://lore.kernel.org/r/20241107113337.402042-1-chenqiuji666@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-10 08:02:37 +01:00
Philipp Hortmann
c4838879bd
staging: rtl8723bs: Remove unused function Efuse_GetCurrentSize
...
Remove unused function Efuse_GetCurrentSize to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/d1b8cb38670b99a75b0e916adde389ed13c15935.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:20 +01:00
Philipp Hortmann
5054276e07
staging: rtl8723bs: Remove unused function efuse_WordEnableDataRead
...
Remove unused function efuse_WordEnableDataRead to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/34ae6c921aa8a42407def96360db5b9a7f3dc5b7.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:20 +01:00
Philipp Hortmann
8a39380d4a
staging: rtl8723bs: Remove function hal_EfusePgPacketWrite1ByteHeader
...
Remove unused function hal_EfusePgPacketWrite1ByteHeader to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/80b5cb563f5294b045b24266c5a99d1b4759c2b5.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:20 +01:00
Philipp Hortmann
dacebe04c1
staging: rtl8723bs: Remove function hal_EfusePgPacketWrite2ByteHeader
...
Remove unused function hal_EfusePgPacketWrite2ByteHeader to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/58b682a5ecc0cce08dfdbfe20690eea47efebf18.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:20 +01:00
Philipp Hortmann
561feaad75
staging: rtl8723bs: Remove unused function hal_EfusePgCheckAvailableAddr
...
Remove unused function hal_EfusePgCheckAvailableAddr to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/414a3575073d4f78bd1132ccee6851d93cb59284.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:20 +01:00
Philipp Hortmann
a36a627c85
staging: rtl8723bs: Remove unused function hal_EfuseConstructPGPkt
...
Remove unused function hal_EfuseConstructPGPkt to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/8625bceb13e5a319a1d0752bde79888fc8622ca0.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
8dceb8893c
staging: rtl8723bs: Remove unused function hal_EfusePartialWriteCheck
...
Remove unused function hal_EfusePartialWriteCheck to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/12274cb129683493e7406cdc19402d05d5f2ed07.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
442e4a4aca
staging: rtl8723bs: Remove unused function hal_EfusePgPacketWriteHeader
...
Remove unused function hal_EfusePgPacketWriteHeader to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/aade93afb9f2c6babbcc9c55bb35341cb8c9ff3f.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
2b8b60d711
staging: rtl8723bs: Remove unused function hal_EfusePgPacketWriteData
...
Remove unused function hal_EfusePgPacketWriteData to shorten code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/ec6f2c62ce7a4a742360b81495afbc0755a5a703.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
605685a5a8
staging: rtl8723bs: Remove unused function Hal_EfusePgPacketWrite_BT
...
Remove unused function pointer Efuse_PgPacketWrite_BT and unused function
Hal_EfusePgPacketWrite_BT.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/d7f6a44ef5e2e9b17d3cc14cd346aff8220a9373.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
6f569ef127
staging: rtl8723bs: Remove unused function Hal_EfusePgPacketWrite
...
Remove unused function pointer Efuse_PgPacketWrite and unused function
Hal_EfusePgPacketWrite.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/e2d4cfd440651ed08952afccbb3e927c26927c77.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
ee65788ce9
staging: rtl8723bs: Remove unused function Efuse_PgPacketWrite
...
Remove unused function Efuse_PgPacketWrite.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/0ef7eee047401f62256970eb3186887202ffe851.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
790d384afa
staging: rtl8723bs: Remove unused function Hal_EfusePgPacketRead
...
Remove unused function pointer Efuse_PgPacketRead and unused function
Hal_EfusePgPacketRead.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/920a7fdca106fc21e845f9ceba3f38bcfa9fa547.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
0452ce8e2c
staging: rtl8723bs: Remove unused function Efuse_PgPacketRead
...
Remove unused function Efuse_PgPacketRead.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/83a819b953cca910c6236c1185d256abd21f2602.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:19 +01:00
Philipp Hortmann
0e3565c9ee
staging: rtl8723bs: Remove function pointer EfuseGetCurrentSize
...
Remove function pointer EfuseGetCurrentSize and use
Hal_EfuseGetCurrentSize directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/58a991eeda12ccb69fe8b81ef1bb2fe3c5aa364b.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:18 +01:00
Philipp Hortmann
fa152eefb4
staging: rtl8723bs: Remove function pointer EFUSEGetEfuseDefinition
...
Remove function pointer EFUSEGetEfuseDefinition and use
Hal_GetEfuseDefinition directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/a203a6b2558ea0af5811d8c5841b10b7bbf2e9ff.1730916582.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:30:18 +01:00
Philipp Hortmann
4affb575c4
staging: rtl8723bs: Remove function pointer ReadEFuse
...
Remove function pointer ReadEFuse and use Hal_ReadEFuse directly to
increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/92e249af89320d37a211397da7ccf82878359c60.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:51 +01:00
Philipp Hortmann
cd05890a5b
staging: rtl8723bs: Remove function pointer EfusePowerSwitch
...
Remove function pointer EfusePowerSwitch and use Hal_EfusePowerSwitch
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/0ab31bf7b4562104289d6965eb081aa47e1c3998.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:51 +01:00
Philipp Hortmann
d2730bb531
staging: rtl8723bs: Remove function pointer write_rfreg
...
Remove function pointer write_rfreg and use PHY_SetRFReg_8723B directly
to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/8034bd15f264cf3857f1e5b72e3b4c21682e2e9a.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:51 +01:00
Philipp Hortmann
e2b1bf0412
staging: rtl8723bs: Remove function pointer read_rfreg
...
Remove function pointer read_rfreg and use PHY_QueryRFReg_8723B directly
to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/bfe77cf38f459ec2f5c185452c274359a3656e77.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:51 +01:00
Philipp Hortmann
414eeafeeb
staging: rtl8723bs: Remove function pointer write_bbreg
...
Remove function pointer write_bbreg and use PHY_SetBBReg_8723B directly
to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/0405fe50c32cfafc95ccf9ceabaa05e14ce653be.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:51 +01:00
Philipp Hortmann
35083292a4
staging: rtl8723bs: Remove function pointer read_bbreg
...
Remove function pointer read_bbreg and use PHY_QueryBBReg_8723B directly
to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/c80ba5221c2b4be85e65246b30cafc111235cf3f.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
74ee958fef
staging: rtl8723bs: Remove function pointer cancel_thread
...
Remove function pointer cancel_thread and use rtl8723b_stop_thread
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/e4fdff174a8ddc6cd62232e0aac8e23f4f34b1b9.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
b3c7d9d211
staging: rtl8723bs: Remove function pointer run_thread
...
Remove function pointer run_thread and use rtl8723b_start_thread
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/aee978f7180d728517af457e525549c19e3618c8.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
2ca4b94bf8
staging: rtl8723bs: Remove function pointer Add_RateATid
...
Remove function pointer Add_RateATid and use rtl8723b_Add_RateATid
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/c7d1c02e570b7779f059bad6f3a45177176fe9e5.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
4e1ddd1ff1
staging: rtl8723bs: Remove function pointer SetBeaconRelatedRegistersHandler
...
Remove function pointer SetBeaconRelatedRegistersHandler and use
rtl8723b_SetBeaconRelatedRegisters directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/4c5eb3b6e6ad0015c97d89df637253318c18b520.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
2ca601a795
staging: rtl8723bs: Remove function pointer hal_dm_watchdog_in_lps
...
Remove function pointer hal_dm_watchdog_in_lps and use
rtl8723b_HalDmWatchDog_in_LPS directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/313978b8c0f331200c1a8dc3382b01088930c0e8.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
d8e9bf2a3a
staging: rtl8723bs: Remove function pointer hal_dm_watchdog
...
Remove function pointer hal_dm_watchdog and use rtl8723b_HalDmWatchDog
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/6e1b09e7d7184285fc747be7d7bd636bd1690d60.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
706fa5fa8c
staging: rtl8723bs: Remove function pointer set_tx_power_level_handler
...
Remove function pointer set_tx_power_level_handler as it is not in use.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/e120c858d268eaae822ca0b582e453af06ef0891.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:50 +01:00
Philipp Hortmann
31553e08b9
staging: rtl8723bs: Remove function pointer set_chnl_bw_handler
...
Remove function pointer set_chnl_bw_handler and use
PHY_SetSwChnlBWMode8723B directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/fb4da3a1f3b3076641d7173a6b512abfbf60e7c5.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:49 +01:00
Philipp Hortmann
30de950440
staging: rtl8723bs: Remove function pointer set_channel_handler
...
Remove function pointer set_channel_handler and use PHY_SwChnl8723B
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/dbaabf4706ab222b5e43d37b405e9d374ed5f49a.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:49 +01:00
Philipp Hortmann
6ec895d2f3
staging: rtl8723bs: Remove function pointer UpdateRAMaskHandler
...
Remove function pointer UpdateRAMaskHandler and use UpdateHalRAMask8723B
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/6e11b767faf44c2e95a05f3e1326d9cc382dcebd.1730749680.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:29:49 +01:00
Dave Penkler
7c8a7d2f88
staging: gpib: Correct check for max secondary address
...
GPIB secondary addresses can be between 0 and 31 inclusive
unlike primary addresses where address 31 is not a valid device
address. When 31 is used as a primary talk address it
forms the UNT (Untalk) command and when used as a listener address it
forms the UNL (Unlisten) commmand.
The library was incorrectly not allowing a secondary address
with a value of 31 to be used.
Fixes: 9dde4559e9 ("staging: gpib: Add GPIB common core driver")
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-13-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:35 +01:00
Dave Penkler
3c2ae0cbaf
staging: gpib: Re-order the lookup tables
...
Re-order the tables so that the bcm27xx table is used first
as these devices are more popular and numerous than the older ones.
This is slightly more efficient for the later pi3 and subsequent models
but should not be noticable in practice for all users.
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-12-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:35 +01:00
Dave Penkler
8e93812275
staging: gpib: Remove GPIO14 and GPIO15 lines in lookup tables
...
GPIO14 and GPIO15 are not used in the current pin maps
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-11-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:35 +01:00
Dave Penkler
c05a2297c0
staging: gpib: Remove unneeded lookup table
...
Remove bcm2837 table as the only difference is GPIO14 and GPIO15
which are not used with the current pin maps.
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-10-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
0f95c18137
staging: gpib: Fix Kconfig
...
The NI_PCI_ISA driver also supports PCI and PCMCIA
Correct typo COMPIlE_TEST
Fixes: 2c9f5d8c6e ("staging: gpib: add bus specific Kconfig dependencies")
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-9-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
45f4801396
staging: gpib: Use dev_xxx for messaging
...
Change pr_xxx to dev_xxx
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-8-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
93b17a5982
staging: gpib: Add comment for mutex define
...
Handle checkpatch CHECK message
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-7-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
7fa4e5bc10
staging: gpib: Fix MODULES_DESCRIPTION
...
Use plural for adapters
Fixes: ad59cf382c ("staging: gpib: add module descriptions")
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-6-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
fbae7090f3
staging: gpib: Update messaging and usb_device refs in agilent_usb
...
Replace GPIB_DPRINTK with dev_dbg
Replace pr_xxx with dev_xxx wherever possible
Use previously initialized usb_device pointer for usb_put_dev()
Remove commented out console message code.
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-5-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
4934b98bb2
staging: gpib: Update messaging and usb_device refs in ni_usb
...
Replace GPIB_DPRINTK with dev_dbg
Replace pr_xxx with dev_xxx wherever possible
Use previously initialized usb_device pointer
for usb_get_dev() and usb_put_dev().
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-4-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
a836d4ec8f
staging: gpib: Replace custom debug with dev_dbg
...
Remove GPIB_KERNEL_DEBUG config option
Remove GPIB_DEBUG reference
Replace GPIB_DPRINTK with dev_dbg
Change pr_alert to dev_alert
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-3-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:34 +01:00
Dave Penkler
8023618a48
staging: gpib: Fix buffer overflow in ni_usb_init
...
The writes buffer size was not taking into account the number of
entries in the array which was causing random oopses.
Fixes: 4e127de14f ("staging: gpib: Add National Instruments USB GPIB driver")
Signed-off-by: Dave Penkler <dpenkler@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20241104175014.12317-2-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-07 09:27:33 +01:00
Philipp Hortmann
1235b909d3
staging: rtl8723bs: Remove function pointer hal_xmitframe_enqueue
...
Remove function pointer hal_xmitframe_enqueue and use
rtl8723bs_hal_xmitframe_enqueue directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/aef8fb63ed9944dde468fe1a69e5a9c700a4f627.1730619982.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-04 00:55:51 +01:00
Philipp Hortmann
c03e19faa6
staging: rtl8723bs: Remove function pointer mgnt_xmit
...
Remove function pointer mgnt_xmit and use rtl8723bs_mgnt_xmit directly to
increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/59988d60701a6f83a6a83b6c813e58c4484c7d3e.1730619982.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-04 00:55:50 +01:00
Philipp Hortmann
5c29294755
staging: rtl8723bs: Remove function pointer hal_xmit
...
Remove function pointer hal_xmit and use rtl8723bs_hal_xmit directly to
increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/db4f4a699847209e4a577ebfbea82b87c571e6d1.1730619982.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-04 00:55:50 +01:00
Philipp Hortmann
140e013b47
staging: rtl8723bs: Remove function pointer SetHalDefVarHandler
...
Remove function pointer SetHalDefVarHandler and use SetHalDefVar8723BSDIO
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/7a6c87ca6b746392517275eb4f6837c0ccaabff1.1730619982.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-04 00:55:50 +01:00
Philipp Hortmann
42ccc3bd8d
staging: rtl8723bs: Remove function pointer GetHalDefVarHandler
...
Remove function pointer GetHalDefVarHandler and use GetHalDefVar8723BSDIO
directly to increase readability.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com >
Link: https://lore.kernel.org/r/fc3d7390305b474e7149c087ad6e065d883e8447.1730619982.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-11-04 00:55:50 +01:00