* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / kernel / linux / i915-diag.patch
blobb58fc9bc140cf9b8f239e65d8f27f8d83201a673
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/i915-diag.patch
3 # Copyright (C) 2023 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- linux-6.2/drivers/gpu/drm/i915/i915_pci.c.vanilla 2023-04-20 18:16:28.438301211 +0200
15 +++ linux-6.2/drivers/gpu/drm/i915/i915_pci.c 2023-04-20 18:20:18.780294887 +0200
16 @@ -1327,8 +1326,10 @@
17 if (PCI_FUNC(pdev->devfn))
18 return -ENODEV;
20 - if (!intel_mmio_bar_valid(pdev, intel_info))
21 + if (!intel_mmio_bar_valid(pdev, intel_info)) {
22 + dev_err(&pdev->dev, "MMIO BAR invalid\n");
23 return -ENXIO;
24 + }
26 /* Detect if we need to wait for other drivers early on */
27 if (intel_modeset_probe_defer(pdev))