Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1015134rdb; Fri, 16 Feb 2024 02:43:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUx6bahk2L8GwM5XVgYj4pmWgwdY90MaS1ADqUepZFOu9DkhwvfYIPJBKRtVtHOjeh/sAZOkjzr9Hr1QRsqU4lEvrgY0jjhVQPitZRLIw== X-Google-Smtp-Source: AGHT+IGyhvl46+AX9gtd0a3YB8s+LNgxp8KK0zCewxhKfnxnG6XHmXYKqf/In1TyBYTD1mTc8z/o X-Received: by 2002:a81:4f86:0:b0:604:7a8a:b13e with SMTP id d128-20020a814f86000000b006047a8ab13emr4464170ywb.40.1708080207130; Fri, 16 Feb 2024 02:43:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708080207; cv=pass; d=google.com; s=arc-20160816; b=z3uqGIcibu2SopSG/obLv3hvmAMHNfeniA+ZeBaREL2Gjj0rpzl8nhByBcY4A5P7aD klYFfGzJB6Yu7V79bdf4pJa/IUAu8tdEC6iR70kPoFnTnohrEb+svf+6Q7nwqIrKXuUO zRCiL0vxI9Thw+WKgwlyh84txkKT9Xu6ZSalTxVLgEHXX30SkXaG+Pw/Q/pWukOTUQx+ vFxTkizv1D2ta8ngDCMft2S7sEUQQeJxmxxJox6P8Jwbekf1kyCLkbixawWx0EDJRS7q JLFb38SccZkE2beNK++8sDj1peTH1/y2vGMfYWki0gV1oYBwEmqRKHYoCAI8ePB58DtM luxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:to:cc:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=hB/XHwobNHN18Xz1hYNZwwfr1UUQv4BZ9ABlvaG/lLY=; fh=HLERM1kEZknrehz4EK6RwcO/vlvAHotx6+ps4eLckgg=; b=Yi8u6KQwWn4x0Z+kgVkPjzcJEIjDp0zWlWBjpCfvaeznIwWNmBqiXEjWXro8+RcILS fBmdb6RrcyPKtzowCQTpxFNHSdOJFUaS60suv3UmnA/aFeKDwZoW8x5/BkXnt4c6rdbE HnWgyH4tnM3XzQrKLSeEo81lfZY6p4ODFOFToxczeOZYltqDnoX24bx5jKLcOhjqFNxb 5iwbfBnH4QNKw9VoiJZYs0ZVc8n3Hv37hdhxb4zlCx+xLqtB1QDBcuHlt6ESoJDLJAbt zQWpRwV0joAddRkQt6OpoFR0jxzosv0XGw36bXlpGhQpZMnUmNJpYVCWMmsVPjP873dT Gk2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Doj1wFhy; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68464-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s21-20020ac85295000000b0042c2a1298d4si3381622qtn.589.2024.02.16.02.43.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:43:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Doj1wFhy; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68464-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DF5121C21B9D for ; Fri, 16 Feb 2024 10:43:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 604DB537E8; Fri, 16 Feb 2024 10:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Doj1wFhy" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 BAF4A535BE; Fri, 16 Feb 2024 10:43:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708080192; cv=none; b=o6DoIXdIBKugqLeMLBTapIJZzNDA21477NQJYQvdO5f2QIxX9dOmHyCWlt8ZpulSsub0mHNAtQ/FHwmdHq5Ej7uElLds9yg6iYor/jFNUS36TjwRY/Xs7Ar1dTH/XsBUjM2mn/g0Fmd7KS+qzdGhoMw7auGY3jwZzFuyu0Jw2MM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708080192; c=relaxed/simple; bh=NDGRynr8itqPzytqBynygn6jKjpyhOuuhynu6UE3ZMA=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=MYDuu4q7g9YGfKhSeQYlYyn20v/3C4WllPoj648gICr9+HvW5vvodHMRDG2ub+pBBxXxDBpJCUgTVDflNdWSX6QGBn7D0HvrDYq2NtWAlTd3lZllK+OSV1WAYYmRWf6cV5QCEtfpKzntUcz1YGgRRTRH0yyiq9LQUGvGbsoNN/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Doj1wFhy; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 39E471BF203; Fri, 16 Feb 2024 10:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708080182; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hB/XHwobNHN18Xz1hYNZwwfr1UUQv4BZ9ABlvaG/lLY=; b=Doj1wFhyFBqmQV6VY50wGFAmDMdOhlEgNW7YwVrTfkUkB/ojt2RPOLJQoIMSaKGUR+1/Xa SIkHMZsP+S8Nz033lwoSrILNsK94pjdrlI07PVpbrJr45fcr7bLGlXOFEeW3LmnlBqCsms bFjjzpf4NN3YqVv1zRJklEU5I0U9/EedlFOs5FFHerMCFMKYh3edjLeZ0hBp1RBdChk66a t9PeKza2wyGyIFruGiO4lsXC41KrR0E0bX8HlclSzm3UiwAryDEKSugiOnyLioLluZVq+9 cOkCTybu6D6IAlH6hhGLxPlF+Bcdl7C6U2iKVpD9NdND5cZyKwGN3Fij38gc8g== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 16 Feb 2024 11:43:00 +0100 Message-Id: Subject: Re: [PATCH 05/23] gpio: nomadik: extract GPIO platform driver from drivers/pinctrl/nomadik/ Cc: , , , , , "Gregory CLEMENT" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Philipp Zabel" , "Linus Walleij" , "Bartosz Golaszewski" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" From: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: aerc 0.15.2 References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-5-f88c0ccf372b@bootlin.com> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Thu Feb 15, 2024 at 11:03 AM CET, Philipp Zabel wrote: > 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. Disabling unbind sounds like the best option. Will do so in next revision, in a separate patch to keep this one as close of a copy-paste as possible. Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com