Skip to contentSkip to conversation

Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

PATCH In review Tomohiro Yoshidomi 2 participants 6 messages May 9, 2017 – May 10, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v8 1/1 Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

PlayStation 1/2 joypads can be connected directly to the SPI interface.

---
 drivers/input/joystick/Kconfig      |  22 ++
 drivers/input/joystick/Makefile     |   1 +
 drivers/input/joystick/psxpad-spi.c | 431 ++++++++++++++++++++++++++++++++++++
 3 files changed, 454 insertions(+)
 create mode 100644 drivers/input/joystick/psxpad-spi.c
drivers/input/joystick/Kconfig +22 -0
index 4215b53..cbcb9a6 100644
@@ -330,4 +330,26 @@ config JOYSTICK_MAPLE
 	  To compile this as a module choose M here: the module will be called
 	  maplecontrol.
 
+config JOYSTICK_PSXPAD_SPI
+	tristate "PlayStation 1/2 joypads via SPI interface"
+	depends on SPI
+	select INPUT_POLLDEV
+	help
+	  Say Y here if you wish to connect PlayStation 1/2 joypads
+	  via SPI interface.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called psxpad-spi.
+
+config JOYSTICK_PSXPAD_SPI_FF
+	bool "PlayStation 1/2 joypads force feedback (rumble) support"
+	depends on JOYSTICK_PSXPAD_SPI
+	select INPUT_FF_MEMLESS
+	help
+	  Say Y here if you want to take advantage of
+	  PlayStation 1/2 joypads rumble features.
+
+	  To drive rumble motor,
+	  a dedicated power supply is required.
+
 endif
drivers/input/joystick/Makefile +1 -0
index 92dc0de..496fd56 100644
@@ -21,6 +21,7 @@ obj-$(CONFIG_JOYSTICK_INTERACT)		+= interact.o
 obj-$(CONFIG_JOYSTICK_JOYDUMP)		+= joydump.o
 obj-$(CONFIG_JOYSTICK_MAGELLAN)		+= magellan.o
 obj-$(CONFIG_JOYSTICK_MAPLE)		+= maplecontrol.o
+obj-$(CONFIG_JOYSTICK_PSXPAD_SPI)	+= psxpad-spi.o
 obj-$(CONFIG_JOYSTICK_SIDEWINDER)	+= sidewinder.o
 obj-$(CONFIG_JOYSTICK_SPACEBALL)	+= spaceball.o
 obj-$(CONFIG_JOYSTICK_SPACEORB)		+= spaceorb.o
drivers/input/joystick/psxpad-spi.c new file +431 -0

431 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

Mr.Torokhov

Hi.
I fixed source, and sent v8 patch to you.

* FF codes ('CONFIG_JOYSTICK_PSXPAD_SPI_FF' defined), put together in one place.

* psxpad_spi_suspend() stub removed again.

Regard.

---
Tomohiro Yoshidomi <[email protected]>

maintainer
#2 lore raw

Hi,

Quoted 9 lines · Tomohiro Yoshidomi

Mr.Torokhov

Hi.
I fixed source, and sent v8 patch to you.

* FF codes ('CONFIG_JOYSTICK_PSXPAD_SPI_FF' defined), put together in one place.

* psxpad_spi_suspend() stub removed again.

Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.

Thanks.

Signature · 1 line
Dmitry
#3 lore raw

Mr.Torokhov

Hi.

Quoted 2 lines

Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.

Sorry, what did you mail to me with the patch?
I searched old mails, but I couldn't find it.

Please tell me time when you mailed the patch?

Thanks.

---
Tomohiro <[email protected]>

maintainer
#4 lore raw
Quoted 5 lines · Tomohiro Yoshidomi

Mr.Torokhov

Hi.

Quoted 7 lines
Quoted 2 lines

Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.

Sorry, what did you mail to me with the patch?
I searched old mails, but I couldn't find it.

Please tell me time when you mailed the patch?

It was 2 days ago, in reply to the v7 of your patch. Look for message ID <20170507174426.GA21606@dtor-ws>

Thanks.

Signature · 1 line
Dmitry
#5 lore raw

Mr.Torokhov

Hi.

Quoted 2 lines

It was 2 days ago, in reply to the v7 of your patch. Look for message ID <20170507174426.GA21606@dtor-ws>

I checked the mail and confirmed that your patch was completely right! It is no problem, on builds and works.
I just accepted your patch...

Please include the patch in your pull request.

Because I am not good at English, we have taken a detour. I apologize for my poor question.
And I'm grateful for your generosity.

I pray for you to make a good request.

Thanks.
Best regard.

---
Tomohiro

2017-05-10 15:02 GMT+09:00 Dmitry Torokhov <[email protected]>:

Quoted 21 lines · Tomohiro Yoshidomi
Quoted 5 lines

Mr.Torokhov

Hi.

Quoted 7 lines
Quoted 2 lines

Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.

Sorry, what did you mail to me with the patch?
I searched old mails, but I couldn't find it.

Please tell me time when you mailed the patch?

It was 2 days ago, in reply to the v7 of your patch. Look for message ID <20170507174426.GA21606@dtor-ws>

Thanks.

--
Dmitry