Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751561AbdGROgN (ORCPT ); Tue, 18 Jul 2017 10:36:13 -0400 Received: from mail-eopbgr50068.outbound.protection.outlook.com ([40.107.5.68]:35328 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751415AbdGROgM (ORCPT ); Tue, 18 Jul 2017 10:36:12 -0400 From: Laurentiu Tudor To: Arnd Bergmann CC: gregkh , Stuart Yoder , "devel@driverdev.osuosl.org" , "Linux Kernel Mailing List" , Marc Zyngier , Alexander Graf , Robin Murphy , Ioana Ciornei , "Ruxandra Ioana Radulescu" , Bharat Bhushan , Catalin Horghidan , "Leo Li" , Roy Pledge , Linux ARM Subject: Re: [PATCH v2 8/8] staging: fsl-mc: allow the driver compile multi-arch Thread-Topic: [PATCH v2 8/8] staging: fsl-mc: allow the driver compile multi-arch Thread-Index: AQHS/8sd6hE3b4UaxEG5mfgBafl8kqJZo9sAgAAC8IA= Date: Tue, 18 Jul 2017 14:36:07 +0000 Message-ID: <596E1CD7.1050909@nxp.com> References: <20170718133723.12709-1-laurentiu.tudor@nxp.com> <20170718133723.12709-9-laurentiu.tudor@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: arndb.de; dkim=none (message not signed) header.d=none;arndb.de; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.146.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2560;7:SBMp9DgUxUylut6mFzNxsk5s97N2c6wC513+LWwGwupYUNhKIO47+ZMAOTXeJrW7sKfUa3faIuipLaMallrKJg9U8lwML8LjL9QiGZfPLOnJ+uRRE/+Kb0JFp8+pT6xyAGiKI1G2ylZ2PVsWQzQeNyzgcy8wledT8SH9l02QRaAg22ZUrxdmcWk/HH64TUUJuCa7fOS3ukWqODlf51q6rQHx9vd/FIWTzaXXeHYRl2SuIC3Z/BSET673MonY8S9OFsN8GeHHQQl7JKaYPge57CEp2JMtDHNlnf7Zp2Edl9CB9ioUGDeCXyKjhcPmcR0bwaH4n7x73R0wGUpeTUEWunYgh8WSJwJFjEyN2oiZC+Aq0LtgTum9DKwY0t3RymemjyZqYxsJ6ykHptB6N2vUkFyCO/h1P74tdS91m25V4BlElYdPTFFrvzZGekiOpFkLuygJyazk5IK4SPZmty/yDi1w63rLygjoAJVtWI62RJiHPDja5DZeL623BYg+OJYnOvAgvBtmc4TfuH46f4MfgHn+IL2MuQVqQTn9BqrNpTroCFprfzm/0913rth0vWcPlkljz+da2mxyQ58FVTjekSpILc+5Tk9ufDJ6WoNTSrh3BPCOJRXX11dqgoKo460ZL2kItPlX04pk1WwDHH/1Rk7BJMiP4GXFRQ0Gn1B3/9lTi8043a2/1yllBSEPQIaHGdYJNT5kMM+CNjHnRv8nskRE/BqDLpFz/pxd/lnq51GQeHh3B9HzjWPojjzfYsmxT38qsrPXAVzzLRZGsJ6Abc2jjx7NqUTqZEoyLNkogfE= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39450400003)(39860400002)(39410400002)(39840400002)(39400400002)(39850400002)(24454002)(43544003)(377454003)(65816999)(86362001)(99286003)(6486002)(4326008)(229853002)(3660700001)(39060400002)(66066001)(305945005)(5660300001)(2950100002)(7736002)(33656002)(59896002)(53936002)(3280700002)(189998001)(87266999)(76176999)(54356999)(2900100001)(50986999)(110136004)(6246003)(38730400002)(14454004)(6916009)(3846002)(6506006)(36756003)(81166006)(102836003)(6116002)(53546010)(8676002)(8936002)(80316001)(6512007)(5250100002)(25786009)(6436002)(478600001)(54906002)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2560;H:VI1PR0401MB1856.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; x-ms-office365-filtering-correlation-id: 8bfe8f41-923c-4945-22c1-08d4cdea53e4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR0401MB2560; x-ms-traffictypediagnostic: VI1PR0401MB2560: x-exchange-antispam-report-test: UriScan:(236129657087228)(185117386973197); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR0401MB2560;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR0401MB2560; x-forefront-prvs: 037291602B spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2017 14:36:07.7552 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2560 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v6IEaKwM007024 Content-Length: 1312 Lines: 42 Hi Arnd, On 07/18/2017 05:25 PM, Arnd Bergmann wrote: > On Tue, Jul 18, 2017 at 3:37 PM, wrote: > >> --- a/drivers/staging/fsl-dpaa2/Kconfig >> +++ b/drivers/staging/fsl-dpaa2/Kconfig >> @@ -4,7 +4,7 @@ >> >> config FSL_DPAA2 >> bool "Freescale DPAA2 devices" >> - depends on FSL_MC_BUS >> + depends on FSL_MC_BUS && ARCH_LAYERSCAPE >> ---help--- >> Build drivers for Freescale DataPath Acceleration >> Architecture (DPAA2) family of SoCs. > > I would probably leave the dependency in there conditionally, like > > depends on ARCH_LAYERSCAPE || COMPILE_TEST > > That way, we can build the driver on all architectures with "make allmodconfig" > or "make randconfig", but regular users that disable COMPILE_TEST > won't be bothered by the extra config options unless they have the > right hardware. > Good point, I'll take care of it. But don't you mean COMPILE_TEST be added on the actual MC_BUS config, like so: config FSL_MC_BUS bool "QorIQ DPAA2 fsl-mc bus driver" - depends on OF && ARCH_LAYERSCAPE + depends on OF && (ARCH_LAYERSCAPE || COMPILE_TEST) select GENERIC_MSI_IRQ_DOMAIN ? The other drivers that depend on the MC_BUS won't compile on other architectures. --- Thanks & Best Regards, Laurentiu