From: Bart Hartgers <bart.hartgers@gmail.com>
To: Greg KH <greg@kroah.com>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Ondrej Zary <linux@rainbow-software.org>,
ark3116_driver@auctionant.de
Subject: Re: New ark3116 driver - how to get included into kernel?
Date: Fri, 18 Sep 2009 14:15:57 +0200 [thread overview]
Message-ID: <7eb6a4d80909180515k48ee2197q8f6e5ff8933c4647@mail.gmail.com> (raw)
In-Reply-To: <20090918061529.GB7717@kroah.com>
Hi Greg,
Thanks for your reply.
2009/9/18 Greg KH <greg@kroah.com>:
> On Thu, Sep 17, 2009 at 02:52:29PM +0200, Bart Hartgers wrote:
>> (Sorry for sending an HTML-ized version of this mail before)
>>
>> Hi All,
>>
>> I managed to write an improved ark3116 driver after I figured out that
>> it is just an 16450 UART with some USB glue logic.
>>
>> The attached files can be compiled outside the kernel tree, and work
>> for 2.6.31. However, I would like this driver to (eventually) end up
>> in the kernel tree. In order to get there, who should I sent patches
>> against what? I've contributed code to the kernel before, but not in
>> the last 5 or so years, so I am a bit out of touch.
>
> Take a look at the file, Documentation/SubmittingPatches, it should
> describe what you need to do.
>
Thanks. But the question I had was more that I didn't know where to
put a new driver. In drivers/usb/serial, or perhaps in
drivers/staging. Anyway, if we are going to replace the existing
driver, it is obvious what the patch should be against.
>> Compared to the old ark3116 driver this one offers the following improvements:
>> - cts/rts handshake support
>> - break signalling
>> - line error detection
>
> Why can't you just send patches adding support for these features to the
> existing driver? It shouldn't be that much different between the two
> versions, right?
The difference is actually quite significant. The old driver is pretty
much a dumb parameterized replay of the windows usb-snoops. The new
driver actually "understands" the hardware. That's why I made a
completely new driver in the first place. A diff between the two is
ore or less the same as a complete replacing. I could try to minimize
the differences, but I would be surprised if more than 30% of the
lines will be shared, and most of those will be red tape, not actual
code. The patch will be hard to read anyhow.
>
> That's the preferred method, I'd like to not drop the existing one if at
> all possible.
>
Do you think it is worth the effort to minimize the diff, or should I
just replace ark3116.c by ark3116new.c?
Groeten,
Bart
> thanks,
>
> greg k-h
>
--
Bart Hartgers - New e-mail: bart.hartgers@gmail.com
next prev parent reply other threads:[~2009-09-18 12:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7eb6a4d80909170549k7a19eb01s8975fe2c5f230cee@mail.gmail.com>
2009-09-17 12:52 ` Bart Hartgers
2009-09-18 6:15 ` Greg KH
2009-09-18 12:15 ` Bart Hartgers [this message]
2009-09-18 12:55 ` Oliver Neukum
2009-09-18 16:18 ` Greg KH
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=7eb6a4d80909180515k48ee2197q8f6e5ff8933c4647@mail.gmail.com \
--to=bart.hartgers@gmail.com \
--cc=ark3116_driver@auctionant.de \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@rainbow-software.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
all inboxes | Powered by JetHome®