Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp314454ybm; Thu, 28 May 2020 03:32:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgb4giRFqvAA1bUjDeySGmeo9KHnMOqDgj2FMuWVwNio9P/5qXN7Wizn3nSCgaJDxXA2zv X-Received: by 2002:a17:906:6bc5:: with SMTP id t5mr2268651ejs.459.1590661940206; Thu, 28 May 2020 03:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590661940; cv=none; d=google.com; s=arc-20160816; b=YnTogK8xsSPyGnTwo5squdRINXi6FGnNtlgNFnWdlvzK4z5FVQFz5pOGYjT4v2iZoU D3AmTktEjXatLkBfMYHAaKDBQDWIC1jk+hjjxsNH2vaQByf8UCbvZu7YgRBUid4bsWaT eCNiu+UtZjzTQL9o/2cJhSPDLTWeVmewFNBzFBFubMKY/KUP7UOusxy2ATBvt+FxAXAS oM4ClpnOMXKQlPj/rRnXr5xWEGcFPYe42+PcLyq/aIk4hEUn872iXjdUSwsN9G5T+vMO Q6tBNiIyCU4h9ZmDQSEjNTE9mTr0GFvn7J+dRlmBSAhwmy3wUm0Y/IFRxpDZwStK+c1I smkQ== 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=i/UvEqGuK6vP3tR20nRQrMnbuGyUZoQOqUKsj37TXl4=; b=s8iR0lPuSHumug+Fedx6eT3KhQ7FAg6s8Xg2YA+cb9e4ZFIRC2wiJVjzkhH4YcM9il P5V1gBVZpIcOunJfr+euvEC7PVuzTqKj+yGaVF/mvGlBnbMel2fKm55P2A6zK8BKT83P P6oa7GfJLissb4HYZoZ3+eWKckKZvrTNa2fekbcJsiUvX8Y/vrvHKb2srXCsuv/+zyJt fJDDpnIzsgM6cnCHzq74rDFVSYPTrbvovEiFCov130RMptOdOhDZ0Bus7FwRAlxEBz+J jr+mX5dfmlkyLyJpfDvhvJZKzyVj9cWLkNZCdVjuYqkeukseA4sTHoUKSBKbw7ic1Sl3 zs6g== 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 a17si3405996ejy.272.2020.05.28.03.31.56; Thu, 28 May 2020 03:32:20 -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 S2387893AbgE1K3Y (ORCPT + 99 others); Thu, 28 May 2020 06:29:24 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:54951 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387842AbgE1K3G (ORCPT ); Thu, 28 May 2020 06:29:06 -0400 Received: from mail-qt1-f172.google.com ([209.85.160.172]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MQ5nK-1jR6cR3J4a-00M11t for ; Thu, 28 May 2020 12:29:03 +0200 Received: by mail-qt1-f172.google.com with SMTP id a23so21775044qto.1 for ; Thu, 28 May 2020 03:29:03 -0700 (PDT) X-Gm-Message-State: AOAM532jmwbvJQ280XM1MnmAvw2LOR6EVzwdb7C5kmmAHojYLRj3cC/L LMqcNVoy0tF4t8Bu8OhdFOyrvHDuyIEI416SQhM= X-Received: by 2002:ac8:1844:: with SMTP id n4mr2210189qtk.142.1590661742672; Thu, 28 May 2020 03:29:02 -0700 (PDT) MIME-Version: 1.0 References: <20200527112608.3886105-1-anders.roxell@linaro.org> <20200527112608.3886105-6-anders.roxell@linaro.org> In-Reply-To: From: Arnd Bergmann Date: Thu, 28 May 2020 12:28:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/5] power: vexpress: make the reset driver a module To: Rob Herring Cc: Anders Roxell , SoC Team , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , Linus Walleij Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:RQzF1yQzx+K2cLpqpCusoYSQA4uv03CisgmvX1deqeHfNiEWKfS JQbQ9CCCZcSJVbmrDB3ve8hjR5GFztB1bHHBjxOC+KdsUpOj2Xa0MPZDK1aiSazBEsNdbAW TvAsqim+ALTcJohHUgHTefHr6obVaB9JQf8kAREwuPcshzxcblfVfg9PgyE+RUxyKH9Bwdy pfFTlLakx3l6VVhhk93Ug== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:EvMnaEqN+Kk=:I0dZKNV77g33RHmZ+9q2gz e+zHIq0pHHDBBFivIlZHrkmo58NTGYg/H63E66BS96NYxmFFxM+HJDsOQFZz4hlbAykLJFXWg rXdSMrnmZWk/5kWfcjBusVXtsGsLfpeV/GBiJ84rTxiA8DaswtNWyr83G3uTadZAQ4SCh+58Y wNpWrZ4AfLq2WyfygF9v7zLiqdQsekoYYaIVoi5ea96SD1fhE11Zwlo2L+8kllye9HQsXd3oi zwoWHRHdZHd/FNTG4P9Kq3T3TMZvowxWQO3p7VxatGkAJpiX7fYpn7k0IH5zZc+GMw/5phTbM RHpV1NXV9Rc7kUqEzdU7EkI0AcFLyOVVCIpqHUFmMo28a56FKoCtXa34mG2KpjpRVNJZQTpc6 nzi41QsWmikRT7bAxLGw44QZU5f31MaMFxFytD5zCPTXl33rLvPiWWsXZdM5A3+wggsWha3oj joZaQPBo+7dcbY+pZ1+YHhYd6Tcwmaqid8XMZRZQ+pCVvUiyhd0pLgrXjot56V93H07TULXMj 3eu1Ng+k0vwLNQW79Pwfs8+0hONmSI+AiL61EaT3060xgVFOe9Rv6AtQ6Awx6XlJiGrb8/C2c pfRVO91TE+L6eBIpWSy7DGlhOJbiTzol+G0Eqd5+ou5WHbgZ6O/+cz7izdLbiKqyVrlMuLk95 uTyCtOR8Lre4ym3Vg4ucPWNSItD9FLdytmvoHMyo5+ALpxuHukb1Hf1dHNm0raCZSGwABTXWv guDfhwXn5XV9xljTf/B4YLrickiYg02TkJgbBFfbQ5kP65YihSmm5ip9suohgm5vP86j6QF8n CCmpD95qnXEg2TGGaOKAtEUI09+a//ZpyRYdhn2Q+3JnrI4wQ8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 27, 2020 at 3:32 PM Rob Herring wrote: > > On Wed, May 27, 2020 at 5:26 AM Anders Roxell wrote: > > > > Today the vexpress power driver can only be builtin. Rework so it's > > possible for the vexpress power driver to be a module. > > This is the same incomplete patch I did[1]. As a module, it needs to > clean-up everything probe did like overwriting global variables. > > Rob > > [1] https://lore.kernel.org/linux-arm-kernel/20200419170810.5738-5-robh@kernel.org/ Your version was actually broken because it allowed unloading the driver again. The version that Anders sent is a bit better because it explicitly forbids unloading by having a module_init but not module_exit function, so as long as the .suppress_bind_attrs flag is set, this will not crash the kernel. It would be nice to have a .remove callback, but for the merge window I'm happy with a patch that fixes the build regression. Arnd