acer-wmi: schedule threeg and interface sysfs for feature removal
Subsystems (3)
PATCH 1/1 acer-wmi: schedule threeg and interface sysfs for feature removal
we can now autodetect internal 3G device and already have the threeg rfkill device. So, we plan to remove threeg sysfs support for it's no longer necessary.
We also plan to remove interface sysfs file that exposed which ACPI-WMI interface that was used by acer-wmi driver. It will replaced by information log when acer-wmi initial.
We keep it around for userspace compatibility reasons, schedule removal in 2012.
--- Documentation/feature-removal-schedule.txt | 13 +++++++++++++ drivers/platform/x86/acer-wmi.c | 3 +++ 2 files changed, 16 insertions(+), 0 deletions(-)
Documentation/feature-removal-schedule.txt +13 -0
@@ -580,3 +580,16 @@ Why: These legacy callbacks should no longer be used as i2c-core offers Who: Jean Delvare <[email protected]> ---------------------------- + +What: threeg and interface sysfs files in /sys/devices/platform/acer-wmi +When: 2012 +Why: In 2.6.40, we can now autodetect internal 3G device and already have + the threeg rfkill device. So, we plan to remove threeg sysfs support + for it's no longer necessary. + + We also plan to remove interface sysfs file that exposed which ACPI-WMI + interface that was used by acer-wmi driver. It will replaced by + information log when acer-wmi initial. +Who: Lee, Chun-Yi <[email protected]> + +----------------------------
drivers/platform/x86/acer-wmi.c +3 -0
@@ -1396,6 +1396,8 @@ static ssize_t show_bool_threeg(struct device *dev, {u32 result; \acpi_status status; + +pr_info ("This threeg sysfs will be removed in 2012." );if (wmi_has_guid (WMID_GUID3 )) status =wmid3_get_device_status (&result,ACER_WMID3_GDS_THREEG );
@@ -1421,6 +1423,7 @@ static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg,static ssize_t show_interface (struct device *dev,struct device_attribute *attr,char *buf) { +pr_info ("This interface sysfs will be removed in 2012." );switch (interface->type) {case ACER_AMW0 :return sprintf (buf,"AMW0\n" );
Signature · 1 line
1.6.0.2
Quoted 10 lines · Chun-Yi
we can now autodetect internal 3G device and already have the threeg rfkill device. So, we plan to remove threeg sysfs support for it's no longer necessary.
We also plan to remove interface sysfs file that exposed which ACPI-WMI interface that was used by acer-wmi driver. It will replaced by information log when acer-wmi initial.
We keep it around for userspace compatibility reasons, schedule removal in 2012.
...
drivers/platform/x86/acer-wmi.c static ssize_t show_bool_threeg(struct device *dev, · line 1400
Quoted 10 lines
drivers/platform/x86/acer-wmi.c +2
-0@@ -1396,6 +1396,8 @@ static ssize_t show_bool_threeg(struct device *dev, {u32 result; \acpi_status status; + +pr_info ("This threeg sysfs will be removed in 2012." );
You could also add:
" - used by: %s\n", current->comm);
then it's easier to identify and fix the app still making use of it.
drivers/platform/x86/acer-wmi.c static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg, · line 1426
Quoted 8 lines
drivers/platform/x86/acer-wmi.c +1
-0if (wmi_has_guid (WMID_GUID3 )) status =wmid3_get_device_status (&result,ACER_WMID3_GDS_THREEG );@@ -1421,6 +1423,7 @@ static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg,static ssize_t show_interface (struct device *dev,struct device_attribute *attr,char *buf) { +pr_info ("This interface sysfs will be removed in 2012." );
Same.
drivers/platform/x86/acer-wmi.c static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg, · line 1429
Quoted 3 lines
drivers/platform/x86/acer-wmi.c +0
-0switch (interface->type) {case ACER_AMW0 :return sprintf (buf,"AMW0\n" );
Thomas
Hi Thomas,
於 一,2011-05-30 於 09:47 +0200,Thomas Renninger 提到:
Quoted 38 lines · Chun-Yi
Quoted 10 lines
we can now autodetect internal 3G device and already have the threeg rfkill device. So, we plan to remove threeg sysfs support for it's no longer necessary.
We also plan to remove interface sysfs file that exposed which ACPI-WMI interface that was used by acer-wmi driver. It will replaced by information log when acer-wmi initial.
We keep it around for userspace compatibility reasons, schedule removal in 2012.
...
drivers/platform/x86/acer-wmi.c static ssize_t show_bool_threeg(struct device *dev, · line 1400
Quoted 10 lines
drivers/platform/x86/acer-wmi.c +2
-0@@ -1396,6 +1396,8 @@ static ssize_t show_bool_threeg(struct device *dev, {u32 result; \acpi_status status; + +pr_info ("This threeg sysfs will be removed in 2012." );You could also add:
" - used by: %s\n", current->comm);then it's easier to identify and fix the app still making use of it.
drivers/platform/x86/acer-wmi.c static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg, · line 1426
Quoted 8 lines
drivers/platform/x86/acer-wmi.c +1
-0if (wmi_has_guid (WMID_GUID3 )) status =wmid3_get_device_status (&result,ACER_WMID3_GDS_THREEG );@@ -1421,6 +1423,7 @@ static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg,static ssize_t show_interface (struct device *dev,struct device_attribute *attr,char *buf) { +pr_info ("This interface sysfs will be removed in 2012." );Same.
Quoted 5 lines
drivers/platform/x86/acer-wmi.c static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg, · line 1429
Quoted 3 lines
drivers/platform/x86/acer-wmi.c +0
-0switch (interface->type) {case ACER_AMW0 :return sprintf (buf,"AMW0\n" );Thomas
Thank's for your review and suggestion, I modified patch like the following:
From 0dc691b3f99794a6b91728413919720454a9be44 Mon Sep 17 00:00:00 2001
From: Lee, Chun-Yi <[email protected]>
Date: Mon, 30 May 2011 16:58:27 +0800
Subject: [PATCH v2] acer-wmi: schedule threeg and interface sysfs for feature removal
we can now autodetect internal 3G device and already have the threeg rfkill device. So, we plan to remove threeg sysfs support for it's no longer necessary.
We also plan to remove interface sysfs file that exposed which ACPI-WMI interface that was used by acer-wmi driver. It will replaced by information log when acer-wmi initial.
We keep it around for userspace compatibility reasons, schedule removal in 2012.
--- Documentation/feature-removal-schedule.txt | 13 +++++++++++++ drivers/platform/x86/acer-wmi.c | 11 +++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-)
Documentation/feature-removal-schedule.txt +13 -0
@@ -564,3 +564,16 @@ Why: Superseded by the UVCIOC_CTRL_QUERY ioctl. Who: Laurent Pinchart <[email protected]> ---------------------------- + +What: threeg and interface sysfs files in /sys/devices/platform/acer-wmi +When: 2012 +Why: In 2.6.40, we can now autodetect internal 3G device and already have + the threeg rfkill device. So, we plan to remove threeg sysfs support + for it's no longer necessary. + + We also plan to remove interface sysfs file that exposed which ACPI-WMI + interface that was used by acer-wmi driver. It will replaced by + information log when acer-wmi initial. +Who: Lee, Chun-Yi <[email protected]> + +----------------------------
drivers/platform/x86/acer-wmi.c +9 -2
@@ -1400,6 +1400,9 @@ static ssize_t show_bool_threeg(struct device *dev, {u32 result; \acpi_status status; + +pr_info ("This threeg sysfs will be removed in 2012" +" - used by: %s\n" , current->comm);if (wmi_has_guid (WMID_GUID3 )) status =wmid3_get_device_status (&result,ACER_WMID3_GDS_THREEG );
@@ -1415,8 +1418,10 @@ static ssize_t set_bool_threeg(struct device *dev, {u32 tmp =simple_strtoul (buf,NULL ,10 );acpi_status status =set_u32 (tmp,ACER_CAP_THREEG ); -if (ACPI_FAILURE (status)) -return -EINVAL ; +pr_info ("This threeg sysfs will be removed in 2012" +" - used by: %s\n" , current->comm); +if (ACPI_FAILURE (status)) +return -EINVAL ;return count; } static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg,
@@ -1425,6 +1430,8 @@ static DEVICE_ATTR(threeg, S_IRUGO | S_IWUSR, show_bool_threeg,static ssize_t show_interface (struct device *dev,struct device_attribute *attr,char *buf) { +pr_info ("This interface sysfs will be removed in 2012" +" - used by: %s\n" , current->comm);switch (interface->type) {case ACER_AMW0 :return sprintf (buf,"AMW0\n" );
Signature · 1 line
1.6.0.2