All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux pci card forcing a remove and restore
@ 2019-04-16 23:34 Scott Branden
  2019-04-17  1:57 ` Sinan Kaya
  2019-04-17 13:49 ` Bjorn Helgaas
  0 siblings, 2 replies; 4+ messages in thread
From: Scott Branden @ 2019-04-16 23:34 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci; +Cc: bcm-kernel-feedback-list

I have a possibly simple or may be more involved question:

I have a PCI device that the hardware boots up and enumerates in GEN2 mode.

Once the linux device driver is loaded we can download new firmware to 
the card that may reinitialize the PCIe PHY in GEN3 mode and resizing 
the BARs.

We can have the device re-enumerated via user space:

echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove

echo 1 > /sys/bus/pci/rescan

But, is it possible to do this inside the kernel device driver after it 
has downloaded the new firmware instead?

Before I start trying to play with pci_stop_and_remove_bus_device 
followed by pci_rescan_bus I would like to know if what I'm trying to do 
is a correct approach?

Thanks,

  Scott



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

end of thread, other threads:[~2019-04-17 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-16 23:34 Linux pci card forcing a remove and restore Scott Branden
2019-04-17  1:57 ` Sinan Kaya
2019-04-17 13:49 ` Bjorn Helgaas
2019-04-17 18:32   ` Rajat Jain

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.