Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:34809 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27009242AbaIYBdWMGfo9 (ORCPT ); Thu, 25 Sep 2014 03:33:22 +0200 Date: Thu, 25 Sep 2014 06:55:15 +0530 From: Jayachandran C. Subject: Re: [PATCH 0/2] MIPS: Netlogic: modular build fixes Message-ID: <20140925012514.GA3703@jayachandranc.netlogicmicro.com> References: <1411581311-6458-1-git-send-email-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1411581311-6458-1-git-send-email-f.fainelli@gmail.com> Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Florian Fainelli Cc: linux-mips@linux-mips.org, ganesanr@broadcom.com Message-ID: <20140925012515.Jm6LiFkMK6Co1qb1o6oUMC1dBY_gexuhkdIp9H5LekA@z> On Wed, Sep 24, 2014 at 10:55:09AM -0700, Florian Fainelli wrote: > Hello Ralf, Jayachandran, Ganesan > > Here are two small fixes for modular USB and AHCI builds that I encountered > while playing with a FVP board. > > These are based off upstream-sfr/mips-for-linux-next We have a slightly different fix for this in our internal repository, I was planning to submit it soon: index be358a8..5c876d3 100644 --- a/arch/mips/netlogic/xlp/Makefile +++ b/arch/mips/netlogic/xlp/Makefile @@ -1,6 +1,6 @@ obj-y += setup.o nlm_hal.o cop2-ex.o dt.o obj-$(CONFIG_SMP) += wakeup.o -obj-$(CONFIG_USB) += usb-init.o -obj-$(CONFIG_USB) += usb-init-xlp2.o -obj-$(CONFIG_SATA_AHCI) += ahci-init.o -obj-$(CONFIG_SATA_AHCI) += ahci-init-xlp2.o +obj-$(subst m,y,$(CONFIG_USB)) += usb-init.o +obj-$(subst m,y,$(CONFIG_USB)) += usb-init-xlp2.o +obj-$(subst m,y,$(CONFIG_SATA_AHCI)) += ahci-init.o +obj-$(subst m,y,$(CONFIG_SATA_AHCI)) += ahci-init-xlp2.o This will add the init code when USB or SATA is enabled as module or is built-in, so I think this is be a better solution. JC.