All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Opensource [Steve Twiss]" <stwiss.opensource@diasemi.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: LINUXKERNEL <linux-kernel@vger.kernel.org>,
	Samuel Ortiz <sameo@linux.intel.com>,
	Alessandro Zummo <a.zummo@towertech.it>,
	DEVICETREE <devicetree@vger.kernel.org>,
	David Dajun Chen <david.chen@diasemi.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	LINUXINPUT <linux-input@vger.kernel.org>,
	LINUXWATCHDOG <linux-watchdog@vger.kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Pawel Moll <pawel.moll@arm.com>,
	RTCLINUX <rtc-linux@googlegroups.com>,
	Rob Herring <robh+dt@kernel.org>,
	Support Opensource <Support.Opensource@diasemi.com>,
	Wim Van Sebroeck <wim@iguana.be>
Subject: RE: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
Date: Thu, 11 Jun 2015 09:27:45 +0000	[thread overview]
Message-ID: <6ED8E3B22081A4459DAC7699F3695FB7014B22F4DC@SW-EX-MBX02.diasemi.com> (raw)
In-Reply-To: <20150611085653.GG2982@x1>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2424 bytes --]

On 11 June 2015 09:57 Lee Jones wrote:

> To: Opensource [Steve Twiss]
> Subject: Re: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
> 
> > > > > diff --git a/include/linux/mfd/da9062/registers.h

[...]

> > > > > +#define DA9062AA_WRITE_MODE_SHIFT	6
> > > > > +#define DA9062AA_WRITE_MODE_MASK	(0x01 << 6)
> > > >
> > > > For 1 << X, you should use BIT(X).
> > > >
> > >
> > > For the two comments above "Registers" and "Bit fields" and the (1<<x)
> > > definitions ...
> > >
> > > The whole of this file is automatically generated by our hardware designers
> > > I would prefer it if the register definitions and bit fields are not altered using
> > > the #define BIT(nr) (1UL<<(nr)) macro and the comments removed because
> > > we have scripts that can be used to check this file automatically.
> > >
> > > Also if the register map is ever updated, then it will be easier for me to diff
> > > the new delivered register and bit field definitions with the old one.
> > >
> > > My preference would be not to change this header file.
> > >
> > > [...]
> >
> > If these last two things are a problem can you please let me know.

HI Lee,

Thanks for replying so quickly.

> I'm still not particularly happy with this.  Can yo speak to your H/W
> guys and get them to change their scripts to output sensible header
> files?

Ah. Ok. 

For our side, the generated headers might not just be used for Linux. I've
just discussed this with my colleagues and they will need it to remain.
So I guess internally we will keep the headers like this, but as it enters
my submission process I can change it for the Linux community.
 
> To be honest, it's probably not a blocker for acceptance, but if someone
> writes a patch next week to change all of the (0x01 << X) lines to
> start using the BIT() macro, I will accept it.  Better to influenced
> your guys so you are not overly inconvenienced.

Yep: I will change this BIT() macro for the submissions in future.
Depending on the next step, I will send a patch to this or update the submission
if there are further comments on this patch set.

> FWIW, when upstreaming code, the excuse "someone else wrote it", has
> never been a good one to use on the lists.   Believe me, I've
> tried. ;)

heh okay :)

Regards,
Steve

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

WARNING: multiple messages have this Message-ID (diff)
From: "Opensource [Steve Twiss]" <stwiss.opensource@diasemi.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: LINUXKERNEL <linux-kernel@vger.kernel.org>,
	Samuel Ortiz <sameo@linux.intel.com>,
	Alessandro Zummo <a.zummo@towertech.it>,
	DEVICETREE <devicetree@vger.kernel.org>,
	David Dajun Chen <david.chen@diasemi.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	LINUXINPUT <linux-input@vger.kernel.org>,
	LINUXWATCHDOG <linux-watchdog@vger.kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Pawel Moll <pawel.moll@arm.com>,
	RTCLINUX <rtc-linux@googlegroups.com>,
	Rob Herring <robh+dt@kernel.org>,
	Support Opensource <Support.Opensource@diasemi.com>,
	Wim Van Sebroeck <wim@iguana.be>
Subject: [rtc-linux] RE: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
Date: Thu, 11 Jun 2015 09:27:45 +0000	[thread overview]
Message-ID: <6ED8E3B22081A4459DAC7699F3695FB7014B22F4DC@SW-EX-MBX02.diasemi.com> (raw)
In-Reply-To: <20150611085653.GG2982@x1>

On 11 June 2015 09:57 Lee Jones wrote:

> To: Opensource [Steve Twiss]
> Subject: Re: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
> 
> > > > > diff --git a/include/linux/mfd/da9062/registers.h

[...]

> > > > > +#define DA9062AA_WRITE_MODE_SHIFT	6
> > > > > +#define DA9062AA_WRITE_MODE_MASK	(0x01 << 6)
> > > >
> > > > For 1 << X, you should use BIT(X).
> > > >
> > >
> > > For the two comments above "Registers" and "Bit fields" and the (1<<x)
> > > definitions ...
> > >
> > > The whole of this file is automatically generated by our hardware designers
> > > I would prefer it if the register definitions and bit fields are not altered using
> > > the #define BIT(nr) (1UL<<(nr)) macro and the comments removed because
> > > we have scripts that can be used to check this file automatically.
> > >
> > > Also if the register map is ever updated, then it will be easier for me to diff
> > > the new delivered register and bit field definitions with the old one.
> > >
> > > My preference would be not to change this header file.
> > >
> > > [...]
> >
> > If these last two things are a problem can you please let me know.

HI Lee,

Thanks for replying so quickly.

> I'm still not particularly happy with this.  Can yo speak to your H/W
> guys and get them to change their scripts to output sensible header
> files?

Ah. Ok. 

For our side, the generated headers might not just be used for Linux. I've
just discussed this with my colleagues and they will need it to remain.
So I guess internally we will keep the headers like this, but as it enters
my submission process I can change it for the Linux community.
 
> To be honest, it's probably not a blocker for acceptance, but if someone
> writes a patch next week to change all of the (0x01 << X) lines to
> start using the BIT() macro, I will accept it.  Better to influenced
> your guys so you are not overly inconvenienced.

Yep: I will change this BIT() macro for the submissions in future.
Depending on the next step, I will send a patch to this or update the submission
if there are further comments on this patch set.

> FWIW, when upstreaming code, the excuse "someone else wrote it", has
> never been a good one to use on the lists.   Believe me, I've
> tried. ;)

heh okay :)

Regards,
Steve

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

WARNING: multiple messages have this Message-ID (diff)
From: "Opensource [Steve Twiss]" <stwiss.opensource-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>
To: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: LINUXKERNEL
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
	Alessandro Zummo
	<a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org>,
	DEVICETREE <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	David Dajun Chen
	<david.chen-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>,
	Dmitry Torokhov
	<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Ian Campbell
	<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
	Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	LINUXINPUT <linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	LINUXWATCHDOG
	<linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
	RTCLINUX <rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Support Opensource
	<Support.Opensource-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>,
	Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
Subject: RE: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
Date: Thu, 11 Jun 2015 09:27:45 +0000	[thread overview]
Message-ID: <6ED8E3B22081A4459DAC7699F3695FB7014B22F4DC@SW-EX-MBX02.diasemi.com> (raw)
In-Reply-To: <20150611085653.GG2982@x1>

On 11 June 2015 09:57 Lee Jones wrote:

> To: Opensource [Steve Twiss]
> Subject: Re: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
> 
> > > > > diff --git a/include/linux/mfd/da9062/registers.h

[...]

> > > > > +#define DA9062AA_WRITE_MODE_SHIFT	6
> > > > > +#define DA9062AA_WRITE_MODE_MASK	(0x01 << 6)
> > > >
> > > > For 1 << X, you should use BIT(X).
> > > >
> > >
> > > For the two comments above "Registers" and "Bit fields" and the (1<<x)
> > > definitions ...
> > >
> > > The whole of this file is automatically generated by our hardware designers
> > > I would prefer it if the register definitions and bit fields are not altered using
> > > the #define BIT(nr) (1UL<<(nr)) macro and the comments removed because
> > > we have scripts that can be used to check this file automatically.
> > >
> > > Also if the register map is ever updated, then it will be easier for me to diff
> > > the new delivered register and bit field definitions with the old one.
> > >
> > > My preference would be not to change this header file.
> > >
> > > [...]
> >
> > If these last two things are a problem can you please let me know.

HI Lee,

Thanks for replying so quickly.

> I'm still not particularly happy with this.  Can yo speak to your H/W
> guys and get them to change their scripts to output sensible header
> files?

Ah. Ok. 

For our side, the generated headers might not just be used for Linux. I've
just discussed this with my colleagues and they will need it to remain.
So I guess internally we will keep the headers like this, but as it enters
my submission process I can change it for the Linux community.
 
> To be honest, it's probably not a blocker for acceptance, but if someone
> writes a patch next week to change all of the (0x01 << X) lines to
> start using the BIT() macro, I will accept it.  Better to influenced
> your guys so you are not overly inconvenienced.

Yep: I will change this BIT() macro for the submissions in future.
Depending on the next step, I will send a patch to this or update the submission
if there are further comments on this patch set.

> FWIW, when upstreaming code, the excuse "someone else wrote it", has
> never been a good one to use on the lists.   Believe me, I've
> tried. ;)

heh okay :)

Regards,
Steve


WARNING: multiple messages have this Message-ID (diff)
From: "Opensource [Steve Twiss]" <stwiss.opensource@diasemi.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: LINUXKERNEL <linux-kernel@vger.kernel.org>,
	Samuel Ortiz <sameo@linux.intel.com>,
	Alessandro Zummo <a.zummo@towertech.it>,
	DEVICETREE <devicetree@vger.kernel.org>,
	David Dajun Chen <david.chen@diasemi.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	LINUXINPUT <linux-input@vger.kernel.org>,
	LINUXWATCHDOG <linux-watchdog@vger.kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Pawel Moll <pawel.moll@arm.com>,
	RTCLINUX <rtc-linux@googlegroups.com>,
	Rob Herring <robh+dt@kernel.org>,
	Support Opensource <Support.Opensource@diasemi.com>,
	Wim Van Sebroeck <wim@iguana.be>
Subject: RE: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
Date: Thu, 11 Jun 2015 09:27:45 +0000	[thread overview]
Message-ID: <6ED8E3B22081A4459DAC7699F3695FB7014B22F4DC@SW-EX-MBX02.diasemi.com> (raw)
In-Reply-To: <20150611085653.GG2982@x1>

On 11 June 2015 09:57 Lee Jones wrote:

> To: Opensource [Steve Twiss]
> Subject: Re: [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver
> 
> > > > > diff --git a/include/linux/mfd/da9062/registers.h

[...]

> > > > > +#define DA9062AA_WRITE_MODE_SHIFT	6
> > > > > +#define DA9062AA_WRITE_MODE_MASK	(0x01 << 6)
> > > >
> > > > For 1 << X, you should use BIT(X).
> > > >
> > >
> > > For the two comments above "Registers" and "Bit fields" and the (1<<x)
> > > definitions ...
> > >
> > > The whole of this file is automatically generated by our hardware designers
> > > I would prefer it if the register definitions and bit fields are not altered using
> > > the #define BIT(nr) (1UL<<(nr)) macro and the comments removed because
> > > we have scripts that can be used to check this file automatically.
> > >
> > > Also if the register map is ever updated, then it will be easier for me to diff
> > > the new delivered register and bit field definitions with the old one.
> > >
> > > My preference would be not to change this header file.
> > >
> > > [...]
> >
> > If these last two things are a problem can you please let me know.

HI Lee,

Thanks for replying so quickly.

> I'm still not particularly happy with this.  Can yo speak to your H/W
> guys and get them to change their scripts to output sensible header
> files?

Ah. Ok. 

For our side, the generated headers might not just be used for Linux. I've
just discussed this with my colleagues and they will need it to remain.
So I guess internally we will keep the headers like this, but as it enters
my submission process I can change it for the Linux community.
 
> To be honest, it's probably not a blocker for acceptance, but if someone
> writes a patch next week to change all of the (0x01 << X) lines to
> start using the BIT() macro, I will accept it.  Better to influenced
> your guys so you are not overly inconvenienced.

Yep: I will change this BIT() macro for the submissions in future.
Depending on the next step, I will send a patch to this or update the submission
if there are further comments on this patch set.

> FWIW, when upstreaming code, the excuse "someone else wrote it", has
> never been a good one to use on the lists.   Believe me, I've
> tried. ;)

heh okay :)

Regards,
Steve


  reply	other threads:[~2015-06-11  9:28 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19 13:10 [PATCH V3 0/4] da9062: DA9062 driver submission S Twiss
2015-05-19 13:10 ` S Twiss
2015-05-19 13:10 ` [rtc-linux] " S Twiss
2015-05-19 13:10 ` [PATCH V3 4/4] devicetree: da9062: Add bindings for DA9062 driver S Twiss
2015-05-19 13:10   ` S Twiss
2015-05-19 13:10   ` [rtc-linux] " S Twiss
2015-05-19 13:10 ` [PATCH V3 1/4] mfd: da9062: DA9062 MFD core driver S Twiss
2015-05-19 13:10   ` S Twiss
2015-05-19 13:10   ` [rtc-linux] " S Twiss
2015-05-26 16:10   ` Lee Jones
2015-05-26 16:10     ` Lee Jones
2015-05-26 16:10     ` Lee Jones
2015-05-26 16:10     ` [rtc-linux] " Lee Jones
2015-05-28 12:52     ` Opensource [Steve Twiss]
2015-05-28 12:52       ` Opensource [Steve Twiss]
2015-05-28 12:52       ` Opensource [Steve Twiss]
2015-05-28 12:52       ` [rtc-linux] " Opensource [Steve Twiss]
2015-06-11  8:27     ` Opensource [Steve Twiss]
2015-06-11  8:27       ` Opensource [Steve Twiss]
2015-06-11  8:27       ` [rtc-linux] " Opensource [Steve Twiss]
2015-06-11  8:50       ` Lee Jones
2015-06-11  8:50         ` Lee Jones
2015-06-11  8:50         ` [rtc-linux] " Lee Jones
2015-06-11  8:56       ` Lee Jones
2015-06-11  8:56         ` Lee Jones
2015-06-11  8:56         ` [rtc-linux] " Lee Jones
2015-06-11  9:27         ` Opensource [Steve Twiss] [this message]
2015-06-11  9:27           ` Opensource [Steve Twiss]
2015-06-11  9:27           ` Opensource [Steve Twiss]
2015-06-11  9:27           ` [rtc-linux] " Opensource [Steve Twiss]
2015-06-11 21:46           ` Alexandre Belloni
2015-06-11 21:46             ` Alexandre Belloni
2015-06-29  8:01         ` Opensource [Steve Twiss]
2015-06-29  8:01           ` Opensource [Steve Twiss]
2015-06-29  8:01           ` [rtc-linux] " Opensource [Steve Twiss]
2015-07-01  8:02           ` Lee Jones
2015-07-01  8:02             ` Lee Jones
2015-07-01  8:02             ` Lee Jones
2015-07-01  8:02             ` [rtc-linux] " Lee Jones
2015-05-19 13:10 ` [PATCH V3 2/4] regulator: da9062: DA9062 regulator driver S Twiss
2015-05-19 13:10   ` [rtc-linux] " S Twiss
2015-05-21 12:04   ` Mark Brown
2015-05-21 12:04     ` [rtc-linux] " Mark Brown
2015-05-21 13:48     ` Opensource [Steve Twiss]
2015-05-21 13:48       ` [rtc-linux] " Opensource [Steve Twiss]
2015-05-19 13:10 ` [PATCH V3 3/4] watchdog: da9062: DA9062 watchdog driver S Twiss
2015-05-19 13:10   ` [rtc-linux] " S Twiss
2015-05-20 20:30   ` Guenter Roeck
2015-05-20 20:30     ` Guenter Roeck
2015-05-20 20:30     ` [rtc-linux] " Guenter Roeck
2015-05-21  7:15     ` Opensource [Steve Twiss]
2015-05-21  7:15       ` Opensource [Steve Twiss]
2015-05-21  7:15       ` [rtc-linux] " Opensource [Steve Twiss]

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=6ED8E3B22081A4459DAC7699F3695FB7014B22F4DC@SW-EX-MBX02.diasemi.com \
    --to=stwiss.opensource@diasemi.com \
    --cc=Support.Opensource@diasemi.com \
    --cc=a.zummo@towertech.it \
    --cc=broonie@kernel.org \
    --cc=david.chen@diasemi.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=rtc-linux@googlegroups.com \
    --cc=sameo@linux.intel.com \
    --cc=wim@iguana.be \
    /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.