From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Lauri Kasanen <cand@gmx.com>
Cc: linux-mips@vger.kernel.org, tsbogend@alpha.franken.de,
linux-input@vger.kernel.org
Subject: Re: [PATCH 1/3 v7] input: Add N64 controller driver
Date: Sun, 24 Jan 2021 21:14:22 -0800 [thread overview]
Message-ID: <YA5TrvVoZPsraXVO@google.com> (raw)
In-Reply-To: <20210115133408.0acd70163b582b77ad0a029b@gmx.com>
Hi Lauri,
On Fri, Jan 15, 2021 at 01:34:08PM +0200, Lauri Kasanen wrote:
> This adds support for the four built-in controller
> ports on the Nintendo 64 console. The N64 controller
> includes an analog stick, a d-pad, and several buttons.
>
> No module support as the target has only 8mb ram.
>
> Signed-off-by: Lauri Kasanen <cand@gmx.com>
> ---
>
> v7: use devm_platform_ioremap_resource
>
> drivers/input/joystick/Kconfig | 6 +
> drivers/input/joystick/Makefile | 2 +-
> drivers/input/joystick/n64joy.c | 343 ++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 350 insertions(+), 1 deletion(-)
> create mode 100644 drivers/input/joystick/n64joy.c
>
> diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig
> index b080f0c..e1a8128 100644
> --- a/drivers/input/joystick/Kconfig
> +++ b/drivers/input/joystick/Kconfig
> @@ -382,4 +382,10 @@ config JOYSTICK_FSIA6B
> To compile this driver as a module, choose M here: the
> module will be called fsia6b.
>
> +config JOYSTICK_N64
> + bool "N64 controller"
> + depends on MACH_NINTENDO64
> + help
> + Support for the four N64 controllers.
I expanded this help section with wording from your CL description.
> +
> + dev->name = "N64 controller";
> + dev->phys = n64joy_phys[i];
> + dev->id.bustype = BUS_HOST;
> + dev->id.vendor = 0;
> + dev->id.product = data[i].data >> 16;
> + dev->id.version = 0;
I added
dev->dev.parent = &pdev->dev;
so that controllers are parented properly, and applied.
--
Dmitry
prev parent reply other threads:[~2021-01-25 5:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-15 11:34 [PATCH 1/3 v7] input: Add N64 controller driver Lauri Kasanen
2021-01-24 7:45 ` Lauri Kasanen
2021-01-25 5:14 ` Dmitry Torokhov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YA5TrvVoZPsraXVO@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=cand@gmx.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.