Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3072154pxb; Mon, 25 Jan 2021 06:20:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRmDBHJ85/eCvwnScDE3DfvOnxe1q6OaJoQ8O4wT7vt/Q3JXX71dKy3r+rKai8XRTmWNkI X-Received: by 2002:a05:6402:5112:: with SMTP id m18mr652536edd.129.1611584409099; Mon, 25 Jan 2021 06:20:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611584409; cv=none; d=google.com; s=arc-20160816; b=pi3XAe2MpBRUCGIZCTGcadAIk3YK6pwoOvLVmKTrZ7e4juKCegd+B9Y9Go2m40CdPc X8pR5CJYWb9+W5Gupzk+dmvj/HpA/gJgsklC0rypTvQazgmwRtmLu9RDZB8QQ5mBISvG yyzF8ZbLP5aJ9xs+lHFDN0gBPaSen226TH84jNEtf1K08/x0ylBuTBy6AHQMyev08zEa XWp9E/eqZ8C++PQEkyGlJ57XSwnfsp1bAGEnUBv9tpQXR23641UumRY+ESk61L004uLW iK/cPVP48CyIAwDGqncu4mfcm++WzmVURQw8HnDhDeQzLFo2nnNO3YgG5yzf6AvfdEZo A/9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=b70UYa8YIK0x9xv+9vYo/yu767VIPloSWRaqTr4Le5U=; b=p6oiZSSExHEjqIFDoI2qzvk8gsdAZIQFqH1OQZCfzdPhcTF+V4vUztlTAV/byl+Aqt 0DjptMFoODE4rlhOMxwIrWcrED8G5g6wbuDuzZ/Cs1+4q0cE92/ytg63v9rq5j0yzeB9 q41so7t8wgwvqS1PEK+HPrEvC6Fu9H7vJfNjubOL/K2Rj0bOuq6F3fRvChBIUl+HHRLZ PymZjj13S3mDoBQ0Mg055h7OLUOn/ZT42xgddWR15xIEE1kJ0FatjPAiKNS4TFn+7Xjq x0XK/C0QecZrb8qZXxr3F2ZQ8UA/7GDr8esnNb23dKWmC6gnuYDUkojZoNQM5c36yY3Y mciQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p2aWeLNx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l16si6119762ejd.683.2021.01.25.06.19.30; Mon, 25 Jan 2021 06:20:09 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p2aWeLNx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729334AbhAYOOV (ORCPT + 99 others); Mon, 25 Jan 2021 09:14:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729258AbhAYOIr (ORCPT ); Mon, 25 Jan 2021 09:08:47 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77AD4C061786; Mon, 25 Jan 2021 06:08:06 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id a12so9774706lfb.1; Mon, 25 Jan 2021 06:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=b70UYa8YIK0x9xv+9vYo/yu767VIPloSWRaqTr4Le5U=; b=p2aWeLNxieT8woVT0Tl/UIXog/WUBwAaE+KXDvN3pVh7Tl9ZVAD+1/JiZX0bHE311l WIS0Fc0dUG8GqfDKDPHM62E60VTzNwJvhZ46CsjqN/rZm3IzD0xVx2BxdNdl70xehQFp n+8ebZ0qkSe5mVX0/BRW+bf4RGo5bVjD8r2D8v/1iYWgFcc5Zb+cfEz5VjMIzRNnwn+t 0klFZfxePE4Yjx+zVVUFn1w+f5UJmTS05THBybzYt7h7+SNQ8mK7pDQgsyS0O2QdG4vM Spg8PBxWdArWbSyOxtTrtP1cUfqxJXuzbdVcJ81elQ7hGOsQ2WoVpl3Z2vZIob0F1fff bWEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=b70UYa8YIK0x9xv+9vYo/yu767VIPloSWRaqTr4Le5U=; b=ajqKU+lOY5i/Ac0LOz0bkepiDPCkU8gTRJLNAeUAq9y4MAYeiS7OKwzqkqr03hlJDU Uul0VwaoCXtZsKn8EySqBVNxTm8rcqNI8Y8bOvdfo7UjV0rSIM3Yxg9ylbORtbeg6v8O slmFxILim/TtO8Jt4HMxwbJ8ZSn2omJpPhUXn/fU+akKFGBqjqVFNhxRnHyaGu93QYdR kfRLkpT6SeMb6nxO8DB7Ba0p/tLyZPTZAwRMGlHT4AI1VcmoKAFZtIA9/N/qxaPPcLhd eJLcKcSBntMaawGj1RX9inCWLFu8g+7gpVhaChnyXhnmGv4nKEQuc8F6qgUPRtdlYU7j dqWg== X-Gm-Message-State: AOAM531pVhliHwqr8Gz26EC0TIDVJx+3Vb2qscyNySlP6sfX7NPFmedJ oRJyplZU9ixMfCCtdn/a9DLAGI2U9Bc= X-Received: by 2002:a19:c1c9:: with SMTP id r192mr351166lff.578.1611583684824; Mon, 25 Jan 2021 06:08:04 -0800 (PST) Received: from [192.168.2.145] (109-252-192-57.dynamic.spd-mgts.ru. [109.252.192.57]) by smtp.googlemail.com with ESMTPSA id u18sm298271ljl.57.2021.01.25.06.08.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jan 2021 06:08:04 -0800 (PST) Subject: Re: [PATCH v1 0/3] Support building gpio-tegra driver as loadable module To: Linus Walleij Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , Bartosz Golaszewski , linux-tegra , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" References: <20210122185543.16554-1-digetx@gmail.com> <24d46928-8c57-acba-f9cf-49afbe4c983c@gmail.com> From: Dmitry Osipenko Message-ID: Date: Mon, 25 Jan 2021 17:08:03 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 25.01.2021 01:46, Linus Walleij пишет: > On Sun, Jan 24, 2021 at 12:56 AM Dmitry Osipenko wrote: >> 24.01.2021 01:50, Linus Walleij пишет: >>> On Fri, Jan 22, 2021 at 7:59 PM Dmitry Osipenko wrote: >>> >>>> This small series adds modularization support to the gpio-tegra driver, >>>> i.e. driver now could be built as a loadable kernel module. >>>> >>>> Dmitry Osipenko (3): >>>> gpio: tegra: Use debugfs_create_devm_seqfile() >>>> gpio: tegra: Clean up whitespaces in tegra_gpio_driver >>>> gpio: tegra: Support building driver as a loadable module >>> >>> As these three patches clearly make the kernel look better after >>> than before: >>> Reviewed-by: Linus Walleij >>> >>> However when we are doing this I would strongly encourage you >>> to also make a patch implementing remove() so you can insmod >>> rmmod the module at runtime. >> >> The remove() is optional for drivers, it doesn't prevent the rmmod. > > Aha you mean all resources are managed (devm_*) so that > rmmod/insmod works fine with this driver? yes > OK then! :) the work is finished. The work on the modularization indeed should be finished, thanks.