* [PATCH V2] MIPS: Alchemy: fix build with SERIAL_8250=n
@ 2010-10-25 16:44 Manuel Lauss
2010-12-10 20:40 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Manuel Lauss @ 2010-10-25 16:44 UTC (permalink / raw)
To: Linux-MIPS, Ralf Baechle; +Cc: Manuel Lauss
In commit 7d172bfe ("Alchemy: Add UART PM methods") I introduced
platform PM methods which call a function of the 8250 driver;
this patch works around link failures when the kernel is built
without 8250 support.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
---
V2: added commit name to patch description as per Sergei's suggestion.
arch/mips/alchemy/common/platform.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common/platform.c
index 3691630..9e7814d 100644
--- a/arch/mips/alchemy/common/platform.c
+++ b/arch/mips/alchemy/common/platform.c
@@ -27,6 +27,7 @@
static void alchemy_8250_pm(struct uart_port *port, unsigned int state,
unsigned int old_state)
{
+#ifdef CONFIG_SERIAL_8250
switch (state) {
case 0:
if ((__raw_readl(port->membase + UART_MOD_CNTRL) & 3) != 3) {
@@ -49,6 +50,7 @@ static void alchemy_8250_pm(struct uart_port *port, unsigned int state,
serial8250_do_pm(port, state, old_state);
break;
}
+#endif
}
#define PORT(_base, _irq) \
--
1.7.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH V2] MIPS: Alchemy: fix build with SERIAL_8250=n
2010-10-25 16:44 [PATCH V2] MIPS: Alchemy: fix build with SERIAL_8250=n Manuel Lauss
@ 2010-12-10 20:40 ` Ralf Baechle
2010-12-10 20:56 ` Manuel Lauss
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2010-12-10 20:40 UTC (permalink / raw)
To: Manuel Lauss; +Cc: Linux-MIPS
On Mon, Oct 25, 2010 at 06:44:11PM +0200, Manuel Lauss wrote:
> In commit 7d172bfe ("Alchemy: Add UART PM methods") I introduced
> platform PM methods which call a function of the 8250 driver;
> this patch works around link failures when the kernel is built
> without 8250 support.
>
> Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
> ---
> V2: added commit name to patch description as per Sergei's suggestion.
Applied, thanks.
Though anything like a CONFIG_SERIAL_8250 in board code always strikes me
as wrong. What if the driver is built as a module? What if the kernel is
built without the driver, then later on the module is built separately and
then inserted?
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH V2] MIPS: Alchemy: fix build with SERIAL_8250=n
2010-12-10 20:40 ` Ralf Baechle
@ 2010-12-10 20:56 ` Manuel Lauss
0 siblings, 0 replies; 3+ messages in thread
From: Manuel Lauss @ 2010-12-10 20:56 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linux-MIPS
On Fri, Dec 10, 2010 at 9:40 PM, Ralf Baechle <ralf@linux-mips.org> wrote:
>
> On Mon, Oct 25, 2010 at 06:44:11PM +0200, Manuel Lauss wrote:
>
> > In commit 7d172bfe ("Alchemy: Add UART PM methods") I introduced
> > platform PM methods which call a function of the 8250 driver;
> > this patch works around link failures when the kernel is built
> > without 8250 support.
> >
> > Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
> > ---
> > V2: added commit name to patch description as per Sergei's suggestion.
>
> Applied, thanks.
>
> Though anything like a CONFIG_SERIAL_8250 in board code always strikes me
> as wrong. What if the driver is built as a module? What if the kernel is
> built without the driver, then later on the module is built separately and
> then inserted?
Hm, I think I understand. How's this approach (untested)?
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-10 20:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-25 16:44 [PATCH V2] MIPS: Alchemy: fix build with SERIAL_8250=n Manuel Lauss
2010-12-10 20:40 ` Ralf Baechle
2010-12-10 20:56 ` Manuel Lauss
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.