Re: [PATCH] Make ATNGW100 serial ports configurable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Haavard Skinnemoen
Date: Monday, October 13, 2008 - 3:27 am

Anders Blomdell <anders.blomdell@control.lth.se> wrote:

Yes, I do realize people want this kind of thing. But I also think
there's more than one way to do it, and while a Kconfig option might
make things easier while trying it out, I think it will cause
maintenance pains in the long run.


Yes, but it's not sensible to even offer the option of other ports when
the board just doesn't have them.


True...but it would take quite a bit of duplication, and you'll have to
sync up whenever the "main" setup.c changes.


Well, you could do it like that, but you could also just add another
postcore_initcall. The only hook which is really needed is the "setup"
part, and only if you have additional serial ports.

In fact, it's probably better to just add a weak definition for it
since not all expansion boards will need to override it.


Hmm...why would that be nicer exactly?

What _I_ think would be a nicer way to do it is to implement support
for flattened device trees and get rid of the board code entirely. Or
almost entirely; it depends on how complete we can make the device tree.

Haavard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Make ATNGW100 serial ports configurable, Anders Blomdell, (Fri Oct 10, 7:32 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Haavard Skinnemoen, (Fri Oct 10, 7:58 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Anders Blomdell, (Fri Oct 10, 8:48 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Haavard Skinnemoen, (Mon Oct 13, 3:27 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Anders Blomdell, (Mon Oct 13, 3:53 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Haavard Skinnemoen, (Mon Oct 13, 5:34 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Anders Blomdell, (Mon Oct 13, 6:03 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Haavard Skinnemoen, (Mon Oct 13, 6:33 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Anders Blomdell, (Mon Oct 13, 7:46 am)
Re: [PATCH] Make ATNGW100 serial ports configurable, Haavard Skinnemoen, (Mon Oct 13, 8:28 am)