Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3058827ybt; Mon, 29 Jun 2020 14:11:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1zqEg7LB6ZMRzEWWHlGQSXpvT7k1BU246MbgYx8ELLI+qX3qPLi/st+xKJd42k5zi+GxR X-Received: by 2002:a17:906:4447:: with SMTP id i7mr7247012ejp.191.1593465082521; Mon, 29 Jun 2020 14:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593465082; cv=none; d=google.com; s=arc-20160816; b=XNvd+O2Ydrc4cR0WWu5Vf4RaIw44sh5ue3YFm/IE2Hg2MuMg6I5YJGc+HjPfKvUkJO tiHPAEaG4Xee7StAD9unU+iwyZlt9J2tgrXmgOf9G3rM8G7RbEWSbnoWQz29D8OcXNS2 rPHtmODA0vhylWHxMC+rkJ9I4aA/2KQYU5zHSAWhqiLZ6VLp3aVQoq0AnQcpM77mHmIT Tf8SlOUUkZzjyxvBoKZcW1tJklJuYYnYVCnCBvTnTM0jjlbjUA7f6i2XbbktN7tDJoIT EDoLflVf5+nrkqoX8Z17FIDJv7KOAfH+EV6L91qgfhKjJ0JbQ+HBKb7uPJWev8pW1SPW Ev3A== 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=HPRSSxy8FpxfsRslND8oewdNsxZRjcrOLvH6NzW+N50=; b=D6aRAHFtfG8TLBmPMMGpcvCy7HzJEmiw6B7y0SqwUxSbs+ZKp+kMCX2tivdhMJRsvC 1GZ7OPtyA4mw9uoYy/ZPdzQtj9m605wWL+48fW6PZEsIEBnBcBP6ZVW4PhRIj2nKNKNX n/vqbQnXu5jSH2NyhSuyOYTKGIWiB0NK8MtEZDWdD7Ai7CgxxjZTSrs/KZ/nypvA6znE Nl/Ts3ozaNwPciJSdpX3eUGpjJvDjsQigL5fAj05QUXpWIUxGH0X+qBSOWHsobpiQADO awnh8TgJ9gh+VgzZWMck7mHlVhlJsyuwyI+p4UpZg0T1lWzQgdeXI8caYbeLZbt+Cw2s Kofg== 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 qp2si491118ejb.598.2020.06.29.14.10.59; Mon, 29 Jun 2020 14:11:22 -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 S2390492AbgF2VJj (ORCPT + 99 others); Mon, 29 Jun 2020 17:09:39 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:34015 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390473AbgF2VJ2 (ORCPT ); Mon, 29 Jun 2020 17:09:28 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M4s8v-1jrFTq3scJ-001xiw for ; Mon, 29 Jun 2020 13:41:46 +0200 Received: by mail-qk1-f175.google.com with SMTP id e11so14907359qkm.3 for ; Mon, 29 Jun 2020 04:41:45 -0700 (PDT) X-Gm-Message-State: AOAM530sasEil8ERRVXJh5zFKP1CdrVns+7gvM+HvUKJIpZdPyYxNSib bX128uWEDQ9oUqMRrgwIQpYpOk2AWicmkyr1piM= X-Received: by 2002:a37:a496:: with SMTP id n144mr14552649qke.286.1593430904740; Mon, 29 Jun 2020 04:41:44 -0700 (PDT) MIME-Version: 1.0 References: <1593425623-31810-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 29 Jun 2020 13:41:28 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] reset: imx7: Support module build To: Anson Huang Cc: Russell King - ARM Linux , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Catalin Marinas , Will Deacon , Philipp Zabel , Stefan Agner , "oleksandr.suvorov@toradex.com" , Bjorn Andersson , Leo Li , Vinod Koul , Geert Uytterhoeven , Olof Johansson , Linux ARM , "linux-kernel@vger.kernel.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:33+CLiKFpT3UwZb3REktnSgLhRP+TGYP0n/qx2LjY7hgPxhJAs2 Pp3vKZfLmKdVlv+ITRF0uFDiLRTXRwl/S6xx4y3v6eO0JktCgeYJBybd/CXHT6FsSFW9H8h Bxsk6XNBAa2NWgPMZCWr4X93/t2P2qwqlwlZfCt+0u7l5uI6jYVF/f2QTfDf1KtoX7do+qT CE32p7T+OInySAmP7P0vA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:14PJPh03Tpw=:+oF22SLQQmREumaoa5GRLe 4qt78LSb+I/Xqs07uVD8KMw2x8Q9lrkZOTXyhWInIAEG8ai6/mnvRlAFDknTG6LdYoTOdhk/5 4Kv6KmQfv1gd9UD7bIizWAX5l3Xm9bPnzJ17i3bXrgqUNsHWm1oJz9ue8J9cdWbr1XQ3xfK66 9LaSJHYtTsugrjnHiOknqk1lsrVHfm5auPX73WoP/84xX7ARhxU+gFjAFaD5H19+Jy8HfxfaA /sGBexzMi0MKOXmvzOFrD4T9cghzSlf2H0hm+IdhIol+13o4dKyrs3HJIuaBuxwTdvzu63gRR 1NWOpLloDJUBKRPmnUbbk3ctIM+n7GJBO1kaXNni9hKDpM24zd5Y1OS0vUUiqfSYzQQaHZDZ6 hV4Cp3VhWJy88nGRKqSaKnpXS6qkirLUZoXlSKNRnU6SL76gzn4rtg4JXFx1ttgh9Z3mMt7dk SF9WAy6M8mV+jbt3WZTD9eTKuYexIydpOVv6aoIMy4cpsdABUnfA7lp7CescAeORTWwgF6+SV 8mZoS9P43BLiXT0WdHt6gGfYOYYKVw1CTChk6svkUkWH9gFccR3llF/TRQOICrRyGpMqX+HLm tzFvXXQqmAQUfYuFszPq1Kqv8OyZpJ3sKt9HZWy+jDaKfjJwRDZ2AxfjUlVbjH3IdZo0DA1RC 4V33ebPOw4UVYvutowfV6L4mMiYkaTa2Kd5t6GeeD+JjCLRU+1O8/a0mbOZLaBVdWue4vqOil u1ZPZ3ujUt0s/9QYIaT8WJqz+CNqP3gsWXvDBo0ud+rZ55o4mK/JfqXuccth3K4dA8i5w8+9b qJdlRdN4nqZNEz6GFC7rEf355pdqV9WnRAFg10DWOg7C/Lf3gs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 1:32 PM Anson Huang wrote: > > Subject: Re: [PATCH 1/3] reset: imx7: Support module build > > > > On Mon, Jun 29, 2020 at 12:45 PM Anson Huang > > wrote: > > > > Subject: Re: [PATCH 1/3] reset: imx7: Support module build On Mon, > > > > Jun 29, 2020 at 12:25 PM Anson Huang wrote: > > > > > > The reset driver normally won't be removed since it is necessary for > > > drivers which need it, it is just for Android GKI support, in this > > > case, do we need to change it to module_platform_driver()? > > > > Please at least try to do it, or explain in the changelog what went wrong if it > > doesn't work. > > > > I don't think "because Android GKI" should ever be the sole justification for a > > patch. Making drivers loadable module is a good idea regardless of GKI, and if > > you do that, then make it behave like any other loadable module. > > > > OK, will do it in V2, BTW, I think there is nothing need to be done for .remove() callback, > can I just skip it or need to add a blank callback anyway? I think if everything is done through devm_() calls you should be able to have no .remove() callback at all, but I have not tried that. Arnd