Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp353260rdb; Thu, 15 Feb 2024 02:04:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8kdy+p3LGF5wdhxZnY3htNnoDUTh+OFyACuzRfDok8l7mqOQVmjKa6Ao2oQ8gcPWlvZ9ArBzkbxT8MeIGn4b9O2sjmUoDJmTIkYRuag== X-Google-Smtp-Source: AGHT+IEC8OQonKzST+S13PdNkCzisoZb6dqxtA77kqu6tWBgLMehazbl796+sViTdJIKjTr0aT51 X-Received: by 2002:aa7:cfc7:0:b0:563:a00b:ed91 with SMTP id r7-20020aa7cfc7000000b00563a00bed91mr1203636edy.29.1707991445082; Thu, 15 Feb 2024 02:04:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707991445; cv=pass; d=google.com; s=arc-20160816; b=WSsjfSUa2bpNqA+NmzxVUQNy62v6jcdST1dEGzZLNgGOR8AQnNABh9+wg+OteMxZHr lYCdB4DhnI5XuOEFwxf23O2VsjvZqgFyUbq41eCdD8EOTg1cQQx9WRJI2hVS/3H28UXN x2JIWVYECD2VxehdvMuLh0ugzAtJacVQfb0U0s1hR4s6iJLr1zwyR1dC8V+fG8IZVNIX H4Jo8+EfrbAf9KGcKdwCqNqrPBZhjWX46z8XMDmpiwlaHy1kLTxmTlexzUChVbQ8rkuz AvBzO3m6TYKCmrsis6AxQaRw39WitLyKrYT6BaLva0kzqYRZFc5bacXNoztOQ/9muNeG d5mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=mT7SB4cOOCDfNnDNaqKTIa5qwfo6CMtQHN53qg9w5dw=; fh=2ru081K0hyCP+lrbwo+J37s2lNNAzwLlNBOfgwL7/Lg=; b=T169zQFBAwAbtt/sFR7CxxV9JEPbCeZvLTIRkci5uZshc0ohSfbKqws/mdaWnNXG8T UbEdaOAiq4rVviiRAgx0q6FbrzKft344tXezDfLQApEwYHnE51dSWJli+bUYkVIIkA4X 6114Y0GsI7y+p/9LDj88g5M3fk7CWS8lPddxU6raekIwrYi+hJAbM5tZ2oSubTFtF+4F 4DNmHyMNU9lS9OdbxyV7t5FqtPpeIuCtyZf23iC2BL1mWbugDJusO+LfWeiAy/bLhj6e mShhdUseGVpB3fywX2DmJ3ncWdlISlOM1C4c/oF8+VEtyYCfBaqk/iSyx852XBYycnr8 pafg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-66589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66589-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f14-20020a0564021e8e00b00563b998c382si279766edf.424.2024.02.15.02.04.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 02:04:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-66589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66589-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CF6C51F21419 for ; Thu, 15 Feb 2024 10:04:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A9936997D; Thu, 15 Feb 2024 10:03:38 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BC57664AC for ; Thu, 15 Feb 2024 10:03:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707991417; cv=none; b=b5jPEHokHftgwgG9vNCiQeiwSncqHUsjrWn3RjNTCiugjgdcgvgLN5TQhE/ZrViG0AZ31tD/3BDmOh9XPWhCT+7cvxguknajUiwUb48xlm617Ct9WB7hRygR95BX5Yp8OHuAAxAC+BcejdfrPtICXWo3qtRBxfWe2N4+5iP7sts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707991417; c=relaxed/simple; bh=Ve+pubFl36SuRCGH2rkW001StUMBkU3PFQCpivTVbiQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=lzU7fBHrJS9XSu/eyD8oakg/m5vGTLamr5Iz1AtGLnMsXX+4uaruyqHyHMxLQ7DbFnMo2CyCz6DgrpMCREaDdcZbA/8zJ19zlRzPOSZG/UMC1WR4xsxhKsl5qbTW4m+StCm2OOOkBmrFYbfIUAmi4/Agg4bNdmydmkIv7POmbYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1raYaU-0004lH-B5; Thu, 15 Feb 2024 11:03:26 +0100 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1raYaS-000rZp-U9; Thu, 15 Feb 2024 11:03:24 +0100 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1raYaS-0003HJ-2l; Thu, 15 Feb 2024 11:03:24 +0100 Message-ID: Subject: Re: [PATCH 05/23] gpio: nomadik: extract GPIO platform driver from drivers/pinctrl/nomadik/ From: Philipp Zabel To: =?ISO-8859-1?Q?Th=E9o?= Lebrun , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Date: Thu, 15 Feb 2024 11:03:24 +0100 In-Reply-To: <20240214-mbly-gpio-v1-5-f88c0ccf372b@bootlin.com> References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-5-f88c0ccf372b@bootlin.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Mi, 2024-02-14 at 17:23 +0100, Th=C3=A9o Lebrun wrote: [...] > diff --git a/drivers/gpio/gpio-nomadik.c b/drivers/gpio/gpio-nomadik.c > new file mode 100644 > index 000000000000..e39477e1a58f > --- /dev/null > +++ b/drivers/gpio/gpio-nomadik.c > @@ -0,0 +1,660 @@ [...] > +static int nmk_gpio_probe(struct platform_device *dev) > +{ [...] > + ret =3D gpiochip_add_data(chip, nmk_chip); Use devm_gpiochip_add_data() to cleanup on unbind, before nmk_chip goes away. Or make the driver un-unbindable via suppress_bind_attrs. In that case you could drop devm_ prefixes everywhere for consistency. regards Philipp