Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp270904pxb; Sat, 10 Apr 2021 02:16:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUTSbOj14ZwqxzWYhL9dYy0NEWJUnehf21BL3R3uhHHGXAYB6eR42fuILCZhgQArzH1tBl X-Received: by 2002:a17:90a:b001:: with SMTP id x1mr13034077pjq.122.1618046160927; Sat, 10 Apr 2021 02:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618046160; cv=none; d=google.com; s=arc-20160816; b=ueXDX9jcHIL9ZFfFwCc6OzxeLql2RkdLvHLXK+OH5O0eGYfXgUYRczVMvk1SMPjJMs 9LmOSC1gPY1loxzk8FoboCUvIDiTEnE0R44REJYqzVKDLzrjfl6P8vAsnq8ZjRz2DH3M Qow2Znk3l7pColzgX5xQvO4u4o8cN2bsIDkG6qzrMHV2FmC3AJjE5J6T3baBu82O2BFa h+EPZU8HdwpSUt5bFNOTu8NLomRPk/UIv1U/MnAmjpjWV44pFTtEQ9euMDK4YXA1faHJ EBzxJ2EJGeEvvM4wf/6HZrn5y5cvviDhbGHH1+kPUecfd09YCVFNOaGLJKFg8mNlitEZ rxgw== 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=CRdD061OsnsvjUBU6Ue+CKx1qGscWzyEpw1ZVSjM/WI=; b=Z3y1jSU8NhE/8KUQftXfdSRGAttwVydAj1PXRZRW4zi8l7k3P/KND45p20k1N1GjuZ gBeEpILKrmtNSeONYj86Rg5KZycRebwXiNaO46bjQSDlnmwqWe1Z5QrLkNk2pzp3jTVB 8Alko2GbJejtmP89DRtf0cIj30+MaAuzjECW3fXQwH23O7HjPp+8f1sJaKH+OsXhnKrU 29cqEB2lIV3Rws+y8xtYUatyIRPLU06kYpwaMcP9BpGbNV/yvjN8LeS6+xZpm23Jg7ow +BrlY2jiqAei5r653eJ/bOlKP8FXamtxyIHjatJXcJA0ZCm8t5LpCst9NRw9FlcQ6dkv PdbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c30pMcHb; 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 f18si1603114pjh.81.2021.04.10.02.15.49; Sat, 10 Apr 2021 02:16:00 -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=c30pMcHb; 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 S234405AbhDJJPg (ORCPT + 99 others); Sat, 10 Apr 2021 05:15:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:35690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234306AbhDJJPg (ORCPT ); Sat, 10 Apr 2021 05:15:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5B0DE60233; Sat, 10 Apr 2021 09:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618046121; bh=ylacISelC0n5uq3LcWny5QQY5S3oyLsn0/lLqR99PSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c30pMcHbUE6mjml6G9xJuol9fJbGrG9PZ/sQEkACfNmUFQoVpZcR6CY5GUTzQE7ny uV2CfIQZ9LeGAY+2hDpqNmF/aQi2BqqUqEXHtZSeShPTLIwnzMmqrIyvnjXzBE0BZK Fg5Xr+wYncoviVx+GxxqA2FBwjom/Uk7f5KoMxXA= Date: Sat, 10 Apr 2021 11:15:19 +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? What is the git commit id of it in Linus's tree? thanks, greg k-h