linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] unset twsi option3 for gconfig as well
@ 2013-10-13 23:27 Roel Kluin
  2013-10-14  7:08 ` Linus Walleij
  0 siblings, 1 reply; 9+ messages in thread
From: Roel Kluin @ 2013-10-13 23:27 UTC (permalink / raw)
  To: Linus Walleij, Grant Likely, Rob Herring, linux-kernel, devicetree
  Cc: Roel Kluin

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
 drivers/pinctrl/mvebu/pinctrl-dove.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/mvebu/pinctrl-dove.c b/drivers/pinctrl/mvebu/pinctrl-dove.c
index 29f7e4f..360b9b2 100644
--- a/drivers/pinctrl/mvebu/pinctrl-dove.c
+++ b/drivers/pinctrl/mvebu/pinctrl-dove.c
@@ -335,7 +335,7 @@ static int dove_twsi_ctrl_set(struct mvebu_mpp_ctrl *ctrl,
 	unsigned long gcfg2 = readl(DOVE_GLOBAL_CONFIG_2);
 
 	gcfg1 &= ~DOVE_TWSI_ENABLE_OPTION1;
-	gcfg2 &= ~(DOVE_TWSI_ENABLE_OPTION2 | DOVE_TWSI_ENABLE_OPTION2);
+	gcfg2 &= ~(DOVE_TWSI_ENABLE_OPTION2 | DOVE_TWSI_ENABLE_OPTION3);
 
 	switch (config) {
 	case 1:
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-13 23:27 [PATCH] unset twsi option3 for gconfig as well Roel Kluin
@ 2013-10-14  7:08 ` Linus Walleij
  2013-10-14  7:12   ` Thomas Petazzoni
  0 siblings, 1 reply; 9+ messages in thread
From: Linus Walleij @ 2013-10-14  7:08 UTC (permalink / raw)
  To: Roel Kluin, Sebastian Hesselbarth, Thomas Petazzoni
  Cc: Grant Likely, Rob Herring, linux-kernel, devicetree

Please include Thomas & Sebastian on the To: line when posting
patches to this driver.

On Mon, Oct 14, 2013 at 1:27 AM, Roel Kluin <roel.kluin@gmail.com> wrote:

> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>

When you don't write a commit message I have no chance to
classify this patch.

- Is this a serious regression?

- Is this something that does not affect anybody, just a cleanup?

Please consult the following document:
Documentation/SubmittingPatches

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-14  7:08 ` Linus Walleij
@ 2013-10-14  7:12   ` Thomas Petazzoni
  2013-10-14 18:43     ` Sebastian Hesselbarth
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2013-10-14  7:12 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Roel Kluin, Sebastian Hesselbarth, Grant Likely, Rob Herring,
	linux-kernel, devicetree

Dear Linus Walleij,

On Mon, 14 Oct 2013 09:08:11 +0200, Linus Walleij wrote:

> Please include Thomas & Sebastian on the To: line when posting
> patches to this driver.

... and you should quote the entire e-mail so it's easier for us to see
what it is all about :-))

Sebastian, the original e-mail is at
http://www.spinics.net/lists/kernel/msg1618853.html.

Since this is a Dove-specific pinctrl issue, and Sebastian is the one
knowing about Dove, I'll let him answer.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-14  7:12   ` Thomas Petazzoni
@ 2013-10-14 18:43     ` Sebastian Hesselbarth
  2013-10-14 19:02       ` Jason Cooper
  2013-10-16 11:35       ` Linus Walleij
  0 siblings, 2 replies; 9+ messages in thread
From: Sebastian Hesselbarth @ 2013-10-14 18:43 UTC (permalink / raw)
  To: Thomas Petazzoni, Linus Walleij
  Cc: Roel Kluin, linux-kernel, linux-arm-kernel

On 10/14/2013 09:12 AM, Thomas Petazzoni wrote:
> On Mon, 14 Oct 2013 09:08:11 +0200, Linus Walleij wrote:
>> Please include Thomas & Sebastian on the To: line when posting
>> patches to this driver.
>
> ... and you should quote the entire e-mail so it's easier for us to see
> what it is all about :-))
>
> Sebastian, the original e-mail is at
> http://www.spinics.net/lists/kernel/msg1618853.html.
>
> Since this is a Dove-specific pinctrl issue, and Sebastian is the one
> knowing about Dove, I'll let him answer.

Roel,

thanks for the typo catch! Next time please always describe what and
why your patches are doing. No matter how simple the fix is. Also,
try to narrow down Cc recipients, e.g. Grant, Rob, and devtree ML
love to not getting bugged with this.
(removed them from Cc, added LAKML)

@Linus:
I guess the typo is there from the beginning. You know a good way to
determine how far it should go back to -stable?

Please apply with following commit msg (or request a proper v2):

"""
This fixes a typo which left twsi config3 option enabled.
"""

and

Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

Sebastian

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-14 18:43     ` Sebastian Hesselbarth
@ 2013-10-14 19:02       ` Jason Cooper
  2013-10-14 19:09         ` Sebastian Hesselbarth
  2013-10-15  7:39         ` Thomas Petazzoni
  2013-10-16 11:35       ` Linus Walleij
  1 sibling, 2 replies; 9+ messages in thread
From: Jason Cooper @ 2013-10-14 19:02 UTC (permalink / raw)
  To: Sebastian Hesselbarth
  Cc: Thomas Petazzoni, Linus Walleij, Roel Kluin, linux-kernel,
	linux-arm-kernel

On Mon, Oct 14, 2013 at 08:43:49PM +0200, Sebastian Hesselbarth wrote:
...
> You know a good way to determine how far it should go back to -stable?

$ git blame -L 338,338 drivers/pinctrl/mvebu/pinctrl-dove.c
c9f95ced drivers/pinctrl/pinctrl-dove.c (Sebastian Hesselbarth
2012-09-13 17:41:44 +0200 338)   gcfg2 &= ~(DOVE_TWSI_ENABLE_OPTION2 |
DOVE_TWSI_ENABLE_OPTION2);

$ git tag --contains c9f95ced | grep '^v[23]\.[0-9][0-9]*' | sed -r -e
's/^(v[23]\.[0-9][0-9]*).*$/\1.x/' | sort -uV
v3.7.x
v3.8.x
v3.9.x
v3.10.x
v3.11.x
v3.12.x

so it should get flagged for v3.7 and newer.

Watch out for really old stuff, the regex above doesn't properly handle
v2.6.XX.x...

hth,

Jason.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-14 19:02       ` Jason Cooper
@ 2013-10-14 19:09         ` Sebastian Hesselbarth
  2013-10-14 19:15           ` Jason Cooper
  2013-10-15  7:39         ` Thomas Petazzoni
  1 sibling, 1 reply; 9+ messages in thread
From: Sebastian Hesselbarth @ 2013-10-14 19:09 UTC (permalink / raw)
  To: Jason Cooper
  Cc: Thomas Petazzoni, Linus Walleij, Roel Kluin, linux-kernel,
	linux-arm-kernel

On 10/14/2013 09:02 PM, Jason Cooper wrote:
> On Mon, Oct 14, 2013 at 08:43:49PM +0200, Sebastian Hesselbarth wrote:
> ...
>> You know a good way to determine how far it should go back to -stable?
>
> $ git blame -L 338,338 drivers/pinctrl/mvebu/pinctrl-dove.c
> c9f95ced drivers/pinctrl/pinctrl-dove.c (Sebastian Hesselbarth
> 2012-09-13 17:41:44 +0200 338)   gcfg2 &= ~(DOVE_TWSI_ENABLE_OPTION2 |
> DOVE_TWSI_ENABLE_OPTION2);
>
> $ git tag --contains c9f95ced | grep '^v[23]\.[0-9][0-9]*' | sed -r -e
> 's/^(v[23]\.[0-9][0-9]*).*$/\1.x/' | sort -uV
> v3.7.x
> v3.8.x
> v3.9.x
> v3.10.x
> v3.11.x
> v3.12.x
>
> so it should get flagged for v3.7 and newer.
>
> Watch out for really old stuff, the regex above doesn't properly handle
> v2.6.XX.x...

Ok, it is not in pre-v3.0, so the regex is fine. Thanks for the above -
and I also see git magic to resolve the rename of pinctrl-dove.c :)

If it originates from before the rename, I guess we need two different
-stable patches, one for pre-rename, one for post-rename?

Sebastian

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-14 19:09         ` Sebastian Hesselbarth
@ 2013-10-14 19:15           ` Jason Cooper
  0 siblings, 0 replies; 9+ messages in thread
From: Jason Cooper @ 2013-10-14 19:15 UTC (permalink / raw)
  To: Sebastian Hesselbarth
  Cc: Thomas Petazzoni, Linus Walleij, Roel Kluin, linux-kernel,
	linux-arm-kernel

On Mon, Oct 14, 2013 at 09:09:14PM +0200, Sebastian Hesselbarth wrote:
> On 10/14/2013 09:02 PM, Jason Cooper wrote:
> >On Mon, Oct 14, 2013 at 08:43:49PM +0200, Sebastian Hesselbarth wrote:
> >...
> >>You know a good way to determine how far it should go back to -stable?
> >
> >$ git blame -L 338,338 drivers/pinctrl/mvebu/pinctrl-dove.c
> >c9f95ced drivers/pinctrl/pinctrl-dove.c (Sebastian Hesselbarth
> >2012-09-13 17:41:44 +0200 338)   gcfg2 &= ~(DOVE_TWSI_ENABLE_OPTION2 |
> >DOVE_TWSI_ENABLE_OPTION2);
> >
> >$ git tag --contains c9f95ced | grep '^v[23]\.[0-9][0-9]*' | sed -r -e
> >'s/^(v[23]\.[0-9][0-9]*).*$/\1.x/' | sort -uV
> >v3.7.x
> >v3.8.x
> >v3.9.x
> >v3.10.x
> >v3.11.x
> >v3.12.x
> >
> >so it should get flagged for v3.7 and newer.
> >
> >Watch out for really old stuff, the regex above doesn't properly handle
> >v2.6.XX.x...
> 
> Ok, it is not in pre-v3.0, so the regex is fine. Thanks for the above -
> and I also see git magic to resolve the rename of pinctrl-dove.c :)

rename occurred in

  06763c7 pinctrl: mvebu: move to its own directory

which was added to v3.8

> If it originates from before the rename, I guess we need two different
> -stable patches, one for pre-rename, one for post-rename?

No, the -stable maintainers handle that.  If the patch is so complicated
that you need separate patches for the different stable trees, that's a
good indicator that it's not stable material. :-P

thx,

Jason.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-14 19:02       ` Jason Cooper
  2013-10-14 19:09         ` Sebastian Hesselbarth
@ 2013-10-15  7:39         ` Thomas Petazzoni
  1 sibling, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2013-10-15  7:39 UTC (permalink / raw)
  To: Jason Cooper
  Cc: Sebastian Hesselbarth, Linus Walleij, Roel Kluin, linux-kernel,
	linux-arm-kernel

Dear Jason Cooper,

On Mon, 14 Oct 2013 15:02:47 -0400, Jason Cooper wrote:
> On Mon, Oct 14, 2013 at 08:43:49PM +0200, Sebastian Hesselbarth wrote:
> ...
> > You know a good way to determine how far it should go back to -stable?
> 
> $ git blame -L 338,338 drivers/pinctrl/mvebu/pinctrl-dove.c
> c9f95ced drivers/pinctrl/pinctrl-dove.c (Sebastian Hesselbarth
> 2012-09-13 17:41:44 +0200 338)   gcfg2 &= ~(DOVE_TWSI_ENABLE_OPTION2 |
> DOVE_TWSI_ENABLE_OPTION2);
> 
> $ git tag --contains c9f95ced | grep '^v[23]\.[0-9][0-9]*' | sed -r -e
> 's/^(v[23]\.[0-9][0-9]*).*$/\1.x/' | sort -uV
> v3.7.x
> v3.8.x
> v3.9.x
> v3.10.x
> v3.11.x
> v3.12.x
> 
> so it should get flagged for v3.7 and newer.
> 
> Watch out for really old stuff, the regex above doesn't properly handle
> v2.6.XX.x...

The pinctrl driver for mvebu platforms was added in 3.7, if I remember
correctly.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] unset twsi option3 for gconfig as well
  2013-10-14 18:43     ` Sebastian Hesselbarth
  2013-10-14 19:02       ` Jason Cooper
@ 2013-10-16 11:35       ` Linus Walleij
  1 sibling, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2013-10-16 11:35 UTC (permalink / raw)
  To: Sebastian Hesselbarth
  Cc: Thomas Petazzoni, Roel Kluin, linux-kernel, linux-arm-kernel

On Mon, Oct 14, 2013 at 8:43 PM, Sebastian Hesselbarth
<sebastian.hesselbarth@gmail.com> wrote:

> @Linus:
> I guess the typo is there from the beginning. You know a good way to
> determine how far it should go back to -stable?

I just add CC: stable and the stable maintainers tend to figure
this out.

> Please apply with following commit msg (or request a proper v2):
>
> """
> This fixes a typo which left twsi config3 option enabled.
> """
>
> and
>
> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

OK patch applied and marked for stable.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-16 11:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-13 23:27 [PATCH] unset twsi option3 for gconfig as well Roel Kluin
2013-10-14  7:08 ` Linus Walleij
2013-10-14  7:12   ` Thomas Petazzoni
2013-10-14 18:43     ` Sebastian Hesselbarth
2013-10-14 19:02       ` Jason Cooper
2013-10-14 19:09         ` Sebastian Hesselbarth
2013-10-14 19:15           ` Jason Cooper
2013-10-15  7:39         ` Thomas Petazzoni
2013-10-16 11:35       ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).