From: Qiang Zhao <qiang.zhao@nxp.com> To: Christophe Leroy <christophe.leroy@c-s.fr>, Rasmus Villemoes <linux@rasmusvillemoes.dk>, Leo Li <leoyang.li@nxp.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Scott Wood <oss@buserror.net>, "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>, LKML <linux-kernel@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Subject: RE: [Regression 5.6-rc1][Bisected b6231ea2b3c6] Powerpc 8xx doesn't boot anymore Date: Thu, 13 Feb 2020 03:35:25 +0000 [thread overview] Message-ID: <VE1PR04MB6768B3B0F369280338370B87911A0@VE1PR04MB6768.eurprd04.prod.outlook.com> (raw) In-Reply-To: <aee10440-c244-7c93-d3bb-fd29d8a83be4@c-s.fr> On 02/12/2020 22:50 PM, Christophe Leroy wrote: > -----Original Message----- > From: Christophe Leroy <christophe.leroy@c-s.fr> > Sent: 2020年2月12日 22:50 > To: Rasmus Villemoes <linux@rasmusvillemoes.dk>; Leo Li > <leoyang.li@nxp.com>; Qiang Zhao <qiang.zhao@nxp.com>; Greg > Kroah-Hartman <gregkh@linuxfoundation.org> > Cc: Scott Wood <oss@buserror.net>; linuxppc-dev@lists.ozlabs.org; LKML > <linux-kernel@vger.kernel.org>; linux-arm-kernel@lists.infradead.org > Subject: Re: [Regression 5.6-rc1][Bisected b6231ea2b3c6] Powerpc 8xx doesn't > boot anymore > > --- > diff --git a/drivers/tty/serial/cpm_uart/cpm_uart_core.c > b/drivers/tty/serial/cpm_uart/cpm_uart_core.c > index 4cabded8390b..341d682ec6eb 100644 > --- a/drivers/tty/serial/cpm_uart/cpm_uart_core.c > +++ b/drivers/tty/serial/cpm_uart/cpm_uart_core.c > @@ -1351,6 +1351,7 @@ static int __init cpm_uart_console_setup(struct > console *co, char *options) > clrbits32(&pinfo->sccp->scc_gsmrl, SCC_GSMRL_ENR | > SCC_GSMRL_ENT); > } > > + cpm_muram_init(); > ret = cpm_uart_allocbuf(pinfo, 1); > > if (ret) > How about the patch like below? Just a draft. diff --git a/drivers/soc/fsl/qe/qe.c b/drivers/soc/fsl/qe/qe.c index 96c2057..c5c2464 100644 --- a/drivers/soc/fsl/qe/qe.c +++ b/drivers/soc/fsl/qe/qe.c @@ -29,6 +29,8 @@ #include <soc/fsl/qe/immap_qe.h> #include <soc/fsl/qe/qe.h> +static int qe_inited; + static void qe_snums_init(void); static int qe_sdma_init(void); @@ -637,15 +639,19 @@ unsigned int qe_get_num_of_snums(void) } EXPORT_SYMBOL(qe_get_num_of_snums); -static int __init qe_init(void) +int __init qe_init(void) { struct device_node *np; + if(qe_inited) + return 0; + np = of_find_compatible_node(NULL, NULL, "fsl,qe"); if (!np) return -ENODEV; qe_reset(); of_node_put(np); + qe_inited = 1 return 0; } subsys_initcall(qe_init); diff --git a/drivers/tty/serial/cpm_uart/cpm_uart_core.c b/drivers/tty/serial/cpm_uart/cpm_uart_core.c index 19d5a4c..cbf2c32 100644 --- a/drivers/tty/serial/cpm_uart/cpm_uart_core.c +++ b/drivers/tty/serial/cpm_uart/cpm_uart_core.c @@ -1373,6 +1373,7 @@ static struct console cpm_scc_uart_console = { static int __init cpm_uart_console_init(void) { + qe_init(); register_console(&cpm_scc_uart_console); return 0; } diff --git a/include/soc/fsl/qe/qe.h b/include/soc/fsl/qe/qe.h index e282ac0..531ba05 100644 --- a/include/soc/fsl/qe/qe.h +++ b/include/soc/fsl/qe/qe.h @@ -88,6 +88,7 @@ static inline bool qe_clock_is_brg(enum qe_clock clk) extern spinlock_t cmxgcr_lock; +int __init qe_init(void); /* Export QE common operations */ #ifdef CONFIG_QUICC_ENGINE extern void qe_reset(void); Best Regards Qiang Zhao
next prev parent reply other threads:[~2020-02-13 3:35 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-02-12 14:24 Christophe Leroy 2020-02-12 14:42 ` Christophe Leroy 2020-02-12 14:50 ` Christophe Leroy 2020-02-13 3:35 ` Qiang Zhao [this message] 2020-02-13 6:17 ` Christophe Leroy 2020-02-13 6:36 ` Qiang Zhao 2020-02-13 9:37 ` Rasmus Villemoes 2020-02-13 10:50 ` Christophe Leroy 2020-02-13 7:45 ` Rasmus Villemoes 2020-02-13 10:40 ` Christophe Leroy
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=VE1PR04MB6768B3B0F369280338370B87911A0@VE1PR04MB6768.eurprd04.prod.outlook.com \ --to=qiang.zhao@nxp.com \ --cc=christophe.leroy@c-s.fr \ --cc=gregkh@linuxfoundation.org \ --cc=leoyang.li@nxp.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@rasmusvillemoes.dk \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=oss@buserror.net \ --subject='RE: [Regression 5.6-rc1][Bisected b6231ea2b3c6] Powerpc 8xx doesn'\''t boot anymore' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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).