Commit 50e934a6 authored by Wen-chien Jesse Sung's avatar Wen-chien Jesse Sung Committed by Tim Gardner

UBUNTU: SAUCE: Bluetooth: Use host bridge subsystem IDs to identify Edge Gateways

BugLink: https://launchpad.net/bugs/1512999

Since DMI IDs may be different between models while subsystem IDs of
host bridge will stay the same, use pci_get_subsys() instead of
dmi_match() to identify Edge Gateways.
Signed-off-by: default avatarWen-chien Jesse Sung <jesse.sung@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 187168f4
......@@ -24,7 +24,7 @@
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/firmware.h>
#include <linux/dmi.h>
#include <linux/pci.h>
#include <asm/unaligned.h>
#include <net/bluetooth/bluetooth.h>
......@@ -2975,8 +2975,8 @@ static int btusb_probe(struct usb_interface *intf,
if (id->driver_info & BTUSB_MARVELL) {
hdev->set_bdaddr = btusb_set_bdaddr_marvell;
if (dmi_match(DMI_PRODUCT_NAME, "Edge Gateway 5000") ||
dmi_match(DMI_PRODUCT_NAME, "Edge Gateway 5100")) {
if (pci_get_subsys(PCI_ANY_ID, PCI_ANY_ID, 0x1028, 0x0720, NULL) ||
pci_get_subsys(PCI_ANY_ID, PCI_ANY_ID, 0x1028, 0x0733, NULL)) {
hdev->post_open = btusb_edge_post_open;
hdev->shutdown = btusb_edge_shutdown;
}
......
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