Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp824991lqt; Fri, 19 Apr 2024 11:26:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/EGNSVLXbhXNyMmL5vGlMUM5rsqAv1KNYWaNnj8cmU9TQPU7lTtty4/6PrbvunYB2g5qedP5pgkYuf68rz49aKUeb+fpvZlumstHRGg== X-Google-Smtp-Source: AGHT+IHIdXS9gVO5UhyzFZcpg/rIa0/gyO9N1RcM2JnH986q/ZkevSkcQfbkRYgh18bMRpGDuDBp X-Received: by 2002:a17:906:3057:b0:a55:73c3:f818 with SMTP id d23-20020a170906305700b00a5573c3f818mr1995700ejd.14.1713551216217; Fri, 19 Apr 2024 11:26:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713551216; cv=pass; d=google.com; s=arc-20160816; b=OvuWlUBG2FrmExqHbnwknh/v4orlW8YblOf5At45hLOn1yQqZqY3YaCBhGzRdB5aNC kiKgtNH9kAu4oTZdjq0ZfwJaNur2owKPZtQxl77oH7nSco2csy/c14MnvAPNkltwaRwM DmRRJNXghClwNsLw25k9Yh/ROE3IFK1gy1nnHdhuXjY2802IFKkp2J+c2euwFqVj0yPC QL02yGg785S8GBMxOyyzPPVMd2wv4F80QaESBtn2fwxTx0NR0t0bRil+WXAXdFXj540X 3sMB2onnl2kFuoR3w6isYbyQ5fsiM1uWbDOem+eS8VqeZYdrlfKsSwAwl1qPTDLCtYO+ tIfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Jft29t7TxjFuYr1afW2YwyNlotmCHPwAXoGph/ZcaBA=; fh=1yjMR22xnwvl/d8Z6diRIvGnhzTtOPUI4RsCf9YAKGs=; b=gLmMmkA1hjYI3Y9S92kdM1UR+vEYUHZ3wpBTwmElxiVXsZ/15r5KpoZmEdRk2J0lmd RjN2qPw0lHu/LFRs0cHBxRJAuP1Hl17jQ9iQbu88cFSX3k3OwYelSMpL0HAo+t8oHJCg JruH+f1N/ejsNqTtEVAa93fHLFX4P+0g0hZ5z87shgWQo1fVajwz5LlDGbhkLoQKanUk JcpQWQVqfo3gvO6ftdlMLk3vqwQH4hHJh66XLkHEu0pVTQgfQ/dk8RwdHxf2NjYngAyW 4v0DttI/KG3UCUDi+n7TdVoQmMQgpoLEc77bv6q1n/9eK7ksg1sYbSYZJ9obG9nOgB9S pxxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-151869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x9-20020a1709065ac900b00a524404631asi2440087ejs.275.2024.04.19.11.26.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 11:26:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-151869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E87BC1F2120B for ; Fri, 19 Apr 2024 18:26:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B675F13C3D4; Fri, 19 Apr 2024 18:26:49 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 561D413A267 for ; Fri, 19 Apr 2024 18:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713551209; cv=none; b=jqfE29sjAXkWCJ0oFDf7WG4SmAcZd7NHlEgfVxE07kEl+HYAOCPA6TuD7X6XTUrOAVSZeezvvRUYV7ISNecrC8Qhg0L5kVjmZX2r48UQAsIWtVOs5qoB7rLDjumV7Bhm4sNvm8EmUVshWfEmUsJ8XDjRssIAa7Xn9QT8SR89N5k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713551209; c=relaxed/simple; bh=JkzV/wPubppSmIDw/QRFXUAhqhxm/yzPldKOBFdXr6U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AR+H5jf9erL7yJOoidhogs70jbdYSqftY3x7722FPo68r8L0tJbDMzcHWJVkvClGNKkvN5P+DtwppPcCPfi2H6+5RBl01xG5w1d3wzefI/H3hs8aQRP60IsKmHPRdQy4Me2xnsJE1YXsquwFDCpcu4etZJOIHrcoXIwDcXwxK1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 09F282F; Fri, 19 Apr 2024 11:27:15 -0700 (PDT) Received: from bogus (unknown [10.57.84.59]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2DF0D3F792; Fri, 19 Apr 2024 11:26:45 -0700 (PDT) Date: Fri, 19 Apr 2024 19:26:42 +0100 From: Sudeep Holla To: Shresth Prasad Cc: vincenzo.mezzela@gmail.com, gregkh@linuxfoundation.org, Javier Carrasco , Sudeep Holla , Julia Lawall , linux-kernel@vger.kernel.org, rafael@kernel.org, Shuah Khan Subject: Re: [PATCH] drivers: use __free attribute instead of of_node_put() Message-ID: <20240419182642.b7li4mlnvryephhg@bogus> References: 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=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Apr 19, 2024 at 11:16:37PM +0530, Shresth Prasad wrote: > > Please fix the subject line to be "backlight: : ...". I came > > very close to deleting this patch without reading it ;-) . > > Really sorry about that, I'll fix it. > > > 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. > > > > So why not simply make this: > > > > struct device_node *np = dev->of_node; > > 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 would be fine. > > I'll fix both of these issues and send a patch v2. I assume you are using lore "Reply using the --to, --cc, and..." option or something similar. You seem to have mixed up 2 different message ID. I was not able to make any sense of this email. You have wrongly used [1] but you really want [2]. I think both have very similar $subject and hence the confusion. Another reason why getting subject right is very important on the mailing list. -- Regards, Sudeep [1] 20240419131956.665769-1-vincenzo.mezzela@gmail.com (https://lore.kernel.org/all/20240419131956.665769-1-vincenzo.mezzela@gmail.com/) [2] 20240419111613.GA12884@aspen.lan https://lore.kernel.org/all/20240419111613.GA12884@aspen.lan/