HomeFreeBSD

pci: Clear the MEM/PORT_EN bit when updating PCI BAR

Description

pci: Clear the MEM/PORT_EN bit when updating PCI BAR

It's unsafe to update the BAR when the related EN bit is set.

Submitted by: Dexuan Cui <decui microsoft com>
Reviewed by: jhb
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7914

Details

Provenance
sepheAuthored on
Reviewer
jhb
Differential Revision
D7914: Clear the MEM/PORT_EN bit when updating PCI BAR
Parents
rS306358: Add NXP/Freescale DIU driver for PowerPC SoCs
Branches
Unknown
Tags
Unknown