Re: [PATCH V2 00/19] irqchip: crossbar: driver fixes

2014-06-13 Thread Jason Cooper
On Thu, Jun 12, 2014 at 05:23:08PM +0530, Sricharan R wrote:
 This series does some cleanups, fixes for handling two interrupts
 getting mapped twice to same crossbar and provides support for
 hardwired IRQ and crossbar definitions.
 
 On certain platforms such as DRA7, SPIs 0, 1, 2, 3, 5, 6, 10,
 131, 132, 133 are direct wired to hardware blocks bypassing
 crossbar. This quirky implementation is *NOT* supposed to be the
 expectation of crossbar hardware usage. This series adds support
 to represent such hard-wired irqs through DT and avoid generic
 allocation/programming of crossbar in the driver.
 
 This way of supporting hard-wired irqs was a result of
 the below discussions.
 http://www.spinics.net/lists/arm-kernel/msg329946.html
 
 Based on 3.15 mainline.
 
 All the patches are available here
  g...@github.com:Sricharanti/sricharan.git crossbar_updates
 
 The fixes series[1] earlier posted is merged in to this.
 [1] http://www.spinics.net/lists/arm-kernel/msg328273.html
 
 [V2] Merged the above series and rebased on 3.15 mainline
 
 Nishanth Menon (16):
   irqchip: crossbar: dont use '0' to mark reserved interrupts
   irqchip: crossbar: check for premapped crossbar before allocating
   irqchip: crossbar: Skip some irqs from getting mapped to crossbar
   irqchip: crossbar: Initialise the crossbar with a safe value
   irqchip: crossbar: Change allocation logic by reversing search for
 free irqs
   irqchip: crossbar: remove IS_ERR_VALUE check
   irqchip: crossbar: fix sparse warnings
   irqchip: crossbar: fix checkpatch warning
   irqchip: crossbar: fix kerneldoc warning
   irqchip: crossbar: fix memory leak incase of invalid entry
   irqchip: crossbar: return proper error value
   irqchip: crossbar: change the goto naming
   irqchip: crossbar: introduce ti,max-crossbar-sources to identify
 valid crossbar mapping
   irqchip: crossbar: introduce centralized check for crossbar write
   Documentation: dt: OMAP: crossbar: add description for interrupt
 consumer
   irqchip: crossbar allow for quirky hardware with direct hardwiring of
 GIC
 
 Rajendra Nayak (1):
   irqchip: crossbar: DRA7: Fix unused crossbar list
 
 Sricharan R (2):
   irqchip: crossbar: set cb pointer to null in case of error
   irqchip: crossbar: Add kerneldoc for crossbar_domain_unmap callback

Also, I just noticed this when I decided to look at the history of this
driver: Please format the subject lines like so:

  irqchip: crossbar: Set cb pointer ...
 ^
 |
 \-- note the capitalization

thx,

Jason.
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 00/19] irqchip: crossbar: driver fixes

2014-06-13 Thread Joe Perches
On Fri, 2014-06-13 at 11:01 -0400, Jason Cooper wrote:
 Please format the subject lines like so:
 
   irqchip: crossbar: Set cb pointer ...
  ^
  |
  \-- note the capitalization

I suggest you don't make this a rule and focus
on more important stuff instead.

Nobody is going to write tools that parse the
changelogs by git log --format=%s for case
sensitivity.

As is, it's about half/half.

$ git log --format=%s --no-merges drivers/irqchip/ | \
  grep ^irqchip: | cut -f3- -d:

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 00/19] irqchip: crossbar: driver fixes

2014-06-13 Thread Jason Cooper
On Fri, Jun 13, 2014 at 09:14:34AM -0700, Joe Perches wrote:
 On Fri, 2014-06-13 at 11:01 -0400, Jason Cooper wrote:
  Please format the subject lines like so:
  
irqchip: crossbar: Set cb pointer ...
   ^
   |
   \-- note the capitalization
 
 I suggest you don't make this a rule and focus
 on more important stuff instead.

It's not my rule.  ;-)

 Nobody is going to write tools that parse the
 changelogs by git log --format=%s for case
 sensitivity.
 
 As is, it's about half/half.
 
 $ git log --format=%s --no-merges drivers/irqchip/ | \
   grep ^irqchip: | cut -f3- -d:

Yeah, we haven't been perfect in the past, and a lot of stuff was merged
without going though tglx's tree.  That's why I was asked to help out.

Either I'm fixing up the subject line as I apply the patch, or, I kindly
ask the submitter to fix it up during a re-spin.

thx,

Jason.
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 00/19] irqchip: crossbar: driver fixes

2014-06-13 Thread Joe Perches
On Fri, 2014-06-13 at 12:37 -0400, Jason Cooper wrote:
 On Fri, Jun 13, 2014 at 09:14:34AM -0700, Joe Perches wrote:
  On Fri, 2014-06-13 at 11:01 -0400, Jason Cooper wrote:
   Please format the subject lines like so:
   
 irqchip: crossbar: Set cb pointer ...
^
|
\-- note the capitalization
  
  I suggest you don't make this a rule and focus
  on more important stuff instead.
 
 It's not my rule.  ;-)

Who's rule is it then?

Documentation/SubmittingPatches simply says:

The canonical patch subject line is:

Subject: [PATCH 001/123] subsystem: summary phrase

It doesn't say anything about capitalization.

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 00/19] irqchip: crossbar: driver fixes

2014-06-13 Thread Jason Cooper
On Fri, Jun 13, 2014 at 09:48:24AM -0700, Joe Perches wrote:
 On Fri, 2014-06-13 at 12:37 -0400, Jason Cooper wrote:
  On Fri, Jun 13, 2014 at 09:14:34AM -0700, Joe Perches wrote:
   On Fri, 2014-06-13 at 11:01 -0400, Jason Cooper wrote:
Please format the subject lines like so:

  irqchip: crossbar: Set cb pointer ...
 ^
 |
 \-- note the capitalization
   
   I suggest you don't make this a rule and focus
   on more important stuff instead.
  
  It's not my rule.  ;-)
 
 Who's rule is it then?

Thomas'

thx,

Jason.
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 00/19] irqchip: crossbar: driver fixes

2014-06-13 Thread Thomas Gleixner
On Fri, 13 Jun 2014, Jason Cooper wrote:
 On Fri, Jun 13, 2014 at 09:48:24AM -0700, Joe Perches wrote:
  On Fri, 2014-06-13 at 12:37 -0400, Jason Cooper wrote:
   On Fri, Jun 13, 2014 at 09:14:34AM -0700, Joe Perches wrote:
On Fri, 2014-06-13 at 11:01 -0400, Jason Cooper wrote:
 Please format the subject lines like so:
 
   irqchip: crossbar: Set cb pointer ...
  ^
  |
  \-- note the capitalization

I suggest you don't make this a rule and focus
on more important stuff instead.

Says the one, who pesters people about typos in changelogs

WTF? Jason is doing a great job in reviewing and he knows what to
concentrate on.

   It's not my rule.  ;-)
  
  Who's rule is it then?
 
 Thomas'

Sentences start with an upper case letter. Our brain is trained on
that rule when parsing a line.

So for people who actually review patches by reading them instead of
running a spell checker, consistent formatting more important than
avoiding the random typo, which our brain just blends out in most of
the cases. Unfortunately also when the typo is in actual code :(

Thanks,

tglx






   

   






--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH V2 00/19] irqchip: crossbar: driver fixes

2014-06-13 Thread Joe Perches
On Fri, 2014-06-13 at 22:38 +0200, Thomas Gleixner wrote:
 On Fri, 13 Jun 2014, Jason Cooper wrote:
  On Fri, Jun 13, 2014 at 09:48:24AM -0700, Joe Perches wrote:
   On Fri, 2014-06-13 at 12:37 -0400, Jason Cooper wrote:
On Fri, Jun 13, 2014 at 09:14:34AM -0700, Joe Perches wrote:
 On Fri, 2014-06-13 at 11:01 -0400, Jason Cooper wrote:
  Please format the subject lines like so:
  
irqchip: crossbar: Set cb pointer ...
   ^
   |
   \-- note the capitalization
 
 I suggest you don't make this a rule and focus
 on more important stuff instead.

[elided the bit that describes what a patch subject looks like]

Documentation/SubmittingPatches simply says:

The canonical patch subject line is:

Subject: [PATCH 001/123] subsystem: summary phrase

It doesn't say anything about capitalization.

 Sentences start with an upper case letter. Our brain is trained on
 that rule when parsing a line.

shrug  I don't think patch subjects are sentences.
The docs call them phrases.

 So for people who actually review patches by reading them instead of
 running a spell checker, consistent formatting more important than
 avoiding the random typo, which our brain just blends out in most of
 the cases. Unfortunately also when the typo is in actual code :(

That part about the code is truth.

Anyway, how you spend your time is certainly up to you.
Do what makes you happy.

But if you want this specific form for your patches,
please just document it somewhere in the kernel tree.

I think that relatively commit log subjects are generally
easy to parse as-is and don't need more strictures.

I think it akin to british/american spelling uses and
I and i.  I just don't care which people use.

I did propose a mechanism to nudge people when proposed
patch subjects don't fit some specific maintainer's idea
of proper.

https://lkml.org/lkml/2010/11/16/245

cheers, Joe




--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html