lkml.org 
[lkml]   [2012]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 37/37] PCI, sysfs: Prepare to kill pci device rescan
Date
Hope we can kill it after one year.

Print warning to catch real users for that feature.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
---
Documentation/feature-removal-schedule.txt | 9 +++++++++
drivers/pci/pci-sysfs.c | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index a0ffac0..1b984a1 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -299,6 +299,15 @@ Why: In 2.6.27, the semantics of /sys/bus/pci/slots was redefined to
fakephp interface.
Who: Alex Chiang <achiang@hp.com>

+-----------------------------
+
+What: /sys/bus/pci/devices/.../rescan
+When: April 2013
+Why: That rescan will rescan pci parent's bus. It is confusing.
+ Now we have bridge rescan_bridge and bus rescan, and they could
+ be used on exact device and bus that need to be rescaned.
+Who: Yinghai Lu <yinghai@kernel.org>
+
---------------------------

What: CONFIG_RFKILL_INPUT
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index fc0a7de..c180455 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -320,6 +320,9 @@ dev_rescan_store(struct device *dev, struct device_attribute *attr,
return -EINVAL;

if (val) {
+ printk(KERN_WARNING "rescan with pci device will be removed "
+ "shortly, please use bridge rescan_bridge\n"
+ "or bus/rescan instead\n");
mutex_lock(&pci_remove_rescan_mutex);
pci_rescan_bus(pdev->bus);
mutex_unlock(&pci_remove_rescan_mutex);
--
1.7.7


\
 
 \ /
  Last update: 2012-03-10 08:07    [W:0.427 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site