Re: [PATCH 8/8] PCI, sys: only create rescan under/sys/.../pci/devices/... for pci bridges

From: Greg KH
Date: Sat Oct 15 2011 - 22:42:26 EST


On Sat, Oct 15, 2011 at 06:32:38PM -0700, Yinghai Lu wrote:
>
> Current code will create rescan for every pci device,
> that is not right. the device is already there, there is no reason to rescan it.
>
> So only have rescan for pci bridges. less confusing
>
> Need to add cond to be new member of device_attribute.
> device_add_attrs will check cond to see if need to create the attr.

No, we already have a way to do this, this is not acceptable, sorry.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/