Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp454497ybt; Fri, 19 Jun 2020 06:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOwQWAQWEeeK+sNsns1TwoGfGwGAd+QfYOTdrcfoPH4MrtFZmANIE9A/xEKB3af+QwKZUl X-Received: by 2002:a17:906:118e:: with SMTP id n14mr3784353eja.314.1592571645785; Fri, 19 Jun 2020 06:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592571645; cv=none; d=google.com; s=arc-20160816; b=HWR7U1ROkA8a/96IvYU2o/bEvYbDftyu0nM1j53nlNL7LjtrjHEJBxhk5smRdUAQb/ iK3RsUqsri+EG1e2BJIOf2q0EJEM2tvXpV2tW3Sqsv05xRUmrUFKSEA+X74YJwcXkPqY 78qZugSvb2X578uB5pyhiS0PZYFoIpIdRtS9tglmyby+ltuzP1V5jLLjSwBwweylN3rg FuOs06NJ2UzxLgonqUq7WccXQr+k2Af27DXWFaD0QZ3QMV3Qh2mcPDWmwlMYrz62eYtF rjJUKD7BDRG5rObtAQm91xCnWUZWQYimOYj3xHeviWbBHRu0AnIkOJhy4rz7bMttmHhb dfhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=SHCH9BoJaGFv+5mnp5gcVxGHjUIPYGfqNSQ2LFqXXP8=; b=PpdyimJKvSjQNMPRLmOLq+xyNg82EAG50C2A27+iQ2TMidsLXKLc3W1IpA3RyOwsrf KKVxjX5fYgeXrQJhASghG3IwCbaZVOwKft9M5QfVyZxE+t64HCiUwpxckMgkgfXA/COS KW1yJln6ymrBAIsyVevYIweDgAZM51YNck3kvK8tasJ2navlVe9bRdF1v2aPSbCsKFI6 Nt28HNNiw8o81w2Hwt/wT7u6VHYoecMTBr6zAhUrfhvuCzdenYQjEYyA2N/XUxAurJKJ Jwjei9fHnwUvQPQ10jq4z1Ig2Ux5KpYtUo/56C6J0OpXnhwbji4I5gZ3GYr/vJffirGs cQEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr26si3796544ejb.170.2020.06.19.06.00.23; Fri, 19 Jun 2020 06:00:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730051AbgFSMJh (ORCPT + 99 others); Fri, 19 Jun 2020 08:09:37 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:42165 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbgFSMJf (ORCPT ); Fri, 19 Jun 2020 08:09:35 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M3DeV-1jjE5z29Of-003aNF for ; Fri, 19 Jun 2020 14:09:34 +0200 Received: by mail-qt1-f179.google.com with SMTP id e16so6972584qtg.0 for ; Fri, 19 Jun 2020 05:09:34 -0700 (PDT) X-Gm-Message-State: AOAM530o/TjpGfNnAsRSA5Cd0y1FN1Se4HlxlrF/eNOAVMvjg7IxdXg8 jNgNqTH/o5bKitY077myE9SO3jgmmuF4Hu27qOs= X-Received: by 2002:ac8:7417:: with SMTP id p23mr3002032qtq.204.1592568573384; Fri, 19 Jun 2020 05:09:33 -0700 (PDT) MIME-Version: 1.0 References: <1592369623-10723-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: From: Arnd Bergmann Date: Fri, 19 Jun 2020 14:09:15 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] soc: imx-scu: Support module build To: Anson Huang Cc: Aisheng Dong , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Peng Fan , Leonard Crestez , "krzk@kernel.org" , Daniel Baluta , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:jl/lT1XI87C/+ifYXhg/52Hr7i4i5c1nDgolYvu1U/DOCiSY1Wu 56yxmljRi5Y36yryDX7kF0kD4st9wXiPUV4VedCMCs2GGI5LTPcMlNL81e3I+cAwfXKvdXK WTcJoi1+mWNnAVQ3fAvDxhU/aIMGNEOgsA3NgR9L+zF25+K+PNqbLBTVyfKmsXLuvtZ9v/M JcJBx+t9QxKdurVIBtI4A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:l5O1qcmzP18=:sP3yiUzvTWspeFuNvthZnz eRPCFITOjNCUxcJvjJKeHcGjAKsVmI29xJTDn5nEKjB5FsqMKEO1OOUhQY0vhhDBbFFSYjZoD r3fr80thR9CY0NqrDFDCah1UvXc1PLpgT/cRTPzZLVbtb7t/ialI5VuiS2jFlxXm9933O4fru W9//+vIKYnPxOxM4kjvnhCPEwBslbuvndwoK5M8LHDNvjeGrdTvH7Di3EPbvHh4QNh7XM7kfL VqZjY1nVJHxM/b+stOesWZ8fqLSbs7KNvEogIxJMgOaVLU2YoqCkMzla9HJ9PDmPDt+tlzGle LK6YYUt8eoOVqfeBKN92/92+TJ1bO6vUHvITO4FU0ltTGX4djh4QLLNG5wm9Py4NSEr2F2VaY A+I9SKzdUfT/6X74L1ZYgEEsSkuKE1C3eco6HL5iyP1gZiU8eZuD08Fyy1y7Ws6ALIUeDW2kT Y2IJa8e673l3AJCs1MAmwDI/2iKFARY/3ZuEL8541Wo98rwCgfPmWXO30SPo8tEXUImzPKejZ 1L6gfpxNvMsdL+HqUUjGog+nGFll+VG7uWs1i7Gm99PD9dfRr3nCicxG51FAetaPqjJ4Q9j15 JzL9X0VzHU9i32M93oeLmmv/988Lj2bG4Dl9ExzcnezrHNa8poz9o1AZMdzJpLKw+RgBB17Xc zapZBM9M7I5ddJBL7uLOWbiJL/rE+JJ45le3i8fMkSEncqt+GTLKucnM+hrPETkwQpJcftcOP ICYCfHAx9HgFhSF36wiQ8HB+MkAVaybSIO6mGIuvZRIR9NyRafF6bepQTJZ7/Q+k7BeHU8CeB DJcmg0bscrtt9Q5prGcgP2r8HDhdivbwK1rmoGEZbu7ifGJEaU= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 19, 2020 at 9:40 AM Anson Huang wrote: > > Subject: RE: [PATCH] soc: imx-scu: Support module build > > > > > From: Arnd Bergmann Sent: Thursday, June 18, 2020 3:21 PM > > > I see that there is indeed a driver for the device node in > > > drivers/firmware/imx/imx-scu.c, the only reason for this module using > > > device_initcall() with a manual > > > platform_device_register_simple() seems to be that we cannot have two > > > platform drivers bind to the same device node. > > > > > > I think a cleaner way to handle this would be to just move the entire > > > soc driver into the firmware driver and then remove the duplication. > > > > > > > Yes, sounds like a good idea to me. > > So the idea is to remove this driver and implement the soc id/revision/serial_number etc. > in drivers/firmware/imx/imx-scu.c, right? Yes, I think you can basically merge imx_scu_soc_probe() into imx_scu_probe() or call it from there, with only a few changes. Arnd