Received: by 10.223.164.202 with SMTP id h10csp3009778wrb; Tue, 28 Nov 2017 05:00:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMZTfo27kmCUHAbh0E13gQVe8LMlLYGKIwSusR3LHy9CQTC6BDfXq0ldXPH7URzg/XjGADEZ X-Received: by 10.98.134.65 with SMTP id x62mr40719769pfd.81.1511874042214; Tue, 28 Nov 2017 05:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511874042; cv=none; d=google.com; s=arc-20160816; b=jt4kHEA8e7RiFtPo33E5PdjLXa4FXETKohkHDMu00UlsCASk0k1f67lgGxo/Lrf1+P LDDafjBhBUl+kxGbijAXnzN1qVodQ4o1wWwUE6wuq/ZTX8tG8kJ8hC3VqQOi6yrsivYc 2SmcawmjAV92KklA5ngtixgWe8TrgivD84Dafofu4SEGYdy9OPamfbNzISJWaZEV7vbV 5QaeuGGx2YUwRRCp5x6eAUSFado201HgIApoTndkb/i5VzsGjMkb2LgXbHPHl3c2l/rR oYZWijrm9UuVl1uB3px9CLoZqAxKgRdCaTzrW0+qADS2ryyHx2w7g4RTMIP8f1kP9ZAz jQ7g== 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=7x8yyAd4viO7XVSGilGcvBlEqfINEObwmj+zA1vtbjM=; b=ODZNaBDeDTrj3WK2WDtvers/BZGWiOENXm1NaxqUAvBiibqwYwB8sQ/Zuv6CE0Hiiu cIpGu3V6IjMfchpqvWuLOSNZJRiui0z9/PaBe0fJy+sJD31JVFrfjTdFBt3FbvNRNiVd oz53oK8EUhhFsrydWMH80YVWNmsqGt02FDo0URU0L5bFuQIveZwA2e31cq4NJp41nASE HcZJNABLTRlttqQexrpj59uL0M2vZmQJTVy1rLvuGPqFGnBRd7hnVPPH6zMY7Zbs/REk kaEaBqbPqUa6ausfwyVbYbscpFDyr860w7DbdHA6vszuV0Sg72Rw6llrqhBfVtR7j0dp rSQQ== 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 m10si24833383pgt.446.2017.11.28.05.00.30; Tue, 28 Nov 2017 05:00:42 -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; 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 S1752617AbdK1M7C (ORCPT + 76 others); Tue, 28 Nov 2017 07:59:02 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:46868 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752223AbdK1M7A (ORCPT ); Tue, 28 Nov 2017 07:59:00 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 395E9360; Tue, 28 Nov 2017 12:58:59 +0000 (UTC) Date: Tue, 28 Nov 2017 13:59:03 +0100 From: Greg KH To: Laurentiu Tudor 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 Message-ID: <20171128125903.GA13019@kroah.com> References: <20170828105405.19552-1-laurentiu.tudor@nxp.com> <20170831160430.GB11200@kroah.com> <20171103151711.GA22453@kroah.com> <5A1C2FEB.2080006@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A1C2FEB.2080006@nxp.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 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 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... > > > > 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. thanks, greg k-h From 1585233867034813416@xxx Mon Nov 27 15:33:44 +0000 2017 X-GM-THRID: 1576972122641129236 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread