Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp352571pxb; Sat, 10 Apr 2021 05:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx2sqIMy4uZuKvXvVCA/qjfVnPuXVhM7io37bzAMdWI2MCPps2X2Iu6JltnZDFxXz5brZj X-Received: by 2002:a17:90a:5d10:: with SMTP id s16mr18279447pji.204.1618056518449; Sat, 10 Apr 2021 05:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618056518; cv=none; d=google.com; s=arc-20160816; b=ZB3QtJdV8Iu4ANznCsGaL+HewZPG+fhlZcIon5sXOArDJzIGtpzXh+66ntGf9bA4g9 NIwJO6rEpbW9dItGAODTEOkJlBlZP2jnKAazWOkpBvXGT15vhPtLdfRBdsUJzkW/NFFg y/5+OTKW2E4gpSouhu6XrYV03KAiBwWuh1VOZ4mu86jPOqCnO2XlWKlwByE1xH3EOorW 4TDhyb0cZUH6XUxbsmV/GF3ICKAxYl2aWW80OOZFrzSv/b4KSgsgWpGtOwx2hHxVr5Kk rjlWQM0ZzJtbcRTlalycmbZdzmWx5vB25WbXAahC93wRmUOsIY7YM9c+7HdjQwyP14W5 fxww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AsvkzRRviEiLzJVZTAAJJTuNBiBXT1JRlXSfLx/it3o=; b=Pd/vEoMCxrtAFrxU610Ex81KILA51OcO350bi5eO9lKAbCRgAw+iJPWed2e8ZM0yXE FV4bReB+znKGy6ZeCGs9J8iZ5Y7ytYC9vHPG1/MqeQF5SMh9DFZQM9uNRQXaazGf8uzD mUuMltAW0I44hKu7Eb+g7LovnCAnI27Au0aSZ0hiMmn62K8MBj+TJBqaRwJ5uEF1raKO ITM4wlWSlCVc4dXMorNuXwYNa4WuKI7zqk+Y+cMlKOs6LaJY/rJEzMnf1Z5KlvBWrpPf 3L13Q3y64QgqIHVL9rj5UGs+CKtTh9ZnEnH+Q6TyGg6NAmibFESN6PiNQupSi1RUqd/n fa5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XeX6B1Wg; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w62si6043162pfb.233.2021.04.10.05.08.25; Sat, 10 Apr 2021 05:08:38 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=XeX6B1Wg; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234392AbhDJMIH (ORCPT + 99 others); Sat, 10 Apr 2021 08:08:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:57124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231279AbhDJMIE (ORCPT ); Sat, 10 Apr 2021 08:08:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 88C0661165; Sat, 10 Apr 2021 12:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618056470; bh=TOGFWa9Nn+4J9hISS6++HsfYZalNKWKelOxu1CZ9JKc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XeX6B1Wg1409bUXGrRz+W/5iV3gdA2dVbOF7KHXy+lzXYaOmYWK0hgL4Mma+PnYKk zdaPSYSdFXcrLzsLvGuxh6SHUgp2XT0s2DkSzQss2/8A2Co5Z+SoqWtvcXg4cmim7j Nm6MekC8iMXLpIxiQc/2Nsoo4r/Q3PHhMrQsUAHs= Date: Sat, 10 Apr 2021 14:07:47 +0200 From: Greg Kroah-Hartman To: Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , stable@vger.kernel.org, Marek Vasut , Roman Guskov , Bartosz Golaszewski Subject: Re: [PATCH stable] gpiolib: Read "gpio-line-names" from a firmware node Message-ID: References: <20210410090919.3157-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210410090919.3157-1-brgl@bgdev.pl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 10, 2021 at 11:09:19AM +0200, Bartosz Golaszewski wrote: > From: Andy Shevchenko > > On STM32MP1, the GPIO banks are subnodes of pin-controller@50002000, > see arch/arm/boot/dts/stm32mp151.dtsi. The driver for > pin-controller@50002000 is in drivers/pinctrl/stm32/pinctrl-stm32.c > and iterates over all of its DT subnodes when registering each GPIO > bank gpiochip. Each gpiochip has: > > - gpio_chip.parent = dev, > where dev is the device node of the pin controller > - gpio_chip.of_node = np, > which is the OF node of the GPIO bank > > Therefore, dev_fwnode(chip->parent) != of_fwnode_handle(chip.of_node), > i.e. pin-controller@50002000 != pin-controller@50002000/gpio@5000*000. > > The original code behaved correctly, as it extracted the "gpio-line-names" > from of_fwnode_handle(chip.of_node) = pin-controller@50002000/gpio@5000*000. > > To achieve the same behaviour, read property from the firmware node. > > Fixes: 7cba1a4d5e162 ("gpiolib: generalize devprop_gpiochip_set_names() for device properties") > Cc: stable@vger.kernel.org > Reported-by: Marek Vasut > Reported-by: Roman Guskov > Signed-off-by: Andy Shevchenko > Tested-by: Marek Vasut > Reviewed-by: Marek Vasut > Signed-off-by: Bartosz Golaszewski > --- > Hi Greg, > > This patch somehow got lost and never made its way into stable. Could you > please apply it? This has been added and removed more times than I can remember already. Are you all _SURE_ this is safe for a stable kernel release? Look in the archives for complaints when we added this in the past. thanks, greg k-h