From: Max Chou Date: Wed, 27 Nov 2019 03:01:07 +0000 (+0800) Subject: Bluetooth: btusb: Edit the logical value for Realtek Bluetooth reset X-Git-Tag: v5.15~4637^2~282^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34682110abc50ffea7e002b0c2fd7ea9e0000ccc;p=platform%2Fkernel%2Flinux-starfive.git Bluetooth: btusb: Edit the logical value for Realtek Bluetooth reset It should be pull low and pull high on the physical line for the Realtek Bluetooth reset. gpiod_set_value_cansleep() takes ACTIVE_LOW status for the logical value settings, so the original commit should be corrected. Signed-off-by: Max Chou Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 70e3859..82fb2e7b 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -552,9 +552,9 @@ static void btusb_rtl_cmd_timeout(struct hci_dev *hdev) } bt_dev_err(hdev, "Reset Realtek device via gpio"); - gpiod_set_value_cansleep(reset_gpio, 0); - msleep(200); gpiod_set_value_cansleep(reset_gpio, 1); + msleep(200); + gpiod_set_value_cansleep(reset_gpio, 0); } static inline void btusb_free_frags(struct btusb_data *data)