aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpicoder.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2025-05-27 07:47:37 +0000
committerLuiz Augusto von Dentz <[email protected]>2025-05-30 17:29:38 +0000
commit0fb410c914eb03c7e9d821e26d03bac0a239e5db (patch)
tree62d52685a5e2df2753a3bd487f032e64068d9884 /lib/crypto/mpi/mpicoder.c
parentBluetooth: btnxpuart: Fix missing devm_request_irq() return value check (diff)
downloadkernel-0fb410c914eb03c7e9d821e26d03bac0a239e5db.tar.gz
kernel-0fb410c914eb03c7e9d821e26d03bac0a239e5db.zip
Bluetooth: hci_qca: move the SoC type check to the right place
Commit 3d05fc82237a ("Bluetooth: qca: set power_ctrl_enabled on NULL returned by gpiod_get_optional()") accidentally changed the prevous behavior where power control would be disabled without the BT_EN GPIO only on QCA_WCN6750 and QCA_WCN6855 while also getting the error check wrong. We should treat every IS_ERR() return value from devm_gpiod_get_optional() as a reason to bail-out while we should only set power_ctrl_enabled to false on the two models mentioned above. While at it: use dev_err_probe() to save a LOC. Cc: [email protected] Fixes: 3d05fc82237a ("Bluetooth: qca: set power_ctrl_enabled on NULL returned by gpiod_get_optional()") Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Tested-by: Hsin-chen Chuang <[email protected]> Reviewed-by: Hsin-chen Chuang <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions