qe: move qe from arch/powerpc to drivers
qiang.zhao at freescale.com
qiang.zhao at freescale.com
Wed Aug 6 18:53:28 EST 2014
On Wed, Jul 30, 2014 at 08:19 AM, Wood Scott wrote:
> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Wednesday, July 30, 2014 8:19 AM
> To: Zhao Qiang-B45475
> Cc: linuxppc-dev at lists.ozlabs.org; Wood Scott-B07421; Xie Xiaobo-R63061
> Subject: Re: qe: move qe from arch/powerpc to drivers
>
> On Tue, Jun 24, 2014 at 11:31:52AM +0800, Zhao Qiang wrote:
> > ls1 has qe and ls1 has arm cpu.
> > move qe from arch/powerpc to drivers.
> >
> > Signed-off-by: Zhao Qiang <B45475 at freescale.com>
>
> This is a very terse changelog. Explain more about what QE is, and what
> this patch accomplishes (it doesn't seem to get rid of the PPC dependency,
> just moving code at this stage)
>
> I don't see a MAINTAINERS update for the new path. Who is going to
> maintain it?
>
> I don't think drivers/qe is the right place for it. Directories directly
> under drivers/ tend to be for classes of devices, not instances. In any
> case, LKML should be CCed when creating a new directory directly under
> drivers/ or under a subdirectory of drivers/ that doesn't have its own
> mailing list.
So which directory do you recommend?
Actually qe is a kind of IP block, so in my opinion, it is proper to put it under driver/(just in my opinion).
>
> This came up before, without a resolution. See:
> http://www.spinics.net/lists/kernel/msg1621335.html
>
> > diff --git a/arch/powerpc/platforms/83xx/km83xx.c
> > b/arch/powerpc/platforms/83xx/km83xx.c
> > index bf4c447..22c0d6d 100644
> > --- a/arch/powerpc/platforms/83xx/km83xx.c
> > +++ b/arch/powerpc/platforms/83xx/km83xx.c
> > @@ -37,8 +37,8 @@
> > #include <asm/udbg.h>
> > #include <sysdev/fsl_soc.h>
> > #include <sysdev/fsl_pci.h>
> > -#include <asm/qe.h>
> > -#include <asm/qe_ic.h>
> > +#include <linux/qe.h>
> > +#include <linux/qe_ic.h>
>
> If you're moving it out of asm/ please give it an fsl prefix.
>
> > diff --git a/drivers/qe/Kconfig b/drivers/qe/Kconfig new file mode
> > 100644 index 0000000..dc16e9a
> > --- /dev/null
> > +++ b/drivers/qe/Kconfig
> > @@ -0,0 +1,35 @@
> > +#
> > +# QE Communication options
> > +#
> > +menuconfig QUICC_ENGINE
> > + bool "Freescale QUICC Engine (QE) Support"
> > + depends on FSL_SOC && PPC32
> > + select PPC_LIB_RHEAP
> > + select CRC32
> > + help
> > + The QUICC Engine (QE) is a new generation of communications
> > + coprocessors on Freescale embedded CPUs (akin to CPM in older
> chips).
> > + Selecting this option means that you wish to build a kernel
> > + for a machine with a QE coprocessor.
> > +
> > +if QUICC_ENGINE
> > +
> > +config UCC_SLOW
> > + bool
> > + default y if SERIAL_QE
> > + help
> > + This option provides qe_lib support to UCC slow
> > + protocols: UART, BISYNC, QMC
> > +
> > +config UCC_FAST
> > + bool
> > + default y if UCC_GETH
> > + help
> > + This option provides qe_lib support to UCC fast
> > + protocols: HDLC, Ethernet, ATM, transparent
> > +
> > +config UCC
> > + bool
> > + default y if UCC_FAST || UCC_SLOW
> > +
> > +endif
>
> These config options could use better namespacing.
>
> -Scott
Regards,
Zhao Qiang
More information about the Linuxppc-dev
mailing list