Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp160201lqp; Tue, 21 May 2024 23:49:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtacBnBFStBQxkGnlBerWvWgnUExKEhxz6siIzH8vhmt67wDock33YRGOYSZZJmK8eoj17HWvXd2j4jyxQaa2oy71QGKxzGRuJj5Trww== X-Google-Smtp-Source: AGHT+IENcPrk/BcR3VZAYI90u+OYY9r73zf7IYjLUavqYdLpELbWTuqT5FPmmLLM63LmlBSpSeIS X-Received: by 2002:a05:6214:2d46:b0:6a0:c9f6:5c5a with SMTP id 6a1803df08f44-6ab808b1367mr12962916d6.39.1716360559236; Tue, 21 May 2024 23:49:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716360559; cv=pass; d=google.com; s=arc-20160816; b=js5aSl4zCP76Gj3xj9bNOX6d37IjO3BtXMUP5H8ciY/0nR6h8KNdB5VbBvUqqkNcvN T/FtufryWhPLqwJz2oCmrnIdYlFG/7Svk7QzBFSzEuad9WQ/2T2gtKGUHzNcEBzVj7xm OGVY2XTeyy2Ns0qyH6T8n+jA9BB6sxfRrHX7uspwQHqZdsvYlLlFd0rW8gpT4iGhbBVi +D8W29EM8Kp8oBnPBxMIO14O+SsJ3hz2ZoSpEFGxXy4Ygh8Ui3QDhpetsxfFB115UQj0 m9G+tMp8C4gzTzE6EHIf11beGjPYXRZfuc7FYzCAEWI8rDVhu8P7s0O9VbSLPd0WfzV6 A8zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Tk6o5T9sIU3CFv9U6tBqPCSZt6hu3HdlL0fHhx9MvW4=; fh=LqXStzZQsDG+l2vX5We/itClVRnXBfVNNYGf8Qhoiw8=; b=Gjbn7shSg6oHIyJYha6DPbpim1t2VFc6rUixmL+GmK1ImC1K2boB6qIoyH2YvFQRpV fRmirbzkiFUyap+ZZcDC8LQ8yCSDKot5UUVAs4W2KI3W3Ldz8ofzpT5w9kP07zjhCZDf 9gKceuw+1omQsl20fOnNLAJoXz2WOwO1VjLPra+JOkrRgFYIH1l19veyIWP8UJyeRpCv isI0Yk45gqJUX0TqWn7OltfamMm8+ECjepfb83vI1QWKda3dAb/+z39Rw2cYD/ywV+2z mCfODrjWakLXzwa0jE4PsXn2BqJ9FOPI6CbZkRl7HGyNy2zc0tZ1igFF5BxCaXqSGE5d kNAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhdaP4IG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d7105si35818356d6.74.2024.05.21.23.49.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 23:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhdaP4IG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id ED6201C21746 for ; Wed, 22 May 2024 06:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3B5679B8E; Wed, 22 May 2024 06:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OhdaP4IG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9978770EA; Wed, 22 May 2024 06:49:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716360548; cv=none; b=FwLfydWvOkk+tx5jZXf1KauRol3JEsqC9rxepnXiSHYQ9dp0dbBAHZ89Uujy9kEoXZPIFztVfVhr0HpBROszewF16RPf0AmP/qhOvzD6M4+xbqwnT00iiTOZMTs+3uISoIhnrEAA7YR4scIcZMs2KujOafXG0Uc4t/y2OM1SVxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716360548; c=relaxed/simple; bh=CeMXYGdyxRFb87MLEU2wKkVTrxdM2DN0261kgTe8GyA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q7CsZMcrLabFjdpP4d3kzR/bU123PzR3S6MSsIiQErpw8Erg9F92vFJYHsXMGlnEWfFfveb+wyR2sCJgGK2Aq6R3ii8TFwn4Ix0DngA9a4tfZYGFpNnyDjm7SrKmmJYhCoCKuTcYiW0iQwxu2gbC+6atsIENZYNR6GHOr5x60pM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OhdaP4IG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D8E9C2BD11; Wed, 22 May 2024 06:49:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716360548; bh=CeMXYGdyxRFb87MLEU2wKkVTrxdM2DN0261kgTe8GyA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OhdaP4IGKfpy9K9vnmhuIP+iDLoyVNynedwbbMol1RbN9E20GAhr28+L+FFIfKbUN OsnSuuT4f3a2/aXNN/zLMn33P/S6yrd2zJIXaihCJ353zLMajd/RmybzEt7fUNnhcr gKt11gv/llSJArVXURFq3nzcgZk6ipBNygRiaEsYpGhnVHdztDdWiOLJbw1Pfol+2P Yyz2I4+E2lP8YgTOV7+MCRGJxNeOXBb0Jlvg6BFDs5H+j0GuuK5kgIHB6pLMC2ATjk hY4pzHWRhZlI++YsPyebKYdojp306tmwkfZypEc/3QeKKlo40npn0I49y8Q1BuUX92 hol4ewdWNrZyg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s9fmZ-000000002vV-2Xji; Wed, 22 May 2024 08:49:04 +0200 Date: Wed, 22 May 2024 08:49:03 +0200 From: Johan Hovold To: Andy Shevchenko Cc: Johan Hovold , Lee Jones , Mark Brown , Linus Walleij , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 11/13] mfd: pm8008: rework driver Message-ID: References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-12-johan+linaro@kernel.org> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 10, 2024 at 04:15:43PM +0300, Andy Shevchenko wrote: > On Thu, May 9, 2024 at 12:42 PM Johan Hovold wrote: > > On Mon, May 06, 2024 at 10:18:58PM +0300, Andy Shevchenko wrote: > > > Mon, May 06, 2024 at 05:08:28PM +0200, Johan Hovold kirjoitti: > > > > +static void devm_irq_domain_fwnode_release(void *res) > > > > +{ > > > > > > > + struct fwnode_handle *fwnode = res; > > > > > > Unneeded line, can be > > > > > > static void devm_irq_domain_fwnode_release(void *fwnode) > > > > > > > + irq_domain_free_fwnode(fwnode); > > > > +} > > > > I think I prefer it this way for clarity and for type safety in the > > unlikely even that the argument to irq_domain_free_fwnode() would ever > > change. > > If it ever changes, the allocation part most likely would need an > update and since devm_add_action() takes this type of function, I > don't believe the argument would ever change from void * to something > else. With this it just adds an additional burden on the conversion. I was referring to the irq_domain_free_fwnode() prototype. > > > > + name = devm_kasprintf(dev, GFP_KERNEL, "%pOF-internal", dev->of_node); > > > > > > You are using fwnode for IRQ domain and IRQ domain core uses fwnode, why OF here? > > > > > > name = devm_kasprintf(dev, GFP_KERNEL, "%pfw-internal", dev_fwnode(dev)); > > > > This driver only support OF so why bother. > > Sure, but it makes a bit of inconsistency. No, I don't consider this an inconsistency. Again, *this* is an OF driver, other subsystems need to deal with ACPI and use fwnode. Johan