Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2637330pxb; Sun, 24 Jan 2021 14:49:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvH8UDY33C1k0rW7amlwgpCcbNfoUKSIpGjT5cdObx1NcHCFneyxzDamrF2JGXnEUV2auK X-Received: by 2002:a17:906:298b:: with SMTP id x11mr940008eje.158.1611528572165; Sun, 24 Jan 2021 14:49:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611528572; cv=none; d=google.com; s=arc-20160816; b=lj89zuqkAw5907LUA1jxEWM/lBD9vHlKH3X7u9x3SwW3ncROkixJWhwdsjbdBe5/il +vfdFbIEj/zKLAaOnbBI7XG3mdKQ9kVrs9uHn5Uzk6MOnWOJhGqo3ZmwPiC+EDkqVt5U Zpuczlns7pfTo/81k+eYsN+06KDI+To484/QZ5glUKqKGqIsSXp7uYEdjCTNSOradQzl thc9cE/kCBInOrUFJgUUL/k6fnwplGEipoYFV2K0F+6AcEPE3FZasLR5nKep2ysViKWa EqpY+zN5dHLW3mVc+WfzPEeryu1Pgdik72mFGlAllQPBippNM0NOyUQqT/WFYWhxfaNG FTxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=y/Ur1icl1bDhiJCpdkX42xbQJISQc10E4JkJfciYOIg=; b=IXToYKfpJ3YQO7Nc7chM6Bk+wvvJT0Nvo4cL7g2L+FJxKUbMbN1/tJtMdgjdHHAdNK F5ZC6TZQb3BriLP2qWSxSLE/ufk24/wbzwkNFmyY6VNntU5d0qnzx6Qk//j7sdyFUN++ CoCFk3+4vuUnlouJnhYCATLSz1brry7eiw9cgMK01oKxcErd2WT7BGjHvLDmihV826t5 waHruZt4dOyOtX3GCtVJVyIWCVf0ZRX5lzSjzPAZQhIwU9GR8n5/DS0uRnRW3NVmB1LT lxc7N/Go1PrheTA7PWeqgUao5DAjxr0ETQF46xVMPqoPftZjOgvlziU4+VV1cwcim3pp 2yAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Fia13/11"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs9si4091290ejc.78.2021.01.24.14.49.09; Sun, 24 Jan 2021 14:49:32 -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=@linaro.org header.s=google header.b="Fia13/11"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726607AbhAXWro (ORCPT + 99 others); Sun, 24 Jan 2021 17:47:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbhAXWrm (ORCPT ); Sun, 24 Jan 2021 17:47:42 -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 9E8A9C06174A for ; Sun, 24 Jan 2021 14:47:01 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id i187so4823156lfd.4 for ; Sun, 24 Jan 2021 14:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=y/Ur1icl1bDhiJCpdkX42xbQJISQc10E4JkJfciYOIg=; b=Fia13/11rrtVr3VD7jIbc1K2BXfyYbZKOQTkLB5fAphprZoIvpPCfPD9iEjTxrgu6L 4FV34p6SGvJ+iLunKep0oqWeCiFrP/WtmaaTq9zJLy6Xhh/TgI0S7C/Xo/Idfmv+cAgA +0Ucp8n8H19ggvIdUc0BtrkWn7+4itcS3JLyj81g0jXRaJV0I5VOgSI0wfxhbpVGHjEZ xuNH/O9sJgiIDcV/+B7ykpvJgvaltM55BcY+DSRsFA/WMFhp0GcU1q3g/NHexoA898y8 r2XAq8Yo7i46ovoLHCweo+CMO6+tE7lVpj/hiFnpL6l5HGhrhjGbFgoSqwcgGI817arb ofCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=y/Ur1icl1bDhiJCpdkX42xbQJISQc10E4JkJfciYOIg=; b=ImOr9JTIijZpunuCMWVAVlii0allOJN4+jUWnHWslM/WS2AX81kqF2ibjwRjMDYKfT P12cg4mreP9mY33xpiYO55hD1u8t8ZhLEHe7QhdEJpeVzWvmQ81YsbcXwbmFAnAHHGm5 olpWPO9j+wRdOW04yQ3fMgdkowyxv1lX5MU0wAvKdk6rLb0koq/sDUeqlVXxqjdVdOh/ 78LbQnb8uR40HH8F0XwyXUV8Vf8wPxRlrvxtkOIB3clv/jI+cI5q7Sib0Hq3UHxZVubd UiwIiqjTTIHEmhopHMKFt8X5Llu7sQlHFot7j2OGcITnfahMUIcOkCHSSLi66DlqbMUa T0cg== X-Gm-Message-State: AOAM530/6stGzQqC1uiIwmAaTgEp3hAxRj96MBhvBluTqsoxNpaB/RxL VQVyuhGbT6Q6NCtUkh9X9ZEa87377uETjvJI/v3Htw== X-Received: by 2002:ac2:5c45:: with SMTP id s5mr278583lfp.586.1611528420080; Sun, 24 Jan 2021 14:47:00 -0800 (PST) MIME-Version: 1.0 References: <20210122185543.16554-1-digetx@gmail.com> <24d46928-8c57-acba-f9cf-49afbe4c983c@gmail.com> In-Reply-To: <24d46928-8c57-acba-f9cf-49afbe4c983c@gmail.com> From: Linus Walleij Date: Sun, 24 Jan 2021 23:46:49 +0100 Message-ID: Subject: Re: [PATCH v1 0/3] Support building gpio-tegra driver as loadable module To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , Bartosz Golaszewski , linux-tegra , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 24, 2021 at 12:56 AM Dmitry Osipenko wrote: > 24.01.2021 01:50, Linus Walleij =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Fri, Jan 22, 2021 at 7:59 PM Dmitry Osipenko wrot= e: > > > >> 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? OK then! :) the work is finished. Yours, Linus Walleij