All of lore.kernel.org
 help / color / mirror / Atom feed
* PCI: keystone: ks_pcie_v3_65_add_bus()
@ 2022-05-24 20:15 Bjorn Helgaas
  2022-05-24 20:54 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2022-05-24 20:15 UTC (permalink / raw)
  To: Kishon Vijay Abraham I; +Cc: Jyri Sarha, Tomi Valkeinen, Rob Herring, linux-pci

Not sure whether anybody cares about the keystone driver any more.  It
seems basically unmaintained after 57e1d8206e48 ("MAINTAINERS: move
Murali Karicheri to credits") [1].

Anyway, ks_pcie_v3_65_add_bus() [2] looks unusual to me.  It's an
.add_bus() method that is called whenever we create a new PCI bus:

  ks_pcie_v3_65_add_bus(...)
  {
    ks_pcie_set_dbi_mode
    dw_pcie_writel_dbi(pci, PCI_BASE_ADDRESS_0, 1)
    dw_pcie_writel_dbi(pci, PCI_BASE_ADDRESS_0, SZ_4K - 1)
    ks_pcie_clear_dbi_mode(ks_pcie)
    dw_pcie_writel_dbi(pci, PCI_BASE_ADDRESS_0, ks_pcie->app.start)
  }

This seems like something that should be done when the Root Port is
enumerated, not when we set up its secondary bus.  Maybe somewhere in
ks_pcie_host_init() or ks_pcie_config_msi_irq()?

I don't think we should use .add_bus() unless it's actually something
related to adding a bus.

[1] https://git.kernel.org/linus/57e1d8206e48
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pci-keystone.c?id=v5.18#n452

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-24 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 20:15 PCI: keystone: ks_pcie_v3_65_add_bus() Bjorn Helgaas
2022-05-24 20:54 ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.