Commit 5c5e8c52 authored by Chris Lu's avatar Chris Lu Committed by Luiz Augusto von Dentz

Bluetooth: btmtk: move btusb_mtk_[setup, shutdown] to btmtk.c

Move btusb_mtk_[setup, shutdown] and related function from
btusb.c to btmtk.c which holds vendor specific stuff and
would make btusb.c clean.
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarChris Lu <chris.lu@mediatek.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent d019930b
This diff is collapsed.
...@@ -140,6 +140,8 @@ struct btmtk_hci_wmt_params { ...@@ -140,6 +140,8 @@ struct btmtk_hci_wmt_params {
enum { enum {
BTMTK_TX_WAIT_VND_EVT, BTMTK_TX_WAIT_VND_EVT,
BTMTK_FIRMWARE_LOADED,
BTMTK_HW_RESET_ACTIVE,
}; };
typedef int (*btmtk_reset_sync_func_t)(struct hci_dev *, void *); typedef int (*btmtk_reset_sync_func_t)(struct hci_dev *, void *);
...@@ -152,6 +154,7 @@ struct btmtk_coredump_info { ...@@ -152,6 +154,7 @@ struct btmtk_coredump_info {
}; };
struct btmtk_data { struct btmtk_data {
const char *drv_name;
unsigned long flags; unsigned long flags;
u32 dev_id; u32 dev_id;
btmtk_reset_sync_func_t reset_sync; btmtk_reset_sync_func_t reset_sync;
...@@ -186,8 +189,11 @@ int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb); ...@@ -186,8 +189,11 @@ int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb);
void btmtk_fw_get_filename(char *buf, size_t size, u32 dev_id, u32 fw_ver, void btmtk_fw_get_filename(char *buf, size_t size, u32 dev_id, u32 fw_ver,
u32 fw_flavor); u32 fw_flavor);
int btmtk_usb_hci_wmt_sync(struct hci_dev *hdev, int btmtk_usb_subsys_reset(struct hci_dev *hdev, u32 dev_id);
struct btmtk_hci_wmt_params *wmt_params);
int btmtk_usb_setup(struct hci_dev *hdev);
int btmtk_usb_shutdown(struct hci_dev *hdev);
#else #else
static inline int btmtk_set_bdaddr(struct hci_dev *hdev, static inline int btmtk_set_bdaddr(struct hci_dev *hdev,
...@@ -228,8 +234,17 @@ static void btmtk_fw_get_filename(char *buf, size_t size, u32 dev_id, ...@@ -228,8 +234,17 @@ static void btmtk_fw_get_filename(char *buf, size_t size, u32 dev_id,
{ {
} }
static int btmtk_usb_hci_wmt_sync(struct hci_dev *hdev, static int btmtk_usb_subsys_reset(struct hci_dev *hdev, u32 dev_id)
struct btmtk_hci_wmt_params *wmt_params) {
return -EOPNOTSUPP;
}
static int btmtk_usb_setup(struct hci_dev *hdev)
{
return -EOPNOTSUPP;
}
static int btmtk_usb_shutdown(struct hci_dev *hdev)
{ {
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment