On Thu, 2013-07-11 at 17:43 +0800, Yijing Wang wrote: > Introduce PCIe Ext Capability Device Serial Number support, > so we can use the unique device serial number to identify > the physical device. During system suspend, if the PCIe > device was removed and inserted a new same device, after > system resume there is no good way to identify it, maybe > Device Serial Number is a good choice if device support. > > Signed-off-by: Yijing Wang <wangyijing@xxxxxxxxxx> > --- > drivers/pci/pci.c | 27 +++++++++++++++++++++++++++ > drivers/pci/probe.c | 2 ++ > include/linux/pci.h | 3 +++ > 3 files changed, 32 insertions(+), 0 deletions(-) > [...] > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 0fd1f15..10d190b 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -342,6 +342,7 @@ struct pci_dev { > struct list_head msi_list; > struct kset *msi_kset; > #endif > + u64 sn; /* device serieal number, 0 if not support */ Typo: serieal > struct pci_vpd *vpd; > #ifdef CONFIG_PCI_ATS > union { [...] Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html