Received: by 10.223.164.202 with SMTP id h10csp3052983wrb; Tue, 28 Nov 2017 05:36:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMb29vtAyIU9RlTfSSFz/xT4CCRkAwzm2Aw0DZJ1R9/TQUpP7mK9e2sswdBOO0t4R6yuc0Yl X-Received: by 10.84.252.23 with SMTP id x23mr42940356pll.54.1511876168114; Tue, 28 Nov 2017 05:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511876168; cv=none; d=google.com; s=arc-20160816; b=d7/b4Im+TkX0ymdC9fCEc6n2/AsvSKuRVWVBJQEVFRw3xE136Mh3+rX4nWXLJqUPQy c5mkrR7sAX2hqb9Er1oc+brzG6evs2b9AO7rPNg2v73nPccY8n0PRTn/Zw6pAeg/zPBp +uIKwZTitSnz9Ubi1RfOvNv5HNmN7gjJs8WuCtQBANOb3EyffhoYQSXV6dRwRyYwd8wS Tf3y0//KJ7ZJA5yKMks9OObTazs/ojjH8noJh7uSCgKF557+sOg7J6dlbBEhUp9TaH8A ZPlAvsE3N5sMtS86zd6rkQox1XYILUcU5JzkKjaoDY6NAnANwsXNJ6h+7O/CgoWscJ7V 9UNg== 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:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=P7Oich2coLyto7n6BZWIzM9MKK2wSysGz7mAzgihpEo=; b=ECfRruI4G8FgTijI1XcK8U+Esm0C6V+bqy+eLL12oqY2DtpkjvFaMY2m6FKVNWy0j6 Q7ZElvPgxDjNiCYhchlv2AX+cbC4vLribQ+Qsv2PdCrZ2GMcj4nNoljNdHcmutjCE24r l1LzFH0t/w8XZRoG20OvDMqO8dEyjor+rQNtUq5jXlkFdJGE5kN1U3iqdT241isJYOYe Huqo2VXtabcvTIqtUleACxNgRkauuRk2G/24R0QYxcp6HSUJN89TwXj5FqvigcgjVdw1 caPPD7HpgkJnuB7voWhxfzyWxxNgTqU5WmSgYYwXXXkTjOS1VtkE6+NAMBSAhFGGWNMK 7trQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=NAN9FC0x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si24617356pgv.479.2017.11.28.05.35.56; Tue, 28 Nov 2017 05:36:08 -0800 (PST) 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=@nxp.com header.s=selector1 header.b=NAN9FC0x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752878AbdK1NfJ (ORCPT + 76 others); Tue, 28 Nov 2017 08:35:09 -0500 Received: from mail-eopbgr10072.outbound.protection.outlook.com ([40.107.1.72]:42867 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752402AbdK1NfH (ORCPT ); Tue, 28 Nov 2017 08:35:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=P7Oich2coLyto7n6BZWIzM9MKK2wSysGz7mAzgihpEo=; b=NAN9FC0xFsx8Xirn/35EfNWzYzpe75OdigZYWidH3zztsdO8GARJPzaBL/zlnZlKHL97V+DfD1t1WGuzTG6NnksluXDxMoCbiyZVrk68env15LfxWMzQkW8GzfxNKzAcwP8RTIyvRgi4fImBbHS9euQYIVpDWWNWEENutBJyS2k= Received: from VI1PR0401MB1856.eurprd04.prod.outlook.com (10.165.235.22) by VI1PR0401MB2269.eurprd04.prod.outlook.com (10.169.133.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 13:35:03 +0000 Received: from VI1PR0401MB1856.eurprd04.prod.outlook.com ([fe80::28be:c35a:1fd5:de80]) by VI1PR0401MB1856.eurprd04.prod.outlook.com ([fe80::28be:c35a:1fd5:de80%14]) with mapi id 15.20.0260.007; Tue, 28 Nov 2017 13:35:02 +0000 From: Laurentiu Tudor To: Greg KH CC: "devel@driverdev.osuosl.org" , "stuyoder@gmail.com" , Stuart Yoder , Roy Pledge , "linux-kernel@vger.kernel.org" , "agraf@suse.de" , Catalin Horghidan , Ioana Ciornei , Leo Li , Bharat Bhushan , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2] staging: fsl-mc: move bus driver out of staging Thread-Topic: [PATCH v2] staging: fsl-mc: move bus driver out of staging Thread-Index: AQHTH+wFpJBJc2M940O/dZz67KMOpqKepc8AgGSH/YCAJbwRgIABZ5+AgAAKDYA= Date: Tue, 28 Nov 2017 13:35:02 +0000 Message-ID: <5A1D6605.2080101@nxp.com> References: <20170828105405.19552-1-laurentiu.tudor@nxp.com> <20170831160430.GB11200@kroah.com> <20171103151711.GA22453@kroah.com> <5A1C2FEB.2080006@nxp.com> <20171128125903.GA13019@kroah.com> In-Reply-To: <20171128125903.GA13019@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;VI1PR0401MB2269;6:r5ZN4n9BCvVRMC88XZdGBDjABavfkWI57QB2isDtiF8Gcn92xN11wuHMgW4oVT14qWeFfN6bXAdvFNCug17HLrTYDCxZf1ah5JYtVyCILCucoMRANRd4nVDNnHbUakUvZl6fVTbSxqSpYSErClBKbhyN9XCqr3gaV5QrRla4Vw+MkLOeFcw4Ds98MHqAoRr/vF6aI8VLRWhIzb20rT7kqwwpOledDz0Go7a3hw0Z0PI956EwTRb5r4PqKuPO2Zod8rFLoZEd2Rb37Ya9tOlGH7SPvU2qOX7emQa7ZKNkcXEJQZvVi0NBfD4dO7BykbVTGkGiIuNss5UDIspzC7sYzGZTyHemB7WOAuHrAVWcKwU=;5:mSeq187HYtlfKpPkD2slW2yfaRdBG2Q+ygzbat4m6daNnvVYz+XwJvf+d60LJhewdv8x7XKS7kwVNXOFm+NY8NtZrfl7jySfGKHXAuh5SLyGtBHj7g/y6G5Db1kGgw2fmvslpcvLZNxZ9fJmF51AMWaJZS5J/h/i8MD/KKA0JZI=;24:0uEnizvr/0osMDqcIEpaP6cOZLTHHI6NhIcgwC5XQBRUVJjTEcKhsTWdAFDp++9r/1Zm+iiHrV+eF1U7rxxdRaGOU7AFRN4vRXjs6wnFkl4=;7:AfrCtdDyUwz/94opVAcN5U6wQbaXS/zhGTKV3+ztz6ac0ePHnd0adJtzy4FSI/+ev+aA/GMRnnn6hRVV/FWqjX6WyKG9UaiVuZ2lpJYXMHmRWK2TKT2c1rxlBX3BsHjOzAmLqEJy3sGyFAbY5xft4lvq6g3zrFiVLsjYddBXIsyKohQp9RJb4KXbblhV+ak0B9YqZFKk/zp14CUoECMBsiIKGKlfpXSGskGssPPO8t4C1vTgJO9L1xEjCruz6OVI x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(6009001)(366004)(346002)(376002)(39860400002)(189002)(24454002)(199003)(25786009)(478600001)(65816999)(66066001)(54356999)(93886005)(229853002)(59896002)(101416001)(80316001)(6486002)(316002)(76176999)(106356001)(81166006)(6436002)(81156014)(305945005)(87266999)(36756003)(8676002)(105586002)(6506006)(39060400002)(68736007)(97736004)(4326008)(99286004)(3846002)(5660300001)(102836003)(6116002)(2950100002)(14454004)(8936002)(86362001)(7736002)(54906003)(6916009)(3280700002)(53546010)(6246003)(189998001)(2906002)(2900100001)(3660700001)(5250100002)(50986999)(33656002)(53936002)(6512007);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2269;H:VI1PR0401MB1856.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 825cee52-479c-4d16-751b-08d53664d432 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603199);SRVR:VI1PR0401MB2269; x-ms-traffictypediagnostic: VI1PR0401MB2269: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231022)(93006095)(93001095)(6055026)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011);SRVR:VI1PR0401MB2269;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0401MB2269; x-forefront-prvs: 0505147DDB received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <4D838EF3DB68D7488571B0B09CBBAB0E@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 825cee52-479c-4d16-751b-08d53664d432 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2017 13:35:02.6249 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2269 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/28/2017 02:59 PM, Greg KH wrote: > On Mon, Nov 27, 2017 at 03:32:28PM +0000, Laurentiu Tudor wrote: >> >> >> On 11/03/2017 05:17 PM, Greg KH wrote: >>> On Thu, Aug 31, 2017 at 06:04:30PM +0200, Greg KH wrote: >>>> On Mon, Aug 28, 2017 at 01:54:05PM +0300, laurentiu.tudor@nxp.com wrot= e: >>>>> 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/li= nux/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, T= ODO. >>>>> 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 >>>> >>>> This is going to have to wait until I get a chunk of time to do the >>>> review. Probably after 4.13-final is out. >>> >>> Ok, review comments as I go through the code: >>> mc-sys.c 323 EXPORT_SYMBOL(mc_send_command); >>> >>> should be EXPORT_SYMBOL_GPL(fsl_mc_send_command); to match up with your >>> other exports and global namespace, right? >>> >>> You export a lot of dpcon_* symbols that no one uses, please do not do >>> that. Verify that all of them are actually used right now, if not, >>> remove them. If you think you are going to use them in the future, >>> wonderful, add them in then. >>> >>> Same for your dpaa2_* exported symbols, most are not used from what I >>> can see. >>> >>> struct dpaa2_io { >>> atomic_t refs; >>> >>> That's a kref, please use it instead of trying to roll your own. >>> >>> And even for this, your locking is not correct (i.e. you do not have >>> any), that needs to be fixed so that teardown works correctly. >>> >>> You have a lot of WARN_ON() calls, that's going to be ignored and shoul= d >>> all not be needed now that the code is debugged and working properly. >>> Please remove them, or turn them into dev_err() calls with a real if () >>> check instead. >>> >>> You are checking "strings" for the type of device in a lot of places, >>> like this: >>> if (strcmp(obj_desc->type, "dprc") =3D=3D 0) { >>> why are you not just using the built-in driver model .type field and >>> comparing that to the different type structures? It's much easier, and >>> you don't have to again, "roll your own". See the USB or Greybus code >>> for examples of busses that have different "types" of devices on them a= t >>> the same time. >>> >>> Ok, that's enough for now, please work on this, and we can go from >>> there... >>> >> >> What would the next steps be, now that the patches are in staging-next? >> Are there plans for a new round of review? > > Send a patch that moves the files you think should be moved at this > point in time, as I'm not quite sure which ones exactly you feel are > ready to go. The initial plan was to strictly move the things needed by this bus=20 driver, thus leaving some source files at a later time. To the point,=20 these files: "drivers/staging/fsl-mc/bus/dpbp*.*" "drivers/staging/fsl-mc/bus/dpcon*.*" and this whole dir: "drivers/staging/fsl-mc/bus/dpio/*". I'll prepare the patch so that it's more visible what files are to be moved= . --- Thanks & Best Regards, Laurentiu= From 1585314835421653614@xxx Tue Nov 28 13:00:41 +0000 2017 X-GM-THRID: 1576972122641129236 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread