From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Ashish Jangam <Ashish.Jangam@kpitcummins.com>
Cc: "sameo@openedhand.com" <sameo@openedhand.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Dajun <dajun.chen@diasemi.com>,
"linaro-dev@lists.linaro.org" <linaro-dev@lists.linaro.org>
Subject: Re: [PATCH v3 01/11] MFD: DA9052 MFD core module
Date: Tue, 9 Aug 2011 23:52:53 +0900 [thread overview]
Message-ID: <20110809145252.GC15861@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <C3AE124F08223B42BC95AEB82F0F6CEDC805@KCHJEXMB02.kpit.com>
On Tue, Aug 09, 2011 at 08:45:47AM +0000, Ashish Jangam wrote:
> > Could do with blank lines between blocks. Though looking at the code
> > here I don't understand why these are compile options at all, or if they
> > need to be compile options for some reason why they're not independantly
> > selectable?
> DA9052 PMIC chip id may get OTP therefore chip id cannot be used as
> a distinguishing factor. Hence these compile time options were introduced.
> DA9053 is a higher version of DA9052 therefore not independently selectable.
> This means that there can be either DA9052 or DA9053 on system. I need to correct
> this Kconfig to take care of this.
No, this is not acceptable in the kernel. One kernel can support many
different boards so you need to be able to compile support for all chips
in simultaneously. If you can't identify based on the hardware you need
to rely on the device being registered correctly by the user.
> > This should be runtime detected based on the device name, either from
> > the device registration or by reading back chip identification.
> As said above getting chip info will not work in DA9053/53 case. Also DA9052 code
> works for DA9053 except for few minor changes in MFD and regulator module.
> In this case registering different device will also require a preprocessor directive
> Or separate DA9053 file therefore this option was not opt.
No, this is not acceptable. One kernel build should be able to support
many different boards. Like I said in my quote above you need to either
use the device registration or chip registers - if chip registers are
not suitable I guess that means you need to use the device registration.
There are a large number of examples of this in the kernel.
I know the Linaro guys have offered to help you out with this stuff, can
you please work with them? You are obviously experiencing a lot of
difficulties with understanding the requirements and standards for
getting your code into the standard kernel, they really know what
they're doing.
prev parent reply other threads:[~2011-08-09 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 13:53 [PATCH v3 01/11] MFD: DA9052 MFD core module ashishj3
2011-08-06 13:38 ` Mark Brown
2011-08-09 8:45 ` Ashish Jangam
2011-08-09 14:52 ` Mark Brown [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=20110809145252.GC15861@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=Ashish.Jangam@kpitcummins.com \
--cc=dajun.chen@diasemi.com \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@openedhand.com \
/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