linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ucb1x00 patches
@ 2009-10-06 16:32 Thomas Kunze
  2009-10-07  7:13 ` Lothar Waßmann
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Kunze @ 2009-10-06 16:32 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I posted these patches at linux-arm-kernel as part of the patchset 
"collie and SA1100 patches".
Could you please comment on them? I'd also like to know you opinion on 
moving ucb1x00-ts.c to
input/drivers/touchscreen.

Regards,
Thomas

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

* ucb1x00 patches
  2009-10-06 16:32 ucb1x00 patches Thomas Kunze
@ 2009-10-07  7:13 ` Lothar Waßmann
  2009-10-07  7:56   ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Lothar Waßmann @ 2009-10-07  7:13 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Thomas Kunze writes:
> Hi,
> 
> I posted these patches at linux-arm-kernel as part of the patchset 
> "collie and SA1100 patches".
> Could you please comment on them? I'd also like to know you opinion on 
> moving ucb1x00-ts.c to
> input/drivers/touchscreen.
> 
What about the ucb1400_ts.c which is already there?


Lothar Wa?mann
-- 
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Gesch?ftsf?hrer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________

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

* ucb1x00 patches
  2009-10-07  7:13 ` Lothar Waßmann
@ 2009-10-07  7:56   ` Marek Vasut
  2009-10-07  8:12     ` Russell King - ARM Linux
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2009-10-07  7:56 UTC (permalink / raw)
  To: linux-arm-kernel

Dne St 7. ??jna 2009 09:13:22 Lothar Wa?mann napsal(a):
> Hi,
> 
> Thomas Kunze writes:
> > Hi,
> >
> > I posted these patches at linux-arm-kernel as part of the patchset
> > "collie and SA1100 patches".
> > Could you please comment on them? I'd also like to know you opinion on
> > moving ucb1x00-ts.c to
> > input/drivers/touchscreen.
> 
> What about the ucb1400_ts.c which is already there?
> 

I'd be for unifying all the ucb drivers into a single one, but Russell was 
against it iirc.
> 
> Lothar Wa?mann
> 

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

* ucb1x00 patches
  2009-10-07  7:56   ` Marek Vasut
@ 2009-10-07  8:12     ` Russell King - ARM Linux
  2009-10-11 12:14       ` Pavel Machek
  0 siblings, 1 reply; 6+ messages in thread
From: Russell King - ARM Linux @ 2009-10-07  8:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Oct 07, 2009 at 09:56:42AM +0200, Marek Vasut wrote:
> Dne St 7. ??jna 2009 09:13:22 Lothar Wa?mann napsal(a):
> > Hi,
> > 
> > Thomas Kunze writes:
> > > Hi,
> > >
> > > I posted these patches at linux-arm-kernel as part of the patchset
> > > "collie and SA1100 patches".
> > > Could you please comment on them? I'd also like to know you opinion on
> > > moving ucb1x00-ts.c to
> > > input/drivers/touchscreen.
> > 
> > What about the ucb1400_ts.c which is already there?
> > 
> 
> I'd be for unifying all the ucb drivers into a single one, but Russell was 
> against it iirc.

They're different beasts, and I really don't think they should be unified.
They have different register layouts, and different access arrangements,
which need different handling.

The result is that the UCB1200/UCB1300 support gets unnecessarily penalised
when UCB1400 is integrated - instead of merely taking a spinlock and
accessing the register, you have to ensure everything you do is in thread
context, including interrupt handlers.

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

* ucb1x00 patches
  2009-10-07  8:12     ` Russell King - ARM Linux
@ 2009-10-11 12:14       ` Pavel Machek
  2009-10-12 13:08         ` Russell King - ARM Linux
  0 siblings, 1 reply; 6+ messages in thread
From: Pavel Machek @ 2009-10-11 12:14 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed 2009-10-07 09:12:35, Russell King - ARM Linux wrote:
> On Wed, Oct 07, 2009 at 09:56:42AM +0200, Marek Vasut wrote:
> > Dne St 7. ????jna 2009 09:13:22 Lothar Wa??mann napsal(a):
> > > Hi,
> > > 
> > > Thomas Kunze writes:
> > > > Hi,
> > > >
> > > > I posted these patches at linux-arm-kernel as part of the patchset
> > > > "collie and SA1100 patches".
> > > > Could you please comment on them? I'd also like to know you opinion on
> > > > moving ucb1x00-ts.c to
> > > > input/drivers/touchscreen.
> > > 
> > > What about the ucb1400_ts.c which is already there?
> > > 
> > 
> > I'd be for unifying all the ucb drivers into a single one, but Russell was 
> > against it iirc.
> 
> They're different beasts, and I really don't think they should be unified.
> They have different register layouts, and different access arrangements,
> which need different handling.
> 
> The result is that the UCB1200/UCB1300 support gets unnecessarily penalised
> when UCB1400 is integrated - instead of merely taking a spinlock and
> accessing the register, you have to ensure everything you do is in thread
> context, including interrupt handlers.

Is it that bad?

If sharing makes sense on source-code level, that kind of penalty
should be acceptable. If it makes more eyes on the sources, it will
still be a win.
									Pavel


-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* ucb1x00 patches
  2009-10-11 12:14       ` Pavel Machek
@ 2009-10-12 13:08         ` Russell King - ARM Linux
  0 siblings, 0 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2009-10-12 13:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Oct 11, 2009 at 02:14:58PM +0200, Pavel Machek wrote:
> On Wed 2009-10-07 09:12:35, Russell King - ARM Linux wrote:
> > On Wed, Oct 07, 2009 at 09:56:42AM +0200, Marek Vasut wrote:
> > > Dne St 7. ????jna 2009 09:13:22 Lothar Wa??mann napsal(a):
> > > > Hi,
> > > > 
> > > > Thomas Kunze writes:
> > > > > Hi,
> > > > >
> > > > > I posted these patches at linux-arm-kernel as part of the patchset
> > > > > "collie and SA1100 patches".
> > > > > Could you please comment on them? I'd also like to know you opinion on
> > > > > moving ucb1x00-ts.c to
> > > > > input/drivers/touchscreen.
> > > > 
> > > > What about the ucb1400_ts.c which is already there?
> > > > 
> > > 
> > > I'd be for unifying all the ucb drivers into a single one, but Russell was 
> > > against it iirc.
> > 
> > They're different beasts, and I really don't think they should be unified.
> > They have different register layouts, and different access arrangements,
> > which need different handling.
> > 
> > The result is that the UCB1200/UCB1300 support gets unnecessarily penalised
> > when UCB1400 is integrated - instead of merely taking a spinlock and
> > accessing the register, you have to ensure everything you do is in thread
> > context, including interrupt handlers.
> 
> Is it that bad?
> 
> If sharing makes sense on source-code level, that kind of penalty
> should be acceptable. If it makes more eyes on the sources, it will
> still be a win.

That argument doesn't always apply.  It is only a win if you have lots
of people testing the code out on *both* chips, so that bugs are
discovered quickly.

The UCB1200/1300 support is stable and good.  Don't break it by totally
changing the way it works just for the sake of a wooley "more eyes must
be good" flimsy argument.

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

end of thread, other threads:[~2009-10-12 13:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-06 16:32 ucb1x00 patches Thomas Kunze
2009-10-07  7:13 ` Lothar Waßmann
2009-10-07  7:56   ` Marek Vasut
2009-10-07  8:12     ` Russell King - ARM Linux
2009-10-11 12:14       ` Pavel Machek
2009-10-12 13:08         ` Russell King - ARM Linux

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).