Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp947008yba; Thu, 4 Apr 2019 00:49:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcxWztinyS5JHuiEd46zDwLyygcxYdP6uk+LaWw6ZBogsS8AQrnK6xa1cc/6adC/B/aNkp X-Received: by 2002:a17:902:864b:: with SMTP id y11mr4845204plt.1.1554364147166; Thu, 04 Apr 2019 00:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554364147; cv=none; d=google.com; s=arc-20160816; b=uocJ5t1bTKj+vGf4KG9h0DB0mT1JNQFZ4qTWzuEOxbczvwbY2ld74ZysPt4tLzlb9N piZVQOKygGh5tB3PdRQoB+5QkiMsXX5w28zCDo//8oixS5yG6LUX7jbkviN7Ooq24xNl BXiOU2HJOn0ZM5/pRmtxxfmQJdDM1YDcwrt0xCWR/teptdUy++fMwRTD1PLYBF8Bx4cN +g8+CZF8FT7xrXlPT/ZYJo0rQQ8H4CnjqD3aAviXEiNEXz+/gkRhnV9ndPLARsvZmlOC 1p8FcUVbs47LH2aGK+xUYD0ZFf+I3pyUxwsXjsxA5wbsDVa/OGTTuPAMUh30pcOMZBuE vaQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dgyI3PfOxmr1BhYXIRww8NyHL4njtuDdQx9mL9rfZeU=; b=p+68grznTmJ8xZtGUbIL++uAOJg9SAYIkd7pPJ7ahKngZI/inga4bxLgtBxhlzKXAr bk/BraLWTHVoXz4kbmliqnO8VkcSfO3wuYTcGa99Z6JMlimItq2TYG2AuHnzoOHm9KHA ESUUVE+XbVIxXHNpHt49Umgwh79fm4BS6MHpdA24+7qKTEGlFC4jtynhGt+jqraTcgId vwXCq/lqF8gxBwVhUSY1CMrAdhKjiUQCh45MX1GhWT4hoxb2cW4ukkZ3oKoOvJkAG6yM En2FfwLIv5GGxCoh6D/QXAmXl6DzICrWA4yPus6CycHxmJqrqUsrXqn9yXaypz5+HcJK IL3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si15969394pgm.141.2019.04.04.00.48.51; Thu, 04 Apr 2019 00:49:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbfDDHrC (ORCPT + 99 others); Thu, 4 Apr 2019 03:47:02 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:24370 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfDDHrC (ORCPT ); Thu, 4 Apr 2019 03:47:02 -0400 X-IronPort-AV: E=Sophos;i="5.60,306,1549954800"; d="scan'208";a="29632751" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Apr 2019 00:47:01 -0700 Received: from localhost (10.10.76.4) by chn-sv-exch02.mchp-main.com (10.10.76.38) with Microsoft SMTP Server id 14.3.352.0; Thu, 4 Apr 2019 00:47:00 -0700 Date: Thu, 4 Apr 2019 09:47:00 +0200 From: Horatiu Vultur To: Paul Burton CC: "alexandre.belloni@bootlin.com" , "UNGLinuxDriver@microchip.com" , "ralf@linux-mips.org" , "jhogan@kernel.org" , "linux-mips@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next] MIPS: generic: Add switchdev, pinctrl and fit to ocelot_defconfig Message-ID: <20190404074658.d3lpobem2csl6xpd@soft-dev3.microsemi.net> References: <1554305256-32702-1-git-send-email-horatiu.vultur@microchip.com> <20190403232334.7joxmw2a3qrhy2nf@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20190403232334.7joxmw2a3qrhy2nf@pburton-laptop> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, The 04/03/2019 23:23, Paul Burton wrote: > External E-Mail > > > Hi Horatiu, > > On Wed, Apr 03, 2019 at 05:27:36PM +0200, Horatiu Vultur wrote: > > diff --git a/arch/mips/configs/generic/board-ocelot.config b/arch/mips/configs/generic/board-ocelot.config > > index f607888..3215741 100644 > > --- a/arch/mips/configs/generic/board-ocelot.config > > +++ b/arch/mips/configs/generic/board-ocelot.config > >% > > +# CONFIG_HID is not set > > +# CONFIG_USB_SUPPORT is not set > > +# CONFIG_VIRTIO_MENU is not set > > +# CONFIG_SCSI is not set > > Unfortunately this part won't work so well. If board-ocelot.config > disables these things, then what should happen if another board that's > also included in a generic kernel enables them? > > eg. if you run 'make ARCH=mips 32r2el_defconfig' then we merge all of > the following: > > board-boston.config enables USB > board-sead-3.config enables USB > board-ocelot.config disables USB I didn't think about this scenario, because I didn't expect that building a generic configuration will bring together all the board configurations. Anyway, I will send a new patch in which I will remove these configurations. > > These are mutually exclusive, and it seems that on my system we > currently end up disabling USB due to board-ocelot.config. That will of > course break USB support for Boston or SEAD-3 which are also supported > by the same kernel binary. In practice which one 'wins' will depend on > the order the files are listed by make's wildcard function - so far as > I'm aware that doesn't guarantee any particular order so if it ends up > depending on the order the filesystem lists the files or something like > that then configurations might even differ when used on different > machines. > > So to avoid that the best we can do is leave these enabled and the > general rule is that board-*.config files can only enable extra things, > not disable them. > > You might be tempted to disable the options in generic_defconfig & > update any board configs that actually need them to enable them, but > that doesn't work too well for things which are 'default y' because > kconfig then warns about the conflict between generic_defconfig & the > board config being merged with it. That applies to the first 3 of the > entries you disable, leaving only CONFIG_SCSI that could potentially be > dealt with that way... > > Thanks, > Paul > -- /Horatiu