Files
tegra-linux-noble/include/linux
Konrad Rzeszutek Wilk a96d627aba pci: Introduce __pci_reset_function_locked to be used when holding device_lock.
The use case of this is when a driver wants to call FLR when a device
is attached to it using the SysFS "bind" or "unbind" functionality.

The call chain when a user does "bind" looks as so:

 echo "0000:01.07.0" > /sys/bus/pci/drivers/XXXX/bind

and ends up calling:
  driver_bind:
    device_lock(dev);  <=== TAKES LOCK
    XXXX_probe:
         .. pci_enable_device()
         ...__pci_reset_function(), which calls
                 pci_dev_reset(dev, 0):
                        if (!0) {
                                device_lock(dev) <==== DEADLOCK

The __pci_reset_function_locked function allows the the drivers
'probe' function to call the "pci_reset_function" while still holding
the driver mutex lock.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2012-01-12 12:00:07 -05:00
..
2011-12-11 18:25:16 -05:00
2011-12-13 15:30:49 -05:00
2012-01-04 15:52:42 -08:00
2011-11-02 16:07:03 -07:00
2012-01-03 22:55:17 -05:00
2011-11-16 09:21:50 +01:00
2012-01-10 16:30:42 -08:00
2012-01-03 22:54:57 -05:00
2012-01-10 13:06:32 -05:00
2011-11-07 23:54:53 +01:00
2012-01-04 08:56:31 -06:00
2011-11-26 14:59:39 -05:00
2011-12-11 18:25:16 -05:00
2012-01-03 22:54:58 -05:00
2012-01-03 22:54:56 -05:00
2011-11-16 18:16:38 -05:00
2011-11-13 16:10:10 -05:00
2012-01-03 22:55:17 -05:00
2011-12-11 18:25:16 -05:00
2012-01-09 13:52:09 +01:00
2012-01-10 16:30:42 -08:00
2011-12-14 11:19:07 -08:00
2011-12-27 11:26:41 +02:00
2012-01-03 22:55:15 -05:00
2011-11-02 16:06:57 -07:00
2011-11-14 00:47:54 -05:00
2012-01-10 16:30:41 -08:00
2012-01-06 12:10:26 -08:00
2012-01-05 14:01:21 -05:00
2011-11-02 16:07:02 -07:00
2012-01-03 22:55:07 -05:00
2012-01-03 22:54:56 -05:00
2012-01-03 22:52:40 -05:00
2011-11-29 11:59:50 +00:00
2012-01-03 22:54:56 -05:00
2011-11-02 16:07:02 -07:00