Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2550952rdb; Wed, 4 Oct 2023 05:01:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPS65XkLmxeq6amCPh3msvlz5omYZ8svbzTIEPSyALxqjI8dk7qxcRs6BBpp7U8LWawZnt X-Received: by 2002:a05:6a21:197:b0:149:122b:6330 with SMTP id le23-20020a056a21019700b00149122b6330mr2575372pzb.10.1696420883267; Wed, 04 Oct 2023 05:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696420883; cv=none; d=google.com; s=arc-20160816; b=yF/riUsbYIKnjLTIgDn8NIErfMKaCgFUDWagxrfyqtdPKEu4uYFZbZJbHryORQWzhL MPCmT5YFt7R1aev+isCIEgKL/iLuu6URbNZ6sDdOoZkQ39Nn6xEXkLM3LpsuufV8phO8 OAJJRDXm3CCk/AnmTi4fA4u+dOQ2PFbsPqzS10vuxn8MlyQPJ0M86HKrVTW88Igi7eQz B6EXqR/OoIMTTP+pu1DpP09FLo4Em+FpKZKe+pBVguIhsPSseAZuXywXR8uFnl0w9yrF vFnbpSAVmQRRd39VPBFnyIS4ofvWAQ8gH//lcx45iC3NXtHxB7oajJwGTxERvkZxEuhP +Dzg== 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=5VxF9d0mojGG7o4cVpSUHCY76AoqXAbBRiV4n80jKEw=; fh=igjo132xSZGH22rNhN2aQOUaWsx/WZWxUMjYyaQE8q0=; b=sf+I+H97nt4VSxSiQeax2saOr/gQmmdLm0XW8QH13OCzDeqCfNSSn2foLsHKF1EuH0 l5oZ6E5K27viMm3xPJHnDW4dUy023rbme/cMv9lWcyTBv5Jpmy8iO4DE1SCigPTVaOK0 LkVlp0aTnX4xnaiDQ+8yhIipburo82kapWYnLyBKD4YODOkxbsn3bOVVdv9pRF58kW58 l9OB4G1nBK380sGCsjFuedIdxTVGoKCFgUKl2I4ZD6bzCHOciPLZFj0cmZ4GxZRFgSlr YBRNqZ46L8XHWrl9RavvWTXHf2zcII13aXriOZSNABmLu9vQEzv3S7cZkFmG9bW6GIdK A0sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="oHwv6/DP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t10-20020a1709027fca00b001c5f15d24ffsi3491986plb.116.2023.10.04.05.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 05:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="oHwv6/DP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BC0B681DE207; Wed, 4 Oct 2023 05:01:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233083AbjJDMBP (ORCPT + 99 others); Wed, 4 Oct 2023 08:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233172AbjJDMBO (ORCPT ); Wed, 4 Oct 2023 08:01:14 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF35C1 for ; Wed, 4 Oct 2023 05:01:10 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-4545d8a95d9so887319137.2 for ; Wed, 04 Oct 2023 05:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696420869; x=1697025669; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5VxF9d0mojGG7o4cVpSUHCY76AoqXAbBRiV4n80jKEw=; b=oHwv6/DPYak/DiW3035/fi4o8vRulpJFL0nXAb1L5f5gW1bFQLIyz8cbFCYnMHUseq 8x9SmHPE79FkiEj1M7fKZX3HEpq2T7M9fzoC720BtQVXC5zw8PsjPWRMPzK/ZCQ6/nhJ 7MYHuApyLSVuLlJL7NaJ1dM2Q0R7TcVaEXQvH8YZSqHKKW6Sf7mUv6leK8FRU3rgHxVl S1ETvyihTnfD0chxYCSydvEmqQx1RJVPrNzRZPoHNiTTtYU5giP8d33q1Aisrjq3Viyx ajhhPkb+txsnhHvKJvp7PH+lbVkPjUQpwaYmMVgrFq0Ts+E/q/01c/zTSj+tCi47R95Y bzbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696420869; x=1697025669; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5VxF9d0mojGG7o4cVpSUHCY76AoqXAbBRiV4n80jKEw=; b=bpFxL1JCuU3zyd2865wjG3ctYFSj7EorAja3qKlVZSgz9rtCLBVZnqgORQRp5skPwk Fry22KHoC0JDZDCAZAkKtoVTCUpAd/7ZyBJH8Qk6cf19k7a6RIhfHeCCqv9f3sIu3+GL jXzl/IpFF7SgRMIHHrtBSvYM1hUP/lPejxBqEK/sjp5cEsAJVbBgVfVuaeEoKNABaEIU Ha4COCbIZVFrDli3Bj7r44nOg3SuPR16EXM8PcyElpTE67KPWFybOBX02E+e9WflMzVn UPMOZ+KHrlR1R8dCoRmPPWThOD7n3f2mvWfJK4ack/svFF5a9YpAvw+2E8+gwjRxYF/v 4cGA== X-Gm-Message-State: AOJu0YykLh92tmEzKl6RwNUGz6x42X9fj0iI/DQW8mw/l3i9IaWpcF/W 46QJQ3FuN5yKUzb2lqwBmxe1uvNkjKhwHYmNV0Y9QA== X-Received: by 2002:a67:efc8:0:b0:44e:9afe:c5b9 with SMTP id s8-20020a67efc8000000b0044e9afec5b9mr1545555vsp.23.1696420869527; Wed, 04 Oct 2023 05:01:09 -0700 (PDT) MIME-Version: 1.0 References: <20230905185309.131295-1-brgl@bgdev.pl> <20230905185309.131295-15-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 4 Oct 2023 14:00:58 +0200 Message-ID: Subject: Re: [RFT PATCH 14/21] hte: tegra194: don't access struct gpio_chip To: Linus Walleij , Dipen Patel Cc: Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Russell King , Mika Westerberg , Andy Shevchenko , Thierry Reding , Jonathan Hunter , Hans de Goede , Mark Gross , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, timestamp@lists.linux.dev, linux-tegra@vger.kernel.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 05:01:15 -0700 (PDT) On Thu, Sep 7, 2023 at 9:28=E2=80=AFAM Linus Walleij wrote: > > On Tue, Sep 5, 2023 at 8:53=E2=80=AFPM Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > Using struct gpio_chip is not safe as it will disappear if the > > underlying driver is unbound for any reason. Switch to using reference > > counted struct gpio_device and its dedicated accessors. > > > > Signed-off-by: Bartosz Golaszewski > > As Andy points out add , with that fixed: > Reviewed-by: Linus Walleij > > I think this can be merged into the gpio tree after leaving some > slack for the HTE maintainer to look at it, things look so much > better after this. > > Yours, > Linus Walleij Dipen, if you could give this patch a test and possibly ack it for me to take it through the GPIO tree (or go the immutable tag from HTE route) then it would be great. This is the last user of gpiochip_find() treewide, so with it we could remove it entirely for v6.7. Bart