Re: [PATCH -v4 1/3] pci: add rescan to /sys/.../pci_bus/.../

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 10, 2011 at 11:22:09AM -0700, Yinghai Lu wrote:
> 
> After remove the device from /sys, we have to rescan all or
> find out the bridge and access /sys../device/rescan there.
> 
> this patch add /sys/.../pci_bus/.../rescan. So user can rescan more easy.
> that is more clean and easy to understand.
> 
> like after remove 0000:c4:00.0, you can rescan 0000:c4 directly.
> 
> -v2: According to Jesse, use function instead of exposing attr, so could hide
> 	#ifdef in header file.
>      also add code to remove rescan file in remove path.
> -v3: GregKH pointed out that we should use dev_attrs to avoid racing.
>      So add pcibus_attrs and make it to be member of pcibus_attrs.
> -v4: Change name to pcibus_dev_attrs according to GregKH
> 
> Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>

Where's the follow-on patch moving the other sysfs files to this new
attribute group?

thanks,

greg k-h
--
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


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux