Received: by 10.223.164.221 with SMTP id h29csp237055wrb; Fri, 3 Nov 2017 08:20:19 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TeMckMH45H+6nmqKzKgENPPW1eat3D0UaAcTuuFQbhiCnxygErqNBRlPFD5Ai8anBrjVkX X-Received: by 10.98.160.13 with SMTP id r13mr8138537pfe.187.1509722419224; Fri, 03 Nov 2017 08:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509722419; cv=none; d=google.com; s=arc-20160816; b=MByQEea2DUjaaNHwEJ2twXkx8Ebn/GZgxfPUW0al8QVBuZWT7mAE71jH3O14p80Ub+ q0/wRSIGAr1BfsWAK8BUK61Cjujh/qoHIbiJWu6OYyc7+QyPyRKeV4/88vjKHzvW0irN vka+NpRPjSMIr8SR11rYKlej0mkWWjCYp9U5hpt1wiHu7oE+fILzaofe5HNpVF0n+LW1 QClu1ZDmIVXaT30BBYDlHEaQ9B3IpIkQuZ5PeaU8y95BOriJEOj30xh09iPiDdk/rrwy eylANYpGJ2XgBX7eyHRj05vni2wMf9r7r9/i81xAKOKnbsVsbGyIlCwgAz0CALFD18aq 13tg== 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:arc-authentication-results; bh=of6Cb5zRpWNYp2UX7Rf4VkjcqtVwzpkf6MpyvVrdclY=; b=MjTfduDS0PAWi2CFeIcsmD48WM2ECHVG/zGd5o6qR222PAxvYsJ9bbyPHy/9TSgPkb 2a8cPiM8ELmJIi1ViiRFQ9PnpMZX3k7lN3LAWNfPdDVieWI8Zc3/NKpUSxT9hDiHCa6Z Wcld8EW5poW2YLlGEqZCGt4lE5Rq5pI15TfudRVLHgA4Yjnjo2CGbOYyujMi8oDbn9sj tRahF6hC9FLXRg2JRIZ0HY+cDO3RSeXWEnfgyQbaTvp/09gpGd4L1672+G4MjAX3DcA3 33dRbGLWC16JL9sj6iKiw2EN3Utn3trtCw+Ozr5a9sq5o93qES6EG7HpAxR1gI/ZoNnC 75Nw== 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 90si5055385plc.506.2017.11.03.08.19.42; Fri, 03 Nov 2017 08:20:19 -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 S1755613AbdKCPRB (ORCPT + 95 others); Fri, 3 Nov 2017 11:17:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36334 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbdKCPRA (ORCPT ); Fri, 3 Nov 2017 11:17:00 -0400 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A13EC97A; Fri, 3 Nov 2017 15:16:58 +0000 (UTC) Date: Fri, 3 Nov 2017 16:17:11 +0100 From: Greg KH To: laurentiu.tudor@nxp.com Cc: devel@driverdev.osuosl.org, stuyoder@gmail.com, arnd@arndb.de, marc.zyngier@arm.com, Stuart Yoder , roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, ioana.ciornei@nxp.com, Thomas Gleixner , leoyang.li@nxp.com, bharat.bhushan@nxp.com, linux-arm-kernel@lists.infradead.org, Jason Cooper Subject: Re: [PATCH v2] staging: fsl-mc: move bus driver out of staging Message-ID: <20171103151711.GA22453@kroah.com> References: <20170828105405.19552-1-laurentiu.tudor@nxp.com> <20170831160430.GB11200@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170831160430.GB11200@kroah.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 > > 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 should 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") == 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 at the same time. Ok, that's enough for now, please work on this, and we can go from there... thanks, greg k-h From 1578249060667613584@xxx Mon Sep 11 13:13:14 +0000 2017 X-GM-THRID: 1576972122641129236 X-Gmail-Labels: Inbox,Category Forums