Received: by 10.223.164.202 with SMTP id h10csp247681wrb; Mon, 13 Nov 2017 05:56:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMbiEte+YNzVpN+aaa+h314az/MsE3qfJqTUcezmX0QCWa79ldThSR0n31P6+02Op9QEm1FY X-Received: by 10.98.201.1 with SMTP id k1mr10004266pfg.48.1510581407376; Mon, 13 Nov 2017 05:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510581407; cv=none; d=google.com; s=arc-20160816; b=ZP5Iv7Mew9BXad2w0dmEQGL9jQm/MqDnws9+JE/BNqtTH0cdWcBChvQd0why77prgd P8WBCSMyIja/h6KPT8GDIc447tClTRnXufvM2e+jf57dZEi4JqZuIm2iSI5EpuvhwbKB Osv5NOHfcB4fJF0hZV060ju+gQtXaovLAHa/EGKC1RGQebY2VSAhw02ZQCS8zqPtjBY/ +2+xNFYNbNgtSvqQpqiYOr3kb9vDwtSCTThV3ZlGnOUVyhv6iFxgaPgBIPf4K6JhSrnU hVnY7mZaWrBgidwEFjTd3RMMYkZKcOMPz98jeDN3MEoT8Zz002qpAjW5jfABw1cVK/1y KU2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=rSMeeUuJ1xiH6jzkxPM4s4mKolj3UsB1O7lEFbOdm0U=; b=tP+iXrr7WMxJRmY4ho7vMWWSWkHgiH3O9L787jj4uuHcyWmkwEp5fXV7mtsXb+2HPK SiobFRgdBxtVGwm41477wrIP9sKdwVzL40alfR6qY9yfgHQwUUUkEZs5jFIRTo0Y7Swp 94XyJxThW10peBQ812WKa2B546j+w3Ru4ktyV0VqgOg3tPWeUC0uTensWjEgCCEk7TSC ovzD1ejIpXszmRGrOfvLNFl3+mC730ni8+Cm++pLJG/7lKerknZqMi5xJ9J46b/p2ro3 XBJ8OYqBl3GyLp6V7vu9EoiUS/clL1z/wlCDEQv25mNFr84J7b83wlU9Zu2OBHzmA/Ir hEvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WdBkaCCi; 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 b187si15327947pfg.335.2017.11.13.05.56.34; Mon, 13 Nov 2017 05:56:47 -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=WdBkaCCi; 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 S1752889AbdKMNzf (ORCPT + 95 others); Mon, 13 Nov 2017 08:55:35 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40366 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752863AbdKMNzd (ORCPT ); Mon, 13 Nov 2017 08:55:33 -0500 Received: by mail-wm0-f66.google.com with SMTP id b189so8192536wmd.5 for ; Mon, 13 Nov 2017 05:55:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rSMeeUuJ1xiH6jzkxPM4s4mKolj3UsB1O7lEFbOdm0U=; b=WdBkaCCizJ659VPuAMVXUhIPYpo9j8F9grWinVg77+gG6KfWo833yZLz0E5o+6+TXf AAVKikCOlen8nfBANc0IgM8nXvzSREfEc3UGpeBZpgONQ5WiLfB07CgpOkxE7ZTAQlFR tEch+QvxhAF01s4oLDpYsWt1Mrjl5FZziaFAo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rSMeeUuJ1xiH6jzkxPM4s4mKolj3UsB1O7lEFbOdm0U=; b=Zkm6qbBJtCEXZYwajGH8So3IyuhYK4v65uWecdwlFDcy2qBaTxiTjQUVM8Q6O6EBPE bevg5pe8X0546pj/KoqdZxU/0thaNCod+FywU1XvbSx3MMJdb5lk+vyBXUbbmWQJ6PMP Kag4mD/RuGNycPpRoD2zuOP88zrG9DA67HgrEti9WrC7dVLcNHwrClI2tYICb3wnaQnl KgWJ2X/RwESnCGI3cF5fcQPdkVEcuk+z2kudU/9U1pVuFNzpsKHG6o3EDJR4TG5f0WJT +6E5vC6zRvSnToFaF3Gy0M0JEa71W+WLpxI90bD9eiD+qsN8A6OyLA6RsAMK4xfX7KWq Gmbg== X-Gm-Message-State: AJaThX5/qSc7bjPcSdVENUQ/K6oZmNY3rNrewUOuTu6vkHIe7IjDzsWA fgUISpCAGb/x3IgvDpJcnAzIKw== X-Received: by 10.28.88.21 with SMTP id m21mr6205369wmb.111.1510581331726; Mon, 13 Nov 2017 05:55:31 -0800 (PST) Received: from [192.168.2.193] (cpc87211-aztw31-2-0-cust196.18-1.cable.virginm.net. [82.46.60.197]) by smtp.gmail.com with ESMTPSA id y15sm19449652wrc.96.2017.11.13.05.55.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 05:55:30 -0800 (PST) Subject: Re: [PATCH 3/3] backlight: tps65217_bl: fix device-tree node lookup To: Johan Hovold , Lee Jones Cc: Jingoo Han , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable , Matthias Kaehlcke References: <20171113102049.9342-1-johan@kernel.org> <20171113102049.9342-3-johan@kernel.org> From: Daniel Thompson Message-ID: Date: Mon, 13 Nov 2017 13:55:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171113102049.9342-3-johan@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/11/17 10:20, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > This would only cause trouble if the child node is missing while there > is an unrelated node named "backlight" elsewhere in the tree. > > Fixes: eebfdc17cc6c ("backlight: Add TPS65217 WLED driver") > Cc: stable # 3.7 > Cc: Matthias Kaehlcke > Signed-off-by: Johan Hovold Acked-by: Daniel Thompson > --- > drivers/video/backlight/tps65217_bl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c > index 380917c86276..762e3feed097 100644 > --- a/drivers/video/backlight/tps65217_bl.c > +++ b/drivers/video/backlight/tps65217_bl.c > @@ -184,11 +184,11 @@ static struct tps65217_bl_pdata * > tps65217_bl_parse_dt(struct platform_device *pdev) > { > struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); > - struct device_node *node = of_node_get(tps->dev->of_node); > + struct device_node *node; > struct tps65217_bl_pdata *pdata, *err; > u32 val; > > - node = of_find_node_by_name(node, "backlight"); > + node = of_get_child_by_name(tps->dev->of_node, "backlight"); > if (!node) > return ERR_PTR(-ENODEV); > > From 1583945932285428456@xxx Mon Nov 13 10:22:34 +0000 2017 X-GM-THRID: 1583945932285428456 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread