Files
android_kernel_xiaomi_sm8450/drivers/pci
Jacob Keller 70c0923b0e PCI: Introduce pci_get_dsn
Several device drivers read their Device Serial Number from the PCIe
extended config space.

Introduce a new helper function, pci_get_dsn(). This function reads the
eight bytes of the DSN and returns them as a u64. If the capability does not
exist for the device, the function returns 0.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Michael Chan <michael.chan@broadcom.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-05 17:36:24 -08:00
..
2020-01-23 16:40:03 -06:00
2020-01-15 11:00:40 -06:00
2018-03-19 14:20:43 -05:00
2019-11-28 08:54:55 -06:00
2019-07-09 07:24:53 -05:00
2019-09-23 16:10:08 -05:00
2018-03-19 14:20:43 -05:00
2018-10-02 10:14:32 +02:00
2019-11-28 08:54:36 -06:00
2020-03-05 17:36:24 -08:00
2019-11-28 08:54:55 -06:00
2018-06-29 21:17:26 -05:00
2020-01-29 17:00:02 -06:00
2018-03-19 14:20:43 -05:00
2019-06-13 16:49:45 -05:00
2019-09-23 16:10:31 -05:00
2019-05-13 18:34:46 -05:00