ignatenkobrain / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
Pablo Greco d6c4c4
From 5a39c1ffc4e18603f2c9af3c0a556e2db6e70705 Mon Sep 17 00:00:00 2001
Pablo Greco d6c4c4
From: Peter Robinson <pbrobinson@gmail.com>
Pablo Greco d6c4c4
Date: Sat, 2 Nov 2019 16:52:15 +0000
Pablo Greco d6c4c4
Subject: [PATCH 1/2] usb: host: xhci-tegra: set MODULE_FIRMWARE for tegra186
Pablo Greco d6c4c4
Pablo Greco d6c4c4
Set the MODULE_FIRMWARE for tegra186, it's registered for 124/210 and
Pablo Greco d6c4c4
ensures the firmware is available at the appropriate time such as in
Pablo Greco d6c4c4
the initrd, else if the firmware is unavailable the driver fails with
Pablo Greco d6c4c4
the following errors:
Pablo Greco d6c4c4
Pablo Greco d6c4c4
tegra-xusb 3530000.usb: Direct firmware load for nvidia/tegra186/xusb.bin failed with error -2
Pablo Greco d6c4c4
tegra-xusb 3530000.usb: failed to request firmware: -2
Pablo Greco d6c4c4
tegra-xusb 3530000.usb: failed to load firmware: -2
Pablo Greco d6c4c4
tegra-xusb: probe of 3530000.usb failed with error -2
Pablo Greco d6c4c4
Pablo Greco d6c4c4
Fixes: 5f9be5f3f899 ("usb: host: xhci-tegra: Add Tegra186 XUSB support")
Pablo Greco d6c4c4
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Pablo Greco d6c4c4
---
Pablo Greco d6c4c4
 drivers/usb/host/xhci-tegra.c | 1 +
Pablo Greco d6c4c4
 1 file changed, 1 insertion(+)
Pablo Greco d6c4c4
Pablo Greco d6c4c4
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
Pablo Greco d6c4c4
index 2ff7c911fbd0..d25aba8fa219 100644
Pablo Greco d6c4c4
--- a/drivers/usb/host/xhci-tegra.c
Pablo Greco d6c4c4
+++ b/drivers/usb/host/xhci-tegra.c
Pablo Greco d6c4c4
@@ -1433,6 +1433,7 @@ static const struct tegra_xusb_soc tegra186_soc = {
Pablo Greco d6c4c4
 	.scale_ss_clock = false,
Pablo Greco d6c4c4
 	.has_ipfs = false,
Pablo Greco d6c4c4
 };
Pablo Greco d6c4c4
+MODULE_FIRMWARE("nvidia/tegra186/xusb.bin");
Pablo Greco d6c4c4
 
Pablo Greco d6c4c4
 static const struct of_device_id tegra_xusb_of_match[] = {
Pablo Greco d6c4c4
 	{ .compatible = "nvidia,tegra124-xusb", .data = &tegra124_soc },
Pablo Greco d6c4c4
-- 
Pablo Greco d6c4c4
2.23.0
Pablo Greco d6c4c4