From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga03-in.huawei.com ([119.145.14.66]:26749 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751055AbaBLH5n (ORCPT ); Wed, 12 Feb 2014 02:57:43 -0500 Message-ID: <52FB2968.3090904@huawei.com> Date: Wed, 12 Feb 2014 15:57:28 +0800 From: Yijing Wang MIME-Version: 1.0 To: Gu Zheng CC: Bjorn Helgaas , , , Hanjun Guo , Paul Bolle , Oliver Neukum Subject: Re: [PATCH part1 v6 4/7] PCI: Introduce pci_serial_number_changed() References: <1392173573-59844-1-git-send-email-wangyijing@huawei.com> <1392173573-59844-5-git-send-email-wangyijing@huawei.com> <52FB2222.20402@cn.fujitsu.com> In-Reply-To: <52FB2222.20402@cn.fujitsu.com> Content-Type: text/plain; charset="windows-1252" Sender: linux-pci-owner@vger.kernel.org List-ID: >> + * pci_serial_number_changed - check the device SN is changed > > How about the name “pci_device_changed”? I think it's more readable, > though the judgement is according to SN. Ah, it's nice, will update in next version. Thanks! Yijing. > > Regards, > Gu > >> + * @pdev: the PCI device >> + * >> + * check the device serial number is changed. >> + * if device does not support device serial number, >> + * return false. >> + */ >> +bool pci_serial_number_changed(struct pci_dev *pdev) >> +{ >> + u64 old, new;