Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp925019imu; Tue, 20 Nov 2018 08:59:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/WJmTRx2ai3pmnpaeeGvpkvetaknzZB1wDy0+IlnwC+pB2p6StLcFq/ZS6NeKsWIQl4qY+d X-Received: by 2002:a17:902:b7c7:: with SMTP id v7mr3014714plz.75.1542733178806; Tue, 20 Nov 2018 08:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542733178; cv=none; d=google.com; s=arc-20160816; b=eEsep02b2ZwrkM1oU7X4X9pYqdvbnUPmhRRDOSG+3eXTrkMb8u0hpSqx7Abu8zyfjm +b0MxcJtLlsuSDV5U4S35FfPBI2g4y5EFkFrO5ZzBGKcioske1aMx4LgqQ0DgTexq5Dd f/1XBEvV1P87ldYf2jA1GDh7BeZagsMfoLxXRFjyg0R3AN7JTbxh5+HyuSSDaMECOhQh d4DewaeUiI+8wDdpQHDu6VtnV6DueYSvrWGXXd1yuDzbzmb+kGhD7OEIiqohi+K1TCJx vY//mDuSMTVs9NJhcBBOKNWRTllZ6/3Itvr1LQFmwBcMU7y1VPn5FRlcIbTWzaWIr5ED UQBw== 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:dkim-signature; bh=15Y4eA5tkma7bypotI+hpeJSsnKhUhMtg2Cl6cMGufg=; b=1AxZyJs27iuxorod/yGdt0Y4eejYgIuuREhwxUyTYB/weCAWvshuo4uwqRhzaaJI51 qiuWE9FLo639uWy73/e3AH2WZmh6wwxtKg6hQqtsfki2jNnpGUxdR3xj+t7y/NFHRDcC 4gqFe0yHQqt0haa7RkPIouM8vNsWS7PNIhUgomrZKyHNJShgg6DExzNvw9Jfdfewg8hQ zAE7NLjJRmr/S5sI4bexK5ZvLQuQcbQlqdWQnCaKbOesTX1Gw35KxR5MZ8leUOoTNAdx xvwcsEOsmIQH/Nk7ToPiD+uQCy8iUtJDt9lOkZWJMczttmG/y6FNIXvzHcgAXo8qWId0 JvuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ajLBHnI+; 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 b11si10945828pgb.536.2018.11.20.08.59.24; Tue, 20 Nov 2018 08:59:38 -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=@kernel.org header.s=default header.b=ajLBHnI+; 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 S1730345AbeKUD2R (ORCPT + 99 others); Tue, 20 Nov 2018 22:28:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:44886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727085AbeKUD2R (ORCPT ); Tue, 20 Nov 2018 22:28:17 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5311E20831; Tue, 20 Nov 2018 16:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542733089; bh=+1YpEoUYxv8/Ge0Eg8VN6vzwCvtyTn2eXcxNunMdvoU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ajLBHnI+KIckSWq1IUNOHSo9OP7GDHpyr+xtDtstNNoa4Q6igPF+detG6c2PbKFBi zknwBxlSuRESpDMojwylVfpXakdFroPa7findRRoXhtVUbRYDVcQ4ahQcJcdgBT2lJ L2qZuHlVQXWkvPMUOb9P2vseJHFefdcNy9DTd2FI= Date: Tue, 20 Nov 2018 17:58:07 +0100 From: "gregkh@linuxfoundation.org" To: Ioana Ciornei Cc: Laurentiu Tudor , "linux-kernel@vger.kernel.org" , "netdev-owner@vger.kernel.org" , Ioana Ciocoi Radulescu , Horia Geanta , Leo Li Subject: Re: [PATCH v3 2/4] bus: fsl-mc: add fsl-mc userspace support Message-ID: <20181120165807.GA28793@kroah.com> References: <1542728371-6972-1-git-send-email-ioana.ciornei@nxp.com> <1542728371-6972-3-git-send-email-ioana.ciornei@nxp.com> <20181120164416.GB27531@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 20, 2018 at 04:51:07PM +0000, Ioana Ciornei wrote: > > On Tue, Nov 20, 2018 at 03:39:45PM +0000, Ioana Ciornei wrote: > > > + > > > + error = fsl_mc_uapi_create_device_file(mc_bus); > > > + if (error < 0) { > > > + error = -EPROBE_DEFER; > > > + goto error_cleanup_msi_domain; > > > + } > > > > What error could occur here that would be somehow fixed if you defer and try > > this all again? Shouldn't you just return the error given (as something really went > > wrong here, it's not a "something else needs to start up first issue), and abort? > > > > It's really a "something else needs to start up first" type of issue. The fsl_mc_uapi_create_device_file fails only if the misc_register fails and this could really happen when the misc char driver is not yet initialized. > > Initially, I have used the register_chrdev API and you suggested to use a misc device and just defer probe if it's not yet initialized. Ok, fair enough, looks good to me, thanks for answering. greg k-h