Skip to content

Commit baf8532

Browse files
oakadLinus Torvalds
authored andcommitted
memstick: initial commit for Sony MemoryStick support
Sony MemoryStick cards are used in many products manufactured by Sony. They are available both as storage and as IO expansion cards. Currently, only MemoryStick Pro storage cards are supported via TI FlashMedia MemoryStick interface. [mboton@gmail.com: biuld fix] [akpm@linux-foundation.org: build fix] Signed-off-by: Alex Dubov <oakad@yahoo.com> Signed-off-by: Miguel Boton <mboton@gmail.co> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 941edd0 commit baf8532

16 files changed

Lines changed: 3093 additions & 0 deletions

File tree

‎MAINTAINERS‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3627,6 +3627,13 @@ L: linux-acpi@vger.kernel.org
36273627
W: http://www.linux.it/~malattia/wiki/index.php/Sony_drivers
36283628
S: Maintained
36293629

3630+
SONY MEMORYSTICK CARD SUPPORT
3631+
P: Alex Dubov
3632+
M: oakad@yahoo.com
3633+
L: linux-kernel@vger.kernel.org
3634+
W: http://tifmxx.berlios.de/
3635+
S: Maintained
3636+
36303637
SOUND
36313638
P: Jaroslav Kysela
36323639
M: perex@perex.cz

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ source "drivers/usb/Kconfig"
8080

8181
source "drivers/mmc/Kconfig"
8282

83+
source "drivers/memstick/Kconfig"
84+
8385
source "drivers/leds/Kconfig"
8486

8587
source "drivers/infiniband/Kconfig"

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ obj-y += lguest/
7878
obj-$(CONFIG_CPU_FREQ) += cpufreq/
7979
obj-$(CONFIG_CPU_IDLE) += cpuidle/
8080
obj-$(CONFIG_MMC) += mmc/
81+
obj-$(CONFIG_MEMSTICK) += memstick/
8182
obj-$(CONFIG_NEW_LEDS) += leds/
8283
obj-$(CONFIG_INFINIBAND) += infiniband/
8384
obj-$(CONFIG_SGI_SN) += sn/

‎drivers/memstick/Kconfig‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# MemoryStick subsystem configuration
3+
#
4+
5+
menuconfig MEMSTICK
6+
tristate "Sony MemoryStick card support (EXPERIMENTAL)"
7+
help
8+
Sony MemoryStick is a proprietary storage/extension card protocol.
9+
10+
If you want MemoryStick support, you should say Y here and also
11+
to the specific driver for your MMC interface.
12+
13+
if MEMSTICK
14+
15+
config MEMSTICK_DEBUG
16+
bool "MemoryStick debugging"
17+
help
18+
This is an option for use by developers; most people should
19+
say N here. This enables MemoryStick core and driver debugging.
20+
21+
22+
source "drivers/memstick/core/Kconfig"
23+
24+
source "drivers/memstick/host/Kconfig"
25+
26+
endif # MEMSTICK

‎drivers/memstick/Makefile‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Makefile for the kernel MemoryStick device drivers.
3+
#
4+
5+
ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
6+
EXTRA_CFLAGS += -DDEBUG
7+
endif
8+
9+
obj-$(CONFIG_MEMSTICK) += core/
10+
obj-$(CONFIG_MEMSTICK) += host/
11+

‎drivers/memstick/core/Kconfig‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# MemoryStick core configuration
3+
#
4+
5+
comment "MemoryStick drivers"
6+
7+
config MEMSTICK_UNSAFE_RESUME
8+
bool "Allow unsafe resume (DANGEROUS)"
9+
help
10+
If you say Y here, the MemoryStick layer will assume that all
11+
cards stayed in their respective slots during the suspend. The
12+
normal behaviour is to remove them at suspend and
13+
redetecting them at resume. Breaking this assumption will
14+
in most cases result in data corruption.
15+
16+
This option is usually just for embedded systems which use
17+
a MemoryStick card for rootfs. Most people should say N here.
18+
19+
config MSPRO_BLOCK
20+
tristate "MemoryStick Pro block device driver"
21+
depends on BLOCK
22+
help
23+
Say Y here to enable the MemoryStick Pro block device driver
24+
support. This provides a block device driver, which you can use
25+
to mount the filesystem. Almost everyone wishing MemoryStick
26+
support should say Y or M here.

‎drivers/memstick/core/Makefile‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Makefile for the kernel MemoryStick core.
3+
#
4+
5+
ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
6+
EXTRA_CFLAGS += -DDEBUG
7+
endif
8+
9+
obj-$(CONFIG_MEMSTICK) += memstick.o
10+
11+
obj-$(CONFIG_MSPRO_BLOCK) += mspro_block.o

0 commit comments

Comments
 (0)