[PATCH] usb: gadget: pxa25x_udc: Support combined PXA and IXP4xx builds
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Fri Nov 20 06:16:59 PST 2026
On Tue, Nov 17, 2026 at 11:47:25AM +0100, Linus Walleij wrote:
> Allowing little-endian IXP4xx kernels makes it possible to enable both
> ARCH_IXP4XX and ARCH_PXA. The shared UDC driver still assumes that these
> platforms are mutually exclusive: it defines UDCCS_IO_ROF twice and stops
> the build with "Can't configure both IXP and PXA".
>
> Select the controller quirks using the running CPU rather than the kernel
> configuration. Match both XScale CPU families and their supported
> revisions, and remember whether the controller belongs to IXP4xx. Use that
> flag to select the existing isochronous receive overflow bit and to keep
> the EP0 status workaround specific to PXA.
>
> Remove the IXP4xx clock API overrides so that PXA clock control still
> works in a combined kernel. Leave the clock NULL on IXP4xx, which has no
> software-controlled UDC clock, and rely on the clock API's NULL handling.
>
> Fixes: 2262f02ac2aa ("ARM: ixp4xx: Relax endianness")
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202611082010.e3nJgvr4-lkp@intel.com/
> Signed-off-by: Linus Walleij <linusw at kernel.org>
> ---
> Fix the build failure when PXA and IXP4xx are enabled together by
> selecting CPU quirks at runtime.
>
> I guess I caused this problem by allowing for little endian IXP4xx.
>
> Assisted by LLM.
Does not apply to the usb-testing branch at all :(
More information about the linux-arm-kernel
mailing list