Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1098101lqt; Sat, 20 Apr 2024 00:11:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFih4DBXxjuy4OB+kHSsrBGO9QonAsNme/wohgsFwq6jnE9ObdF5K/daO6NJs9ZxHbHjWCPLhXW0316G3WaxlFe4pVbCvAB2IFbIhubg== X-Google-Smtp-Source: AGHT+IHjEyvF9YU/tSrUvbwBOys6MwWj4uWLTKq+gd3LXgH09sAHIXH/JeAsAPdH+wp4ZkTOwWYz X-Received: by 2002:a17:90a:4298:b0:2a5:be1a:6831 with SMTP id p24-20020a17090a429800b002a5be1a6831mr11849048pjg.19.1713597090608; Sat, 20 Apr 2024 00:11:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713597090; cv=pass; d=google.com; s=arc-20160816; b=NnYBX7gpvxCaq5vNPKmO+dYz+O+0DDI2dXH9uooCqE4+1DG02j8RE2vfpVshpbuHK+ 4GEScWAZl5dmVh2lDPNEkvRhPcsci1gOjKQKbP08gZMSXb6LFljuM0EmrBZppz9PSPOz i3I849tAFok5M3/ZGWm2lDLDJzeFsKz74NdGXOkhoRwUVn2omJ6yObGTv8Ju44HjIC/T GAnTD6v3cgmici4Vox/76GxjcJywXizqZIevcP8V2tBKAnXZCWNjLeyw07iXWCpXFboD rCpGZFMb1YtqK4NNsnu4IKqrJj5VK6t8wWVoZLDN2+VrDgAZuhqzkS/N7ffc0Sk9GjI9 PQMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=FHbZcO9eBlYnt7XFS3eJVcq/xDUoC37Q2+wGWYF99lU=; fh=nylD1Wevp0yvOUATqR8Ue2n2tXFbf9c5yk6zF/bItgk=; b=AZyodERhL2jw/SZsIvhsjj8qDyeQiYrags1Rbdpydy/FQPdl5Sc3UfwY0bCqRO6D9p qKbx7Y3TbkzG1Y1Tw7kmVe6MMGNR7DxHBKabITIUqm1mwHBXdT8aTsAl2FYOVDuF8w9G 9V2XbrIEAJvRDkHYsoPk3sMK5hjr1uBIn6XuFgNtKf5a2flWOeq8h0uBMtxprxy+1fgp zwQYnfFT86YmqU++n8vDzmpITY9qNd6UOQquPTkfGs6YUbHPIiA5f9DVnyxD8TpuSLR4 H0ni+6EL0Ld5269Mr7ti7mj3iSGABlLXDz7OIG+u2+IRfol6KRIYTRB7b5jw4cPZbWLM akvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I5pfn6Ck; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q6-20020a17090a938600b002a280773045si4508655pjo.91.2024.04.20.00.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 00:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I5pfn6Ck; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 57D252817D5 for ; Sat, 20 Apr 2024 07:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73A19134A6; Sat, 20 Apr 2024 07:11:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I5pfn6Ck" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7089510A20; Sat, 20 Apr 2024 07:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713597083; cv=none; b=lqu3Kw1gg4+wAfx20H97SIQkZ8HqpappOfM2c6bFreJpHiO1zDF0ltyH85Ls8bulnQU2s6eyO6Mhsau7lfxO3AFWdO+5v4sAQju0FmUrSFgYmQVOKGC9wiaNhiK+tKhacCU1x4JDiKdw8bwr4QdQ8LfvnxHmqn/w3UocBWGXCHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713597083; c=relaxed/simple; bh=FHbZcO9eBlYnt7XFS3eJVcq/xDUoC37Q2+wGWYF99lU=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=In9lHTvoIMiVJVDVBk7u4iIs8/G0tOrAHXPbJERbIWI22xRbraO/wg8USQjpkNPWuKUqfw6qqjiCIn2oD3oQJQmXZmmEsTghmQni+HqRzGv8YD7KxaItrh35yzCNHJTDQu/eF+TiZzhGA0i8oty5i3T92lenA25Kn9c2fru2ZDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I5pfn6Ck; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6ee0642f718so2787687b3a.0; Sat, 20 Apr 2024 00:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713597081; x=1714201881; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=FHbZcO9eBlYnt7XFS3eJVcq/xDUoC37Q2+wGWYF99lU=; b=I5pfn6CkCRS8D26JW689RbnZHv8UDSzDeNBaB7J8uzcJojyHKOgWX4HKAj2/YdjwT4 4Rc6i2Ktp+V1UTOM1WOyODzlasypQ/trbWApuxsGdNLUVKkDg/g4ze7Ro56asCSSUfXS evluSxSOU92jj5l2uVZhIjQPCUFkD9LP/p46gV4lHrGRfyaUaUbtIo1NxP62aHZQsvyB VL47NWTIlzvWkxzqsH7iFVmP7HFbr5PatSpjt/OJRc2+0aWdlwQ/pqyLlFgPS2aW2rqv 8bPgs0BH/Ncw/xVJNt/jy6VExsRDkXCEmBi7c6RtTHeZB5vTkV7ZNS1fZQFE0zKdLRxG W/lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713597081; x=1714201881; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=FHbZcO9eBlYnt7XFS3eJVcq/xDUoC37Q2+wGWYF99lU=; b=VZvXi2I2ErRt/+zc41/1GhuBu63uhU+N6cmh6YiF1VhggpqMFQi6kAvlki/KMBWGEB CzUEB0Lz15ePXd+D5H/sZR5pks1YL4XeBezAVZGHLelKUY1nI6C8qsagPBQhqAYRvfHU 75UEW9/WQPJoagOfxWbNH08txq3z5hGx03ZBaEMsacRsciDmwrW6s+jhySmfwBF22pWg xtGQX/wXwF97HUuI/yiD9CLwnfnN4oLQWV1qki9s4E7AQUWcyIGUdcBsDJH2e1NXWfCB VsFIdaQv+Z7YgYRmtuweGBVS235jPzKq7SFIInvVkOA4F6dffKc9N5dTzeCAYzpqsF2r ie5w== X-Forwarded-Encrypted: i=1; AJvYcCUCL0d1rSdA/TYPBTfJa043RjcpYOBwyAGhnMxewOaZVIGF8pi+siWftjbiTtpU0S2Ykohf1OgrwGAPQOW2gQfVz4pQBPKhR0J89a5SlfqbuN4UzfzYgn4YBFOqvQTDlMVMTcRaBw0OJhE= X-Gm-Message-State: AOJu0YxHjJTKI+kcJE2F5koSUWlXONtMNS//QSYj4nQxH07T6ITc4Fkl jhvUxvNYKu5dN30kI7cMpUQVdNtDCkVsVD0D2R0G3XFnFlRxc2jU X-Received: by 2002:a05:6a21:3406:b0:1a7:52db:6711 with SMTP id yn6-20020a056a21340600b001a752db6711mr10716105pzb.2.1713597081476; Sat, 20 Apr 2024 00:11:21 -0700 (PDT) Received: from [127.0.0.1] ([106.194.121.201]) by smtp.gmail.com with ESMTPSA id m2-20020a638c02000000b005e857e39b10sm4210958pgd.56.2024.04.20.00.11.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Apr 2024 00:11:20 -0700 (PDT) Date: Sat, 20 Apr 2024 12:41:07 +0530 (GMT+05:30) From: Shresth Prasad To: Dmitry Baryshkov Cc: daniel.thompson@linaro.org, deller@gmx.de, dri-devel@lists.freedesktop.org, javier.carrasco.cruz@gmail.com, jingoohan1@gmail.com, julia.lawall@inria.fr, lee@kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org Message-ID: In-Reply-To: References: <20240419111613.GA12884@aspen.lan> <819a56c3-bbaf-4d5e-87de-78c1312c56d1@gmail.com> Subject: Re: [PATCH][next] drivers: video: Simplify device_node cleanup using __free Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: 20 Apr 2024 1:13:42 am Dmitry Baryshkov : > On Sat, Apr 20, 2024 at 12:22:41AM +0530, Shresth Prasad wrote: >>=20 >>> Please fix the subject line to be "backlight: : ...". I came >>> very close to deleting this patch without reading it ;-) . >>=20 >> Really sorry about that, I'll fix it. >>=20 >>> Do we need to get dev->of_node at all? The device, which we are >>> borrowing, already owns a reference to the node so I don't see >>> any point in this function taking an extra one. >>>=20 >>> So why not simply make this: >>>=20 >>> =C2=A0=C2=A0=C2=A0 struct device_node *np =3D dev->of_node; >>=20 >> Looking at it again, I'm not sure why the call to `of_node_put` is there= in the first place. I think removing it will be fine. >>=20 >> I'll fix both of these issues and send a patch v2. >=20 > Just a stupid quesiton: on which platform was this patch tested? >=20 > --=20 > With best wishes > Dmitry I tested the patch on a x86_64 qemu virtual machine Regards, Shresth