On Thu, Dec 19, 2024 at 08:17:50PM +0900, Kunihiko Hayashi wrote: > On 2024/12/17 17:19, Niklas Cassel wrote: > > > If you simply add code that disables all BARs by default in am654, you > > should be able to remove these ugly is_am654_pci_dev() checks in the host > > driver, and the host driver should not be able to write to these reserved > > BARs, as they will never get enabled by pci-epf-test.c. > > However, dw_pcie_ep_reset_bar() only clears BAR registers to 0x0. BAR > doesn't have any "disabled" field, so I think that it means "32-bit, memory, > non-prefetchable".