Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18970ybl; Tue, 10 Dec 2019 16:45:50 -0800 (PST) X-Google-Smtp-Source: APXvYqy39hRxpm0cugSrFPgJopTQSo2hfvJ/pm9aizfIC062wBPZUbe3Wi43UHL3u+BOwpINmUDz X-Received: by 2002:a05:6830:130d:: with SMTP id p13mr439779otq.161.1576025150902; Tue, 10 Dec 2019 16:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576025150; cv=none; d=google.com; s=arc-20160816; b=bRdB5uBuphWoarOmOqOvu33LMjZON7L+QzLtKBEAOMfWU9QNh4td2jtcXX7Ft2F7iZ lmNBw8NVAE48zKoCBSsjou3/rF3S6/jD/F2LpdjAxUsI5z3bRuGYvbevchHo+5WlyuV4 1GOseGcw8oveqFh5oI9NRkAXHf/Rq1H7yqVruws69KwvO2KpddppFOJLC//E1mTyRYk+ lQmAu9GWrmIgpbzQJ3jvQ3imRLs9Kl5s1vAyfW2IonN8EshtNxUEuTHblU8N3CHOL4bS hJegakdh+QN+UN3M3RaGBxVbO/ejS86yopKy0PpenCtgGMeN7YCXmwu8svfqrBHL2yVi XIew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Vxe3R5EVIXOlzXfg/ekg4fF+ZY9IvaW7g6YuHiA6CRc=; b=plsDLPFcEqr9Nimm4A4PpdkoyFTPQN0der4wEkmdnIHnBWjNtLpbxvHKExR/aN4Yqs VUYsNxgaOVtnQncNED1CkpC0Mdpmtb59jEYxxLdiglzO4pqLVvbtYX1rOGNv7dukcP3E hOsagz1v3yvKy5fSrQbIQ6rMURPG3bzyqERuD4QwKgNkC+W6K5ssHJ+skzrRYjUHI7uZ FooCRKAcX7GZQmslqrYLYfgaNniSCvUoCyhlWWb0/sUpOxaXTstsER5gFAxeNLFvuMyI lyZNDb83JDp+YbrQ3aZvQpPy8I07Wd61K4tO5EfytDZZ1jn340MThB76jps9QKKglFnE ZbSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MtyeG8Rp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si57963otf.32.2019.12.10.16.45.33; Tue, 10 Dec 2019 16:45:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MtyeG8Rp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726589AbfLKAo5 (ORCPT + 99 others); Tue, 10 Dec 2019 19:44:57 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:32897 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbfLKAo4 (ORCPT ); Tue, 10 Dec 2019 19:44:56 -0500 Received: by mail-lf1-f66.google.com with SMTP id n25so15320639lfl.0 for ; Tue, 10 Dec 2019 16:44:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vxe3R5EVIXOlzXfg/ekg4fF+ZY9IvaW7g6YuHiA6CRc=; b=MtyeG8RpnpRGMdHyeEPGILjfxKzcweWjFHPnZnPKGrFC89h32clJMupq6IVPMFKjIj gOeCDnC7nFYvShxcl11BGmqnpkE0ipUZXu3xM6Jidjp1LySuANUWWCitzYibKMYfvWG1 X1dvYxmajrxJPXeE9qG5K0USO0k/bPEeJpx6HsPEPGy1Vl6tmElflipIQZNvgvcRDfEz SYDSjIP8HkM6mjRFvP1HY5WnFHD4ZK+w6bTmrXu0iRwf6dpv9ylEpnrlCFSTeWitv/IO Q7peiKQcOi7HYEcvYEhxZSQSrV0XcqSLQtkL7vje6t8GWlJruym/eFAOowG1osU80Onk +0xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vxe3R5EVIXOlzXfg/ekg4fF+ZY9IvaW7g6YuHiA6CRc=; b=c+J5h5REm9lbojNZJIL2ukGdZElAz+rdIsfNo8WmUMCE3mK6sRlVAjZNDMIGhm5H5u mFPV3goas9EsOxChEX1ZWnCKvGefNMLJNIz3zBUquGCeO+mPWKXvJJYX5gH8zL6Ns6Pa VFenzu+lcizyV17UdmdCx7Up1jTpRQ8pp4xrGI4HtmHfAAHDDCRYSbVmMCUhhUUbAYGn TyYRLE432j+a65Xxys8nQOUw/G1kHzdGAoEGso/6mkUfe/MHLMcqlpLSSYN2V6wco7U9 MCUr5YVkrxI/B4ub5OwHG7LtktoYcCk8g0Wh1oOy/pbUtNWpsMDv5bR+vFakQu1DhI4g EHTQ== X-Gm-Message-State: APjAAAXrYpjl0EoSCZZpaasdtphoJHSVHPwJZNm50H8+pUaXP7cZzU/2 Ad3kAJCsVg4u72ds/sl1JX8yZ0fjgKuWcPt7TSw6IQ== X-Received: by 2002:a19:c0b:: with SMTP id 11mr408358lfm.135.1576025094524; Tue, 10 Dec 2019 16:44:54 -0800 (PST) MIME-Version: 1.0 References: <20191205212501.9163-1-jacek.anaszewski@gmail.com> In-Reply-To: <20191205212501.9163-1-jacek.anaszewski@gmail.com> From: Linus Walleij Date: Wed, 11 Dec 2019 01:44:43 +0100 Message-ID: Subject: Re: [PATCH] leds: gpio: Fix uninitialized gpio label for fwnode based probe To: Jacek Anaszewski Cc: Linux LED Subsystem , "linux-kernel@vger.kernel.org" , Pavel Machek , Russell King Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 5, 2019 at 10:25 PM Jacek Anaszewski wrote: > When switching to using generic LED name composition mechanism via > devm_led_classdev_register_ext() API the part of code initializing > struct gpio_led's template name property was removed alongside. > It was however overlooked that the property was also passed to > devm_fwnode_get_gpiod_from_child() in place of "label" parameter, > which when set to NULL, results in gpio label being initialized to '?'. > > It could be observed in debugfs and failed to properly identify > gpio association with LED consumer. > > Fix this shortcoming by updating the GPIO label after the LED is > registered and its final name is known. > > Fixes: d7235f5feaa0 ("leds: gpio: Use generic support for composing LED names") > Cc: Linus Walleij > Cc: Pavel Machek > Cc: Russell King > Signed-off-by: Jacek Anaszewski Reviewed-by: Linus Walleij Yours, Linus Walleij