Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932416AbdLTK07 (ORCPT ); Wed, 20 Dec 2017 05:26:59 -0500 Received: from mail-eopbgr30044.outbound.protection.outlook.com ([40.107.3.44]:22752 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932070AbdLTK0y (ORCPT ); Wed, 20 Dec 2017 05:26:54 -0500 From: Laurentiu Tudor To: Greg KH CC: Ruxandra Ioana Radulescu , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "Bogdan Purcareata" , Leo Li , "stuyoder@gmail.com" , Roy Pledge , "andrew@lunn.ch" , "linux-arm-kernel@lists.infradead.org" , Stuart Yoder , Thomas Gleixner , Jason Cooper , Marc Zyngier Subject: Re: [PATCH v4] staging: fsl-mc: move bus driver out of staging Thread-Topic: [PATCH v4] staging: fsl-mc: move bus driver out of staging Thread-Index: AQHTaPoaqtNRHeNsCUOhGxRQkBuH+KNK3skAgAAJDQCAAAJ4AIAAAuuAgAAIrICAATI5AA== Date: Wed, 20 Dec 2017 10:26:49 +0000 Message-ID: <5A3A3AE6.6080905@nxp.com> References: <20171129100844.19874-1-laurentiu.tudor@nxp.com> <20171219144802.GA4534@kroah.com> <5A392E3A.6040303@nxp.com> <20171219152916.GA11279@kroah.com> <5A3932BF.80106@nxp.com> <20171219161045.GA18839@kroah.com> In-Reply-To: <20171219161045.GA18839@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=laurentiu.tudor@nxp.com; x-originating-ip: [86.34.165.90] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB1711;6:JiSbp4KB5U2d1nI/V/4wnP6N0nwUm4wMQnMUtgps8YwBkSUvs65ZJHTxmX2Y58e6CCEFdPxsCfPyL42oxyQ2D8dMlqjGAmjcLsyoLu2eJNfYRmpN1dCS9NjZQv1aNOVQy7EJ69Y48tVU/AGTjsGH5URcEYR5rN51/cBKGPfyzjLbbqDCfNnhR0Hkqe72mASwMqUQFbJ/Q9sokksltPEIhtS2SZdRzFh4lJGUvkJeBeLt8KhqN+hZe8iZM3RjpwTFvo+G4HtLLWRmbBj/Tg+L87camuRw1K0Kj9Rlhpz/Mw7v3Gc8Xp8LQRW8wTQxefBY3m7WCcFz5JzXT0VpQqeBasgram5qhk8l+A7R2jgokr0=;5:cmxS9Sd8UC8oz1BbvCEfGiSHhzZhyrW3Qj476xaXbXqXdsh9922XJySnL3AK+bklFgtgeJtl+/vPw6ulextQtW+o5cz8+0cforT2KY/c4IbhgBcY0SbTposlWkyY6HNQBAvvtLZxU6RKwUzlPI9ngXisn9bsPikz1oSzcuNI5Pk=;24:79ns7Z5TH7V9lRGwWx6EMAU6JcyaDfcoVYR73OYj+Od731XXE7C0wx5Z2DfwmXHHgAXCr3x+BTL0AMtNa72R8Q2G7KOGjYt+FJPuh3AvPoA=;7:AM5oTKPjrDf/uTlU4dn2Z7KRnf+cbz7fmVmbwxPWkqs9ten+QEPfUpAk9k8kFh/ONCBp/1EtzwsmEFZyS4WSEhJR4LFdlLjEiRXgFEwPwco7tsX7cQaFXvKb7mV9myGOaNbmXNZTPBX1mvOMvKsWbb9TImi5JvLa/Kp0lqe97YCIjp0W/qy95ZRv5UpxFoACBu4V+DOjbtHNPna6Z6XA/6DwrR0NEKLjXR/SvAqvfl+8vFvlAWmLtcXTacB93e8r x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(39860400002)(346002)(376002)(366004)(396003)(39380400002)(51344004)(199004)(189003)(24454002)(316002)(3660700001)(36756003)(3280700002)(5660300001)(8676002)(81156014)(59450400001)(81166006)(54906003)(53546011)(6486002)(6512007)(229853002)(97736004)(2906002)(6506007)(8936002)(6436002)(14454004)(93886005)(80316001)(65816011)(76176011)(87266011)(4326008)(6246003)(6916009)(33656002)(5250100002)(66066001)(39060400002)(478600001)(53936002)(3846002)(102836003)(6116002)(2900100001)(7736002)(106356001)(305945005)(105586002)(2950100002)(99286004)(68736007)(25786009)(86362001)(59896002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB1711;H:VI1PR0401MB1856.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 4122005b-4e13-440c-656c-08d547942e5a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7153060);SRVR:VI1PR0401MB1711; x-ms-traffictypediagnostic: VI1PR0401MB1711: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231023)(93006095)(93001095)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:VI1PR0401MB1711;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0401MB1711; x-forefront-prvs: 0527DFA348 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <399976564E4B9949A07BDB597516C277@eurprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4122005b-4e13-440c-656c-08d547942e5a X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2017 10:26:49.9638 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB1711 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 quoted-printable to 8bit by mail.home.local id vBKAR4i5009645 Content-Length: 3607 Lines: 86 On 12/19/2017 06:10 PM, Greg KH wrote: > On Tue, Dec 19, 2017 at 03:39:44PM +0000, Laurentiu Tudor wrote: >> On 12/19/2017 05:29 PM, Greg KH wrote: >>> On Tue, Dec 19, 2017 at 03:21:19PM +0000, Laurentiu Tudor wrote: >>>> >>>> >>>> On 12/19/2017 04:48 PM, Greg KH wrote: >>>>> On Wed, Nov 29, 2017 at 12:08:44PM +0200, laurentiu.tudor@nxp.com wrote: >>>>>> From: Stuart Yoder >>>>>> >>>>>> Move the source files out of staging into their final locations: >>>>>> -include files in drivers/staging/fsl-mc/include go to include/linux/fsl >>>>>> -irq-gic-v3-its-fsl-mc-msi.c goes to drivers/irqchip >>>>>> -source in drivers/staging/fsl-mc/bus goes to drivers/bus/fsl-mc >>>>>> -README.txt, providing and overview of DPAA goes to >>>>>> Documentation/dpaa2/overview.txt >>>>>> >>>>>> Update or delete other remaining staging files-- Makefile, Kconfig, TODO. >>>>>> Update dpaa2_eth and dpio staging drivers. >>>>>> >>>>>> Signed-off-by: Stuart Yoder >>>>>> Signed-off-by: Laurentiu Tudor >>>>>> [Laurentiu: rebased, add dpaa2_eth and dpio #include updates] >>>>>> Cc: Thomas Gleixner >>>>>> Cc: Jason Cooper >>>>>> Cc: Marc Zyngier >>>>>> --- >>>>>> Notes: >>>>>> -v4: >>>>>> - regenerated patch with renames detection disabled (Andrew Lunn) >>>>>> -v3: >>>>>> - rebased >>>>> >>>>> Ok, meta-comments on the structure of the code. >>>>> >>>>> You have 8 .h files that are "private" to your bus logic. That's 7 too >>>>> many, some of them have a bigger license header than actual content :) >>>>> >>>>> Please consolidate into 1. >>>>> >>>>> Also, the headers should be moved to SPDX format to get rid of the >>>>> boilerplate. I _think_ it's BSD/GPL, right? Hard to tell :( >>>> >>>> It's 3-clause BSD and GPLv2. Will make it clear when moving to SPDX. >>> >>> Thanks. >>> >>>>> Your "public" .h file does not need to go into a subdirectory, just name >>>>> it fsl-mc.h and put it in include/linux/. >>>> >>>> There's already a "fsl" subdirectory in include/linux/ so it seemed to >>>> make sense to use it. >>> >>> Ah, missed that. Ok, nevermind :)` >>> >>>>> One comment on the fields in your .h file, all of the user/kernel >>>>> crossing boundry structures need to use the "__" variant of types, like >>>>> "__u8" and the like. You mix and match them for some reason, you need >>>>> to be consistent. >>>>> >>>>> Also, what's up with the .h files in drivers/staging/fsl-bus/include? >>>>> You didn't touch those with this movement, right? Why? >>>> >>>> Those are not part of the bus "core". Some of them are part of the DPBP >>>> and DPCON device types APIs and are used by drivers probing on this bus >>>> and the rest are part of the DPIO driver which is also used by other >>>> drivers. Since these devices (DPBP, DPCON, DPIO) are interfaces used by >>>> all the other drivers it made sense to group them together with the bus. >>> >>> But all of these .h files are only used by the code in this specific >>> directory, no where else. >> >> They are also used by our ethernet driver, see: >> drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h > > Ick, really? Then they should not be buried in a bus-specific > location, but rather be in include/linux/SOMEWHERE, right? Right. The goal is that in the end, all headers be moved to the already existing include/linux/fsl/. For now I've left these in staging because they are not part of the bus "core" infrastructure. --- Best Regards, Laurentiu