0021-xHCI-also-accept-SBRN-0x31-and-0x32.patch 956 B

123456789101112131415161718192021222324252627
  1. From 8e6d5b598b3e21c905023b438110d71f487a2289 Mon Sep 17 00:00:00 2001
  2. From: Sven Anderson <sven@anderson.de>
  3. Date: Sat, 28 May 2022 21:39:23 +0200
  4. Subject: [PATCH 21/26] xHCI: also accept SBRN 0x31 and 0x32
  5. Signed-off-by: Sven Anderson <sven@anderson.de>
  6. ---
  7. grub-core/bus/usb/xhci-pci.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/grub-core/bus/usb/xhci-pci.c b/grub-core/bus/usb/xhci-pci.c
  10. index a5bd3c97d..cde21f57a 100644
  11. --- a/grub-core/bus/usb/xhci-pci.c
  12. +++ b/grub-core/bus/usb/xhci-pci.c
  13. @@ -76,7 +76,7 @@ grub_xhci_pci_iter (grub_pci_device_t dev, grub_pci_id_t pciid,
  14. /* Check Serial Bus Release Number */
  15. addr = grub_pci_make_address (dev, GRUB_XHCI_PCI_SBRN_REG);
  16. release = grub_pci_read_byte (addr);
  17. - if (release != 0x30)
  18. + if (release != 0x30 && release != 0x31 &&release != 0x32)
  19. {
  20. grub_dprintf ("xhci", "XHCI grub_xhci_pci_iter: Wrong SBRN: %0x\n",
  21. release);
  22. --
  23. 2.39.5