Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2365853rdb; Mon, 5 Feb 2024 04:35:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk7LCpJqPi3zt+aD6Q3yfS1ErWVyODTO5Rw5whwKhx6/eETJg6l7IHtkWZdBz4rmb0XZoR X-Received: by 2002:a17:906:a1d6:b0:a36:3345:be88 with SMTP id bx22-20020a170906a1d600b00a363345be88mr7428857ejb.30.1707136516812; Mon, 05 Feb 2024 04:35:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707136516; cv=pass; d=google.com; s=arc-20160816; b=RzHKvsljKn5bPnPsbzVuIDkZ/sz+xNCBI/IMprqdkMl658ZCfRgBAbQPVmzsZgLhwD mS+OfLizqqErrF1JLDEv1qOwg64Ys8PoViHBUW72cPWFdAJjBQf/feZqC/hsHSVRuvzv +N5lJpKayt268ZGTKFMU6CfRFHQnaFy7xiCfbJNX9LfSVQmrzzpssOdUF2GFbHJsgeof gwhUn/fXjx20AnvpWREQnaL+OnqsPu2drt19xrjv2QV1EaW6ZTuCGaozBy7CwABj/4ld bDpQCvJwh9YlQ4+RGbq6h7S9s/wa47uCuOLnHsnzjRXbTXR+CBffbZ7n2M1/YzkvR5oG p4WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=R4X/mZDtEKnxBUZadqDjT9UoOiSmyEO5JuedSx+utVI=; fh=75/GZzmNuYjcFlIxri5HWahfm13xgw1MwxVdftOF04o=; b=HIUWN3Zek3eDSlf7loG3YWq7796Hr5y4dvtSiO6n1J+vrLRGzL3Y4P7uyO+xsWN0ug w3bLRRBXcVpXcvQNAuJpgZPZbqfdpu/kO6Pk5JEtk2ZQ5Td+MixqB68O4J3EHVpvrnWb +SEmR4P4t8Rhk4jPl1FkwA+xN8u8lryrv6c102MeEWQ/sTG9NVOqeLqUJrK6GuiWcUHe sTEs6rSI5cP/XCOAjyR2LysJAds0sHEjkgKehWNSMViucIooxV3cfZ5K3wjGBE7v2Pau gg3YD8QQ2em5HP3ljxWQBA2vrlrwVoraXCbffCrfblG03GIrsMwTJVbT5gSXgQmfabDO YbuA==; 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-52609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com X-Forwarded-Encrypted: i=1; AJvYcCVbhK+3/lAw317BSlBhnu0bsqMzKNnfO9+zzDRCY6XY6NmzJPKJcIOtDpO2tsCCQGV0cKLjNm74ddZ4xh4TKKIBocj0mlwfBQJstSyC3A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h13-20020a1709063b4d00b00a379de3b337si1474596ejf.920.2024.02.05.04.35.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 04:35:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-52609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52609-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 8EAFC1F21251 for ; Mon, 5 Feb 2024 12:35:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1CE71CAAE; Mon, 5 Feb 2024 12:34:34 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4C4A1CA80; Mon, 5 Feb 2024 12:34:31 +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=1707136474; cv=none; b=oy3Ku0ku9TABqkMMzRC6sjaydCASLdSNHNe7vFesS4W38HvupztkL4u4UjXhu6c3zOJU3fVn24uX4ARUcBGVVZaLU0IkYQyxifIKG2WfuNDAI+AIqoinDkqnNXUHw3+sWaohMDIlhBuHnziCQBGVmGrMBLVXTO62pfzXRrcozuI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707136474; c=relaxed/simple; bh=kceg1RKuaGLopnR5e28ESsP0l2T+8rKChglAS/2r7yQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tONIwmqCz18i+0MQEjQQgxry8IiYoHSHY0YCR9Mkg+n54fnlUaXQB6Us1rADSrvDwXQNjiY7y1HUiztaWGPFEsVdnvDkI1SFxZlgFJx+5KgYy/lIaNGRglqCRPmS6vgI+EEEDI2H0HiGN/dXPVu2uMuhJPPkoJMduyfR8vAb4IE= 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 DC8431FB; Mon, 5 Feb 2024 04:35:13 -0800 (PST) Received: from [10.57.48.140] (unknown [10.57.48.140]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 61F623F762; Mon, 5 Feb 2024 04:34:30 -0800 (PST) Message-ID: <51315925-21ac-427c-abea-4d652ed5280f@arm.com> Date: Mon, 5 Feb 2024 12:34:28 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: iommu/ipmmu-vmsa: Use devm_platform_get_and_ioremap_resource() in ipmmu_probe() Content-Language: en-GB To: Markus Elfring , iommu@lists.linux.dev, kernel-janitors@vger.kernel.org, =?UTF-8?B?SsO2cmcgUsO2ZGVs?= , Will Deacon Cc: LKML References: <324d4e02-6a5a-4112-a3a7-d7aeb5876acc@arm.com> <49fc6a59-2c07-4366-b32f-0599c2418916@web.de> From: Robin Murphy In-Reply-To: <49fc6a59-2c07-4366-b32f-0599c2418916@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-02-05 11:52 am, Markus Elfring wrote: >>> Thus reuse existing functionality instead of keeping duplicate source code. >> >> Much as I detest the get_and_ioremap_resource obfuscator, it's not even appropriate here since nothing else is using "res". > > I got the impression that this local variable is needed to perform > a desired function call. Yes, the call to devm_ioremap_resource(). Which you're proposing to remove... Thanks, Robin.