Received: by 10.213.65.68 with SMTP id h4csp678008imn; Fri, 23 Mar 2018 13:15:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELtjAyMrsBVHKXbxM4So+UtBlwA7yHLT2XxLfDzlQSqPetQnIhqXnMGPoROo8TZiNEqsCanx X-Received: by 10.101.87.138 with SMTP id b10mr21951778pgr.241.1521836124646; Fri, 23 Mar 2018 13:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521836124; cv=none; d=google.com; s=arc-20160816; b=MiuIqQD2wrSy/H7xd736NmFE6aEPnyueJA9Sl3tRWo955WwcLsZFi5Iu06ixdclZld eMfNKDK1lLpf8L/qartF3NV9Mezpd1cAT9JsOGakfREr1OLtejqxQSJnKbvGF6CRhg1H YgA1LrdejFwdOH6p3F6fh7SC41LDYKJQGPIhJt7LARC9BNMHP14mTVtIRqEAOgRZSA4q XOXtf+wbyURYxMEzICLjOylq7P3CT5V2CCA1dX4XidLpvywnj1qFlMlLXzrjcHHktRse /MoslRb8WZkSzISu+cYba+QZYivCf4LNtEWYv0eYpGmSw/40VMHb6md2piC892Xrtpi9 C0vw== 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 :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=0CnR5moVd6P+diYsPrSnaYS+C/yWTG4av2N6kOS2cGY=; b=XdOQ039C/O70UM7ZW8XjsaOeUA9DdXvfW1+fklBt8mElL3ECni+Q0h0E4lVdzHyKti ESInRpV7ftC9E3eCnFJG4srOx4p0ExSFWqMYxkYpGCQ5MshNIw+MDpp0COd/secpZNUN 7YxX69py4PtUG2GieL7POHFa4z9kUKP5QhcakgJrfL7nNAeqJCM/UAoy8q6iaE1VktSG 4f3D+27NvIf0xexqBnHcW4MuWMIuQlpGXCfhfjlr1jk2uy04EVdXLYyrddu8ZCJmQdRn jaAToO2qg7N1kEd6xDjmzN8DvV/6UPwgZ77MGvkpBEIjpAfy/viPoAKrej2Vx79JnYLj BmbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=gLYofYla; 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 g132si6527883pgc.69.2018.03.23.13.15.10; Fri, 23 Mar 2018 13:15:24 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=gLYofYla; 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 S1752609AbeCWUNx (ORCPT + 99 others); Fri, 23 Mar 2018 16:13:53 -0400 Received: from mail-db5eur01on0065.outbound.protection.outlook.com ([104.47.2.65]:6880 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751907AbeCWUNv (ORCPT ); Fri, 23 Mar 2018 16:13:51 -0400 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=0CnR5moVd6P+diYsPrSnaYS+C/yWTG4av2N6kOS2cGY=; b=gLYofYlaF+nK95fxVzqk5C7Pa/4G0EO09Ah3aPsx08cVKiFOEpWxCnAKWwfEDLEkFu1WnackJFC6k5V1JZptx6McGH/Qb0Xa5xqNsagW2AzYDkuH3C3OojcxI2kXIQmLATMuxmMync03d/ABYHW8cE2yPgisy5f4txKHaIJ1uUw= Received: from HE1PR04MB3212.eurprd04.prod.outlook.com (10.170.253.152) by HE1PR04MB1353.eurprd04.prod.outlook.com (10.163.175.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Fri, 23 Mar 2018 20:13:47 +0000 Received: from HE1PR04MB3212.eurprd04.prod.outlook.com ([fe80::f883:80a3:fbf3:3d70]) by HE1PR04MB3212.eurprd04.prod.outlook.com ([fe80::f883:80a3:fbf3:3d70%13]) with mapi id 15.20.0588.017; Fri, 23 Mar 2018 20:13:47 +0000 From: Ioana Ciornei To: Greg KH 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 Thread-Topic: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support Thread-Index: AQHTwr0rRbeSymdCeEiXdPiYqeyzd6Pd9tsAgAABPBCAAAU0gIAAQptA Date: Fri, 23 Mar 2018 20:13:47 +0000 Message-ID: References: <20180323154654.GA382@kroah.com> <20180323160957.GA3113@kroah.com> In-Reply-To: <20180323160957.GA3113@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=ioana.ciornei@nxp.com; x-originating-ip: [188.26.254.159] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1PR04MB1353;7:RQGuWcVLEtbBvpojEf5Bi4+uVU5I4vtjEN5yabyMrGzzZRg0+Fc8QncOh+FDOdJGLvGXGrxzAgnLcCQUJLkSaZMf905OpHngzEFTyS/fP24whQ6xBo0wDX4MwmRye3IPAU0IzzgMcrRHm0CEa76x964gI2DFE7zY3LsvY4AWph8IfO1R96do6jwKGYUziF0QUMjhE7e8b1QP/vwhjRxr3x7eMPt1vQp9xnKkGyQDrn1UT9+vRe5HHxsNMbqHAFDo x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 8eb48af4-63c4-471d-e8be-08d590fa9620 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:HE1PR04MB1353; x-ms-traffictypediagnostic: HE1PR04MB1353: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231221)(944501327)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:HE1PR04MB1353;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1353; x-forefront-prvs: 0620CADDF3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(39380400002)(39860400002)(396003)(366004)(199004)(189003)(5250100002)(3846002)(6116002)(66066001)(68736007)(74316002)(305945005)(7736002)(3660700001)(39060400002)(53936002)(3280700002)(6246003)(2906002)(4326008)(86362001)(446003)(14454004)(7696005)(5660300001)(11346002)(76176011)(99286004)(59450400001)(6506007)(478600001)(25786009)(54906003)(33656002)(93886005)(316002)(2900100001)(6916009)(8676002)(81156014)(8936002)(186003)(81166006)(229853002)(106356001)(105586002)(9686003)(6436002)(55016002)(102836004)(26005)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1353;H:HE1PR04MB3212.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: IPvpDm7aTexxc0wCADll/QOQHCWi3usSwjYvg/nt9mVqa8xwUimhDOF+BIToJUzObxvMJ/zoXMzDyvaaV0cMOhMS/VhSTAiKYgZ6gen6xdGStkenRWVj6ciigM42rWKRT9QOJaRXtNWJYI4pgqRt4G8gedQGW1nVsPBg9JdBsXeHlPDN95Fa8JmcohlJhPsq4s7LA3ZDsX8plp8jbnRVcw8K0ofwpRtsp4Wx9Ca2p2r6E+f/Fl89FY8uWLxKnhquo/HYcwHyQOFXMDTngm1dAvXbByCRmU2nU3RYrC8R7sofYbxkBMhTTogpumftvibeuPNulyWVqfJ+zLOWGR6bpQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8eb48af4-63c4-471d-e8be-08d590fa9620 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Mar 2018 20:13:47.5881 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1353 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 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. >=20 > 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 sho= uld be > after the misc core is initialized. And if not, you can always defer you= r probe. Sorry for the previous improper wording. I have tested again using the misc= device api and indeed the devices on the fsl-mc bus are probing before the= misc core is initialized but I am able to complete the misc registration d= eferring the probe the first time. I will update the patch set and send a new version. Ioana C >=20 > thanks, >=20 > greg k-h