All of lore.kernel.org
 help / color / mirror / Atom feed
* Sync SiByte system code to the new DUART driver
@ 2007-08-02 10:58 Imre Kaloz
  2007-08-02 11:13 ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: Imre Kaloz @ 2007-08-02 10:58 UTC (permalink / raw)
  To: linux-mips@linux-mips.org

The new upstream SiByte DUART driver uses a different config option then
the old one, so the SiByte target doesn't compile currently.
This patch fixes the problem.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

---

diff --git a/arch/mips/sibyte/cfe/console.c b/arch/mips/sibyte/cfe/console.c
index c6ec748..4cec9d7 100644
--- a/arch/mips/sibyte/cfe/console.c
+++ b/arch/mips/sibyte/cfe/console.c
@@ -46,7 +46,7 @@ static int cfe_console_setup(struct console *cons, char *str)
  	/* XXXKW think about interaction with 'console=' cmdline arg */
  	/* If none of the console options are configured, the build will break. */
  	if (cfe_getenv("BOOT_CONSOLE", consdev, 32) >= 0) {
-#ifdef CONFIG_SIBYTE_SB1250_DUART
+#ifdef CONFIG_SERIAL_SB1250_DUART
  		if (!strcmp(consdev, "uart0")) {
  			setleds("u0cn");
  		} else if (!strcmp(consdev, "uart1")) {

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

* Re: Sync SiByte system code to the new DUART driver
  2007-08-02 10:58 Sync SiByte system code to the new DUART driver Imre Kaloz
@ 2007-08-02 11:13 ` Ralf Baechle
  2007-08-02 11:26   ` Maciej W. Rozycki
  0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2007-08-02 11:13 UTC (permalink / raw)
  To: Imre Kaloz; +Cc: linux-mips@linux-mips.org

On Thu, Aug 02, 2007 at 12:58:50PM +0200, Imre Kaloz wrote:

> The new upstream SiByte DUART driver uses a different config option then
> the old one, so the SiByte target doesn't compile currently.
> This patch fixes the problem.
> 
> Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

Hmm...  You just found the tip of the iceberg ...

$ git grep -w CONFIG_SIBYTE_SB1250_DUART | cat -
arch/mips/configs/bigsur_defconfig:CONFIG_SIBYTE_SB1250_DUART=y
arch/mips/configs/sb1250-swarm_defconfig:CONFIG_SIBYTE_SB1250_DUART=y
arch/mips/sibyte/bcm1480/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
arch/mips/sibyte/bcm1480/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
arch/mips/sibyte/cfe/console.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
arch/mips/sibyte/sb1250/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
arch/mips/sibyte/sb1250/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART

  Ralf

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

* Re: Sync SiByte system code to the new DUART driver
  2007-08-02 11:13 ` Ralf Baechle
@ 2007-08-02 11:26   ` Maciej W. Rozycki
  2007-08-02 11:29     ` Ralf Baechle
  2007-08-02 11:38     ` Imre Kaloz
  0 siblings, 2 replies; 5+ messages in thread
From: Maciej W. Rozycki @ 2007-08-02 11:26 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Imre Kaloz, linux-mips@linux-mips.org

On Thu, 2 Aug 2007, Ralf Baechle wrote:

> Hmm...  You just found the tip of the iceberg ...
> 
> $ git grep -w CONFIG_SIBYTE_SB1250_DUART | cat -
> arch/mips/configs/bigsur_defconfig:CONFIG_SIBYTE_SB1250_DUART=y
> arch/mips/configs/sb1250-swarm_defconfig:CONFIG_SIBYTE_SB1250_DUART=y
> arch/mips/sibyte/bcm1480/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
> arch/mips/sibyte/bcm1480/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
> arch/mips/sibyte/cfe/console.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
> arch/mips/sibyte/sb1250/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART
> arch/mips/sibyte/sb1250/irq.c:#ifdef CONFIG_SIBYTE_SB1250_DUART

 Most of that stuff does not work anymore anyway and now you risk link 
errors. ;-)  I do not think there is place for driver-related #ifdefs 
under arch/ anyway, the answer being platform devices.  Though chances are 
nobody might be bothered to ever implement them here.

 Also the #ifdefs in arch/mips/sibyte/cfe/console.c do not make sense to 
me.

  Maciej

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

* Re: Sync SiByte system code to the new DUART driver
  2007-08-02 11:26   ` Maciej W. Rozycki
@ 2007-08-02 11:29     ` Ralf Baechle
  2007-08-02 11:38     ` Imre Kaloz
  1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2007-08-02 11:29 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: Imre Kaloz, linux-mips@linux-mips.org

On Thu, Aug 02, 2007 at 12:26:22PM +0100, Maciej W. Rozycki wrote:

>  Most of that stuff does not work anymore anyway and now you risk link 
> errors. ;-)  I do not think there is place for driver-related #ifdefs 
> under arch/ anyway, the answer being platform devices.  Though chances are 
> nobody might be bothered to ever implement them here.
> 
>  Also the #ifdefs in arch/mips/sibyte/cfe/console.c do not make sense to 
> me.

Unfortunately you're right ...

  Ralf

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

* Re: Sync SiByte system code to the new DUART driver
  2007-08-02 11:26   ` Maciej W. Rozycki
  2007-08-02 11:29     ` Ralf Baechle
@ 2007-08-02 11:38     ` Imre Kaloz
  1 sibling, 0 replies; 5+ messages in thread
From: Imre Kaloz @ 2007-08-02 11:38 UTC (permalink / raw)
  To: Maciej W. Rozycki, Ralf Baechle; +Cc: linux-mips@linux-mips.org

On Thu, 02 Aug 2007 13:26:22 +0200, Maciej W. Rozycki  
<macro@linux-mips.org> wrote:

>  Most of that stuff does not work anymore anyway and now you risk link
> errors. ;-)  I do not think there is place for driver-related #ifdefs
> under arch/ anyway, the answer being platform devices.  Though chances  
> are
> nobody might be bothered to ever implement them here.
>
>  Also the #ifdefs in arch/mips/sibyte/cfe/console.c do not make sense to
> me.
>


True, but as I've said Ralf on IRC, I was fixing a bug rather then doing  
an overhaul. My TODO list for today is too long to save the world, but  
maybe I'll have time for that tomorrow ;)
I think the whole sibyte target should be cleaned up and changed to  
support runtime board detection like we do it on bcm47xx/53xx and  
ar231x/5312 in OpenWrt.


Imre

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

end of thread, other threads:[~2007-08-02 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 10:58 Sync SiByte system code to the new DUART driver Imre Kaloz
2007-08-02 11:13 ` Ralf Baechle
2007-08-02 11:26   ` Maciej W. Rozycki
2007-08-02 11:29     ` Ralf Baechle
2007-08-02 11:38     ` Imre Kaloz

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.