public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Zaidman <michael.zaidman@gmail.com>
To: Christina Quast <contact@christina-quast.de>
Cc: linux-serial@vger.kernel.org, ilpo.jarvinen@linux.intel.com,
	johan@kernel.org, gregkh@linuxfoundation.org,
	daniel.beer@igorinstitute.com,
	David Lamparter <equinox@diac24.net>,
	Jiri Kosina <jikos@kernel.org>,
	michael.zaidman@gmail.com
Subject: Re: [PATCH v4 RESEND] hid-ft260: Add serial driver
Date: Tue, 2 Jan 2024 23:42:37 +0200	[thread overview]
Message-ID: <ZZSDTes35xnlFlX3@michael-VirtualBox> (raw)
In-Reply-To: <e1698466-a4e8-4120-ae51-d77c3d299fc5@christina-quast.de>

On Thu, Dec 28, 2023 at 12:50:08PM +0100, Christina Quast wrote:
> Hi everyone!
> 
> On 12/18/23 10:31, Christina Quast wrote:
> > Adds the serial driver for FT260 USB HID devices, providing direct and
> > simplified access to UART functionality without the need for FT260 HID
> > report format knowledge.
> > 
> > This chip implements an UART and I2C interface, but only the latter was
> > previously supported with a kernel driver. For the UART interface, only
> > FTDI example code using hidraw from userspace was available.
> > 
> > This commit adds a serial interface /dev/ttyFTx (FT as in FT260), which
> > implements tty serial driver ops, facilitating baudrate configuration,
> > data transmission and reception, termios settings.
> > 
> > Signed-off-by: Daniel Beer <daniel.beer@igorinstitute.com>
> > Signed-off-by: Christina Quast <contact@christina-quast.de>
> > Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Reviewed-by: David Lamparter <equinox@diac24.net>
> 
> Is this already queued for 6.8?
> 
> Cheers and happy new year!
> 
> Christina
> 

Thanks for this work!

I am adding Jiri Kosina, the maintainer of the HID subsystem.

The FTDI FT260 chip implements three functionalities: USB to I2C, UART,
and GPIO bridges through two USB HID class interfaces.

I use the https://github.com/MichaelZaidman/hid-ft260 repository for FT260
driver development. The I2C support has been upstreamed since 5.13. The code
is mature enough and is I2C performance-tuned.

The initial GPIO support was developed and committed into the mainline
https://patchwork.kernel.org/project/linux-input/cover/20230211115752.26276-1-michael.zaidman@gmail.com/.

Two versions of the initial UART support were around for some time, and
now they are unified in this commit.

I am going to test it with I2C traffic to exclude a suspect of possible
impact on the I2C performance and will provide feedback in a week or two.

--Michael

> > ---
> > 
> > V1 -> V2: Adressed review comments, added power saving mode quirk
> > V2 -> V3: Added return 0 in ft260_i2c_probe function
> > V3 -> V4:
> >   - Adressed review comments
> >   - Added get_icount
> >   - Fixed tty port lifetime bug
> > 
> >   drivers/hid/hid-ft260.c | 833 +++++++++++++++++++++++++++++++++++++---
> >   1 file changed, 781 insertions(+), 52 deletions(-)

  reply	other threads:[~2024-01-02 21:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-18  9:31 [PATCH v4 RESEND] hid-ft260: Add serial driver Christina Quast
2023-12-28 11:50 ` Christina Quast
2024-01-02 21:42   ` Michael Zaidman [this message]
2024-01-16 21:44     ` Michael Zaidman
2024-01-16 21:34 ` Michael Zaidman
2024-01-16 21:43   ` Daniel Beer
2024-01-17 20:43     ` Michael Zaidman
2024-01-20 18:41       ` Michael Zaidman
2024-01-20 22:13         ` Daniel Beer
2024-01-21  9:12           ` Michael Zaidman
2024-01-28 22:07             ` Michael Zaidman
2024-01-31  6:28               ` Daniel Beer
2024-01-31 15:48                 ` Michael Zaidman
     [not found]                   ` <041c7445-fd59-4615-bb9a-7958b93113e8@christina-quast.de>
2024-02-02  9:04                     ` Michael Zaidman
2024-02-10 22:03                       ` Michael Zaidman
2024-02-01 11:07   ` Christina Quast

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=ZZSDTes35xnlFlX3@michael-VirtualBox \
    --to=michael.zaidman@gmail.com \
    --cc=contact@christina-quast.de \
    --cc=daniel.beer@igorinstitute.com \
    --cc=equinox@diac24.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jikos@kernel.org \
    --cc=johan@kernel.org \
    --cc=linux-serial@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox