Received: by 10.223.164.202 with SMTP id h10csp3694348wrb; Mon, 20 Nov 2017 03:36:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMZBOP+IJ8w4VnonVwie/aF/LDsHX7H7c2KS7sf9bNhfHT5tKSjF7l/fxOfplFlMw7s3TOvX X-Received: by 10.159.233.135 with SMTP id bh7mr13543592plb.52.1511177785329; Mon, 20 Nov 2017 03:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511177785; cv=none; d=google.com; s=arc-20160816; b=cLKheNFOmcLO2GDDlpFNCBk0kiNZCGEsDiitj58t0frFyuiK4vIryCYJJzcCv/dHhe pso+musobpspGrugnfgIeaKbALKDxQW1eIgEU6blpiUauoil+eBaQHAyULUXnqaPI679 kuD5XFLs3/FutMsxQRdTIoAkRC7KtqUntLZ/NlQ3pWiaq+9XZgk4fa1gxRm/lR7QLHqS veoDEJOFbj7wy2AFmWGLbGAzEptJjN4ZzQ1F+SdAaHiK23emcBsl+jd2fMqj9ijdD6lU SLfRhajd023eQr+Qx5CgW8dEuR0dZZioCJzYhBxCCjKMyRKvEHf+ycbwOHk3CxcdXXLR Ibvw== 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=6mejnTshjX0Kbg5EyZ0EkRzH2rkaxvhmPxDFsH3ETUI=; b=j6kidJOtbTk91k9CFJ7D6aIqituCtmcbYhBMWIFtP0m8x+TE0BceDA4XWNSEYaZee8 b0yEe39EzsMsSiom4SLut0rqn4CKg5OiCK5tO6SBST1687uRNxS9SIBluYLTOarLsI9N Nxhgz/zEeSWjbIylQ2FZ/dQNgb1dtBK3NduJAN7ypoBvkWMAVLGt65Oz9+k3uM92to9T rt99i3RVJjipSQb9c8FvtKHkeL4kud+7yhILArTJCbaoP37mlk7DhmaxFVGiN47Hj0jT oTGd3eRo1wi/TwCgwqKi+Mi801p59cjuGdI/9Hs8KvoA+ZsL0QE8NX7srNLu5jK1+ZWn L28w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fll1ZpZB; 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 e7si8731245pfi.265.2017.11.20.03.36.14; Mon, 20 Nov 2017 03:36:25 -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=fll1ZpZB; 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 S1751247AbdKTLeQ (ORCPT + 68 others); Mon, 20 Nov 2017 06:34:16 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:39915 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbdKTLeN (ORCPT ); Mon, 20 Nov 2017 06:34:13 -0500 Received: by mail-wm0-f67.google.com with SMTP id x63so5332725wmf.4 for ; Mon, 20 Nov 2017 03:34:12 -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=6mejnTshjX0Kbg5EyZ0EkRzH2rkaxvhmPxDFsH3ETUI=; b=fll1ZpZBQ2KOWebWrH+6tjptR8n23UIc3rQjBkkhfOzesV0CSOh6G9XEWiimIyhchL v8mAZOKD8953pDZ5qYg/3gpyJTDguXsesRfcxAJZI2xVNzSUAK5xvtWn4peRvhkbjfB7 Vvj1fb+dQ2+pMOpSB4tuDUVUppyhlMkZD6Qt0= 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=6mejnTshjX0Kbg5EyZ0EkRzH2rkaxvhmPxDFsH3ETUI=; b=FToP5P9iVLq0qUMjWL4S1SybFZGRZecV+IsVElZ1W5PL842qrb/8kmepwX6qU3aZIL 6s97N4y7X4RlqE31WE8Do24IGUHbn/JxhM1901U/Rdq/tgW8YwpfVX6Agl9ExTD07OJR ec9t3THO7UNiEAa9IIyTgEl5d0newEdrSfOC2v8rD55z5cslrpSjmHIJ9SFCWgeQHt0Z nBBeCttJBeo/OxfJo9T7eNYpnMqmSiVH7xmTBjfYj+d/U8AE3p6NpPgR/UXB1POre9yr K1Fs01uym9j27FSeRRnwzhf8VZjcv6aPL8RTfMp0JaXG/D0ckRmYQwyrQgMrKfjTvhAl qChA== X-Gm-Message-State: AJaThX5DamV5FnZxFkWH7eUnHbKVFA+lwbkTFfSudID6L/hK4GdTe/KX C7BJgYYCAhHgN7b3XWa7EqT32g== X-Received: by 10.80.158.194 with SMTP id a60mr18483012edf.228.1511177652040; Mon, 20 Nov 2017 03:34:12 -0800 (PST) Received: from [192.168.1.24] (cpc87211-aztw31-2-0-cust196.18-1.cable.virginm.net. [82.46.60.197]) by smtp.gmail.com with ESMTPSA id g45sm6559214eda.88.2017.11.20.03.34.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 03:34:11 -0800 (PST) Subject: Re: [PATCH v2 3/4] backlight: tps65217_bl: fix device-tree node lookup To: Johan Hovold , Lee Jones Cc: Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable , Matthias Kaehlcke References: <20171120104547.2639-1-johan@kernel.org> <20171120104547.2639-4-johan@kernel.org> From: Daniel Thompson Message-ID: <6effdc1a-9c3d-a773-04e4-e6c3ea8f4f52@linaro.org> Date: Mon, 20 Nov 2017 11:34:07 +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: <20171120104547.2639-4-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 20/11/17 10:45, 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 Didn't I already ack this one? 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 1584581772596701290@xxx Mon Nov 20 10:48:58 +0000 2017 X-GM-THRID: 1584581772596701290 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread