Received: by 10.213.65.68 with SMTP id h4csp504946imn; Fri, 23 Mar 2018 09:11:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELvv7y9xvlobZgEwrBY67wrTJAQ9rL3AlnUrEle1bTqa7sgvzNScIYMzYXhEJmehSXtBR6YI X-Received: by 10.98.213.9 with SMTP id d9mr17873026pfg.234.1521821472329; Fri, 23 Mar 2018 09:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521821472; cv=none; d=google.com; s=arc-20160816; b=lpgP9fv+0bXCXJJry/WYW0l/M3Fv8lu3reK+uVHM4d7FgufxqMIsqXRb80t9+lMKJ9 OO+m19Ode5AM4Yuv/Oiau2mswNFKG5Z9zoXZgMeVPzJwvr9YfNGAGpO6beXEbiCacFNm R3bnEaBOkFmFsgGRkUQ0JNaheZGXV74QPJ/QPnWrXOV9AoU2FCt70qEXE5OkmoXH3Nhl qrz+WOCug6jxDn9r5+gK11sZg5i3Pv0uSTsfMEIkRT4msyoO8IxthS49hOBOGbPpHasv xsXnUEp9UNyila4YizQy5jnY5+Ym2wTM1fObSdXENLgsEULkZlZmSKFGOVzZY9IuX3xN vQhA== 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=D2KQoFPa1Y7GTHTiIer0RwRdtFz3UyZaUWA6yGW8tSI=; b=NoMdTOfHBw2wuYAE4n2uV5V6e8JGmU+uFZ4slysJ2t/VARINpfE/XZJg9vOgb4HlEy HOlAASTpKAtjnD508pQpQeGQDxfxFZX8EKx2d0+Qb+SgDiQIg8jxEjpiyV2TXs1dQKOI qQaRFmaj/nx2uvab7Y/bu1x7GVyF4xJ1Xq1/PG0xd4Znepr8AYYMk5gpJKSJzU8ToTGx tkhVs6g9whabjXA+sGtwsMoIbtkPdp9JCaNyRvJA09teMasR14WPr+t7JQ3/rlKm2WfV EUzN2z+TXyVdCSSUg1jz8dOj6uH93RbdAE6Px3+Sss+WfbOEE6VjD9olVRCifV5Eaquy 94ow== 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 t8-v6si8558239plz.344.2018.03.23.09.10.57; Fri, 23 Mar 2018 09:11:12 -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 S1752324AbeCWQKA (ORCPT + 99 others); Fri, 23 Mar 2018 12:10:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34232 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752169AbeCWQJ7 (ORCPT ); Fri, 23 Mar 2018 12:09:59 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E6353140E; Fri, 23 Mar 2018 16:09:58 +0000 (UTC) Date: Fri, 23 Mar 2018 17:09:57 +0100 From: Greg KH To: Ioana Ciornei Cc: Laurentiu Tudor , "linux-kernel@vger.kernel.org" , "stuyoder@gmail.com" , Ruxandra Ioana Ciocoi Radulescu , "arnd@arndb.de" , Razvan Stefanescu , Roy Pledge Subject: Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support Message-ID: <20180323160957.GA3113@kroah.com> References: <20180323154654.GA382@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 03:56:24PM +0000, Ioana Ciornei wrote: > > > > > On Fri, Mar 23, 2018 at 10:38:56AM -0500, Ioana Ciornei wrote: > > > +#include "fsl-mc-private.h" > > > + > > > +#define FSL_MC_BUS_MAX_MINORS 1 > > > > As you only need/want one character device here, why not just use the misc > > device api? It's much simpler, and handles all of the housekeeping for you > > correctly. It also means I don't have to audit all of your chardev code to verify it > > is correct :) > > I have considered the misc device api but the fsl-mc bus, since it is > a platform driver, is probing before the misc char driver. How? The misc code is just "core code" there's nothing to "probe" here. Is this an init-call ordering issue somehow? A platform driver probe should be after the misc core is initialized. And if not, you can always defer your probe. thanks, greg k-h