diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2011-06-15 16:31:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-15 20:54:46 -0400 |
commit | 664a51a81f6ba39db30cd7b7de61577ca0b2d20d (patch) | |
tree | 56784fb1102c249900525841b84a6c9aa4b74494 | |
parent | 08e6c611123ab499757e4133df7ddc0875c0dccf (diff) |
USB: deprecate g_file_storage
This patch (as1471) deprecates the File-backed Storage Driver and
schedules its replacement for the 3.8 kernel release (about two years
from now). Users are advised to switch to the Mass Storage Gadget
instead.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | Documentation/feature-removal-schedule.txt | 7 | ||||
-rw-r--r-- | drivers/usb/gadget/Kconfig | 14 | ||||
-rw-r--r-- | drivers/usb/gadget/file_storage.c | 2 |
3 files changed, 16 insertions, 7 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 1a9446b59153..21f331d0473d 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
@@ -600,3 +600,10 @@ Why: Superseded by the UVCIOC_CTRL_QUERY ioctl. | |||
600 | Who: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 600 | Who: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
601 | 601 | ||
602 | ---------------------------- | 602 | ---------------------------- |
603 | |||
604 | What: g_file_storage driver | ||
605 | When: 3.8 | ||
606 | Why: This driver has been superseded by g_mass_storage. | ||
607 | Who: Alan Stern <stern@rowland.harvard.edu> | ||
608 | |||
609 | ---------------------------- | ||
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 9468adbe42bb..22e43fffbcc0 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -877,7 +877,7 @@ config USB_FUNCTIONFS_GENERIC | |||
877 | no Ethernet interface. | 877 | no Ethernet interface. |
878 | 878 | ||
879 | config USB_FILE_STORAGE | 879 | config USB_FILE_STORAGE |
880 | tristate "File-backed Storage Gadget" | 880 | tristate "File-backed Storage Gadget (DEPRECATED)" |
881 | depends on BLOCK | 881 | depends on BLOCK |
882 | help | 882 | help |
883 | The File-backed Storage Gadget acts as a USB Mass Storage | 883 | The File-backed Storage Gadget acts as a USB Mass Storage |
@@ -888,6 +888,9 @@ config USB_FILE_STORAGE | |||
888 | Say "y" to link the driver statically, or "m" to build a | 888 | Say "y" to link the driver statically, or "m" to build a |
889 | dynamically linked module called "g_file_storage". | 889 | dynamically linked module called "g_file_storage". |
890 | 890 | ||
891 | NOTE: This driver is deprecated. Its replacement is the | ||
892 | Mass Storage Gadget. | ||
893 | |||
891 | config USB_FILE_STORAGE_TEST | 894 | config USB_FILE_STORAGE_TEST |
892 | bool "File-backed Storage Gadget testing version" | 895 | bool "File-backed Storage Gadget testing version" |
893 | depends on USB_FILE_STORAGE | 896 | depends on USB_FILE_STORAGE |
@@ -907,14 +910,11 @@ config USB_MASS_STORAGE | |||
907 | device (in much the same way as the "loop" device driver), | 910 | device (in much the same way as the "loop" device driver), |
908 | specified as a module parameter or sysfs option. | 911 | specified as a module parameter or sysfs option. |
909 | 912 | ||
910 | This is heavily based on File-backed Storage Gadget and in most | 913 | This driver is an updated replacement for the deprecated |
911 | cases you will want to use FSG instead. This gadget is mostly | 914 | File-backed Storage Gadget (g_file_storage). |
912 | here to test the functionality of the Mass Storage Function | ||
913 | which may be used with composite framework. | ||
914 | 915 | ||
915 | Say "y" to link the driver statically, or "m" to build | 916 | Say "y" to link the driver statically, or "m" to build |
916 | a dynamically linked module called "g_mass_storage". If unsure, | 917 | a dynamically linked module called "g_mass_storage". |
917 | consider File-backed Storage Gadget. | ||
918 | 918 | ||
919 | config USB_G_SERIAL | 919 | config USB_G_SERIAL |
920 | tristate "Serial Gadget (with CDC ACM and CDC OBEX support)" | 920 | tristate "Serial Gadget (with CDC ACM and CDC OBEX support)" |
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index 0360f56221ea..83bee30cdb94 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -3486,6 +3486,8 @@ static int __init fsg_bind(struct usb_gadget *gadget) | |||
3486 | } | 3486 | } |
3487 | 3487 | ||
3488 | INFO(fsg, DRIVER_DESC ", version: " DRIVER_VERSION "\n"); | 3488 | INFO(fsg, DRIVER_DESC ", version: " DRIVER_VERSION "\n"); |
3489 | INFO(fsg, "NOTE: This driver is deprecated. " | ||
3490 | "Consider using g_mass_storage instead.\n"); | ||
3489 | INFO(fsg, "Number of LUNs=%d\n", fsg->nluns); | 3491 | INFO(fsg, "Number of LUNs=%d\n", fsg->nluns); |
3490 | 3492 | ||
3491 | pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); | 3493 | pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); |