From: Tony Lindgren <tony@atomide.com>
To: Chris Hudson <chudson@kionix.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: Driver Merge Questions
Date: Tue, 3 Nov 2009 08:58:21 -0800 [thread overview]
Message-ID: <20091103165821.GG8981@atomide.com> (raw)
In-Reply-To: <4AF040D1.7020109@kionix.com>
* Chris Hudson <chudson@kionix.com> [091103 06:48]:
> Hello all,
>
> I've never submitted any software to Linux before, but I've been
> working on some new accelerometer drivers that should be ready for
> review soon (pending company approval). I've read lots of
> documentation on patch and driver submissions, but I still have some
> questions that I was hoping someone could help me find the answers
> to.
>
> 1- My drivers use i2c for hardware communications, miscdevice for
> IOCTLs, and input_dev for data and interrupt status outputs. Most
> of the other accelerometer drivers that I've looked at use similar
> designs and are located in drivers/hwmon, but I just wanted to
> confirm that this is the correct location currently.
Sounds correct.
> 2- I have done all of my hardware testing with OMAP development
> platforms, so I thought it would be best to send my patch
> submissions to this list for review. The hardware monitoring tree
> is listed in MAINTAINERS as an orphan, but I was planning on
> including lm-sensors@lm-sensors.org as well. If either of these
> assumptions is incorrect, please let me know.
Yes, please send the patches to both. Also, please run the patches
through scripts/checkpatch.pl --strict, and read the files under
Documentation/Submit* ;)
> 3- Should my patch set consist of source, header, kconfig, and
> makefile patches, or should I include my custom changes to mux.c,
> mux.h, and board-zoom2.c as well? The former are necessary for
> adding driver support, but the latter are specific for my hardware
> testing platform (which others may want to duplicate for testing
> purposes). I noticed that recent versions of board-zoom2.c are nice
> and clean, so it's probably not a good idea to wedge
> infrequently-used code in there with a bunch of #ifdefs. I just
> want to get an idea of what is generally included with a new driver.
Compile should work throughout the series for each patch to keep
git bisect working. To me it sounds like one patch for the driver,
and then one to enable the driver in some hardware.
Please not that we're reworking the mux code for omap3 to make it
easier to use. So please make the mux changes yet another patch.
> Any help or advice would be greatly appreciated.
Hope this helps!
Regards,
Tony
next prev parent reply other threads:[~2009-11-03 16:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 14:40 Driver Merge Questions Chris Hudson
2009-11-03 16:58 ` Tony Lindgren [this message]
2009-11-09 9:26 ` Amit Kucheria
2009-11-09 12:07 ` Amit Kucheria
2009-11-09 14:54 ` Chris Hudson
2009-11-09 17:09 ` Amit Kucheria
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=20091103165821.GG8981@atomide.com \
--to=tony@atomide.com \
--cc=chudson@kionix.com \
--cc=linux-omap@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