svn commit: r331964 - head/sys/arm/mv
Marcin Wojtas
mw at FreeBSD.org
Tue Apr 3 23:27:08 UTC 2018
Author: mw
Date: Tue Apr 3 23:27:07 2018
New Revision: 331964
URL: https://svnweb.freebsd.org/changeset/base/331964
Log:
Add missing flag check in Marvell PCIE driver
Flag was introduced in r331953, but eventually not used.
Obtained from: Semihalf
Sponsored by: Stormshield
Modified:
head/sys/arm/mv/mv_pci.c
Modified: head/sys/arm/mv/mv_pci.c
==============================================================================
--- head/sys/arm/mv/mv_pci.c Tue Apr 3 23:11:08 2018 (r331963)
+++ head/sys/arm/mv/mv_pci.c Tue Apr 3 23:27:07 2018 (r331964)
@@ -560,7 +560,8 @@ mv_pcib_enable(struct mv_pcib_softc *sc, uint32_t unit
/*
* Check if PCIE device is enabled.
*/
- if (read_cpu_ctrl(CPU_CONTROL) & CPU_CONTROL_PCIE_DISABLE(unit)) {
+ if ((sc->sc_skip_enable_procedure == 0) &&
+ (read_cpu_ctrl(CPU_CONTROL) & CPU_CONTROL_PCIE_DISABLE(unit))) {
write_cpu_ctrl(CPU_CONTROL, read_cpu_ctrl(CPU_CONTROL) &
~(CPU_CONTROL_PCIE_DISABLE(unit)));
@@ -1057,7 +1058,7 @@ mv_pcib_root_slot(device_t dev, u_int bus, u_int slot,
struct mv_pcib_softc *sc = device_get_softc(dev);
uint32_t vendor, device;
-/* On platforms other than Armada38x, root link is always at slot 0 */
+ /* On platforms other than Armada38x, root link is always at slot 0 */
if (!sc->sc_enable_find_root_slot)
return (slot == 0);
More information about the svn-src-head
mailing list