Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp640494yba; Wed, 3 Apr 2019 16:27:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRGO1wSJ2mjYeOObuAll0xEJkbJvLt0q22VseicEhnewmLifz98sSgiUi8cfqRsnUX2GJi X-Received: by 2002:a63:4e57:: with SMTP id o23mr2470121pgl.368.1554334045526; Wed, 03 Apr 2019 16:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554334045; cv=none; d=google.com; s=arc-20160816; b=OP2r9l43lsypUWMoRWcmLGMUG1OwdVLd9jb592QZTra/F0+oWiYxq3qM4EYKVYA4s6 xXccXiFo43qUxXYsm1QWzqaYP4nakURQMbARPQoTXK0leNT+JAqq4dl54GfR8elYLVOb ki9QEdyBJoPvhzbHBRxmmDxw1QMslHZ4lwWABs2JD9NPmntmcojDG4+LL5QzQkEpDZ+d gvBweVuQfGTCKnBeX5pDELnaubHdx9t1pT71TlcRYa65sLhQn0TcZ2SL/mA/Nij7jqXH 3q9iBXyXlsz81fuMVGMae0AuC1t4kLNBeFkU620oNcblkhPVG5AHFlK9XTlcWUbE0Z4t UU3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=D+Sjez4Ddvk1hEli42OqP5azO2I11L2I0zu8TosAzfg=; b=Mi99QCT7ElA9TP1EsVuMnyVtGKdahomNL45HMn2f1oDvVdocmP4vhG+ji3FP9jT0+b QS2/+Rp/TeO5u96KNwYQz3PSAOYZfCDrrij2dDf0Co4/SzCAWPNZbe/enBK23baucptn ToBTJxd6UYJDohrY4SBKgPf26jyBlJvOJ9qHoIMI+pNOkWG6LHCb9JPaIpojkkuSuD6z TyGWwoeVlVdVQCVbbSk7LXMBob8EYWHYmoDazIsAyWYsKLKWVmUimO3dtOsXUXli1yjH ss0udLEbuwA4nwuMs1w5d8o1vvhp/aXkYavOHSslCDKc33iMVyGogsk/koJ0aFEY5LS0 t0lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=JhCsoiHO; 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 1si15579114plw.390.2019.04.03.16.26.56; Wed, 03 Apr 2019 16:27:25 -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; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=JhCsoiHO; 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 S1726337AbfDCXXp (ORCPT + 99 others); Wed, 3 Apr 2019 19:23:45 -0400 Received: from mail-eopbgr700106.outbound.protection.outlook.com ([40.107.70.106]:37822 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726099AbfDCXXo (ORCPT ); Wed, 3 Apr 2019 19:23:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D+Sjez4Ddvk1hEli42OqP5azO2I11L2I0zu8TosAzfg=; b=JhCsoiHOYfEpJvu/9n8o0pa7C834hkf/ATqbWqnoonSjkSQgsM+ys385N7okzusTMvXzQcKy8I9uAtYTUvBoDm2kdaJKZ9f9NV+yx7H0Emn1KDLMMiTB6zh2wfgvSSCCbgVIjdf1fZcUSJtOnyoh1K9qgIAajNaupuWMSpUCWyI= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1136.namprd22.prod.outlook.com (10.174.171.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Wed, 3 Apr 2019 23:23:40 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765%6]) with mapi id 15.20.1750.017; Wed, 3 Apr 2019 23:23:40 +0000 From: Paul Burton To: Horatiu Vultur 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 Thread-Topic: [PATCH net-next] MIPS: generic: Add switchdev, pinctrl and fit to ocelot_defconfig Thread-Index: AQHU6jH1855jdykjrkiwYTkluuuwSaYrFB8A Date: Wed, 3 Apr 2019 23:23:39 +0000 Message-ID: <20190403232334.7joxmw2a3qrhy2nf@pburton-laptop> References: <1554305256-32702-1-git-send-email-horatiu.vultur@microchip.com> In-Reply-To: <1554305256-32702-1-git-send-email-horatiu.vultur@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR08CA0053.namprd08.prod.outlook.com (2603:10b6:a03:117::30) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [67.207.99.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 40ec7b10-3ba4-40fe-7858-08d6b88b676d x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:MWHPR2201MB1136; x-ms-traffictypediagnostic: MWHPR2201MB1136: x-microsoft-antispam-prvs: x-forefront-prvs: 0996D1900D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(136003)(366004)(39850400004)(396003)(376002)(346002)(199004)(189003)(1076003)(71200400001)(58126008)(256004)(42882007)(71190400001)(2906002)(102836004)(386003)(44832011)(54906003)(25786009)(106356001)(81166006)(11346002)(76176011)(478600001)(6506007)(7736002)(8936002)(6116002)(446003)(6916009)(316002)(33716001)(476003)(305945005)(4326008)(14444005)(186003)(6512007)(105586002)(5660300002)(97736004)(99286004)(68736007)(66066001)(6436002)(6246003)(53936002)(229853002)(6486002)(14454004)(486006)(8676002)(81156014)(9686003)(26005)(52116002)(3846002)(41533002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1136;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: /b4CyPsuCIV/0sX3d0c236h5QV3LWzJSnlrmTz6NjfFNa+QZQ2+0a14gnofDxI7BoMjIbpFMv0Pf23W2yS5ejXyv2fGq13td8Au2G263dKqOJeg0HqJUXyY3VS2P0mKD5pcx/kHxM93sV2IX8Hcr/1v+HB+kQ8FlqP3he1Zd0r2mtODmPSz97JW+B5IN3jNbSaVhU/Vj6u2domYD5gtpO47YeNra5kruGgSLZfhlutrSga0c58/hha7N7vQdflQabq6UGKdd21HQovqNnBXLf4ybMsBIXSxuaeCEAONV9ZNWCy79gQOoO2zbpn/nM7cgw1D5dtn9kL33VjhI9ZyyUqAFUz4iHurWkpeICl/DYIX4iYP0e4Os6EN2UuOkKsLCzxCb071quBsral6K1VjC/+nI7NxiWVWy4u+ZYW5h7iw= Content-Type: text/plain; charset="us-ascii" Content-ID: <1319EAE0211D67469C35922C52AC9897@namprd22.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40ec7b10-3ba4-40fe-7858-08d6b88b676d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2019 23:23:39.9380 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1136 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/co= nfigs/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=3Dmips 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 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