Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2052460lqp; Tue, 16 Apr 2024 06:16:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWd1tt4Cq/QLqtDBsFIjgKWzjx6CnbElVO9b9YjzzHtAYsvCip/YTviHmy9TXWXDVeqsAuvnRn6QMpUnzFn+wYnE4PAPnZNfWUCX7N5Iw== X-Google-Smtp-Source: AGHT+IEy3iW4sTIfV9mebfVYMVyYldJL2W54hAGJYfNR0pNeaUoop3iz95DSNsCIg8McivWMC4Qq X-Received: by 2002:a19:914f:0:b0:516:d164:21e9 with SMTP id y15-20020a19914f000000b00516d16421e9mr7788541lfj.30.1713273365179; Tue, 16 Apr 2024 06:16:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713273365; cv=pass; d=google.com; s=arc-20160816; b=YrnCHuq4ltro8tedG2kl9yVKnOvPlia1WPPsEOEThwswg/L/QZff2oCWfAA4rBAMZx AoPe/CoivYahSHMD5r9kdlr5Bi7oTeVpXYJZ0g5sDzzjmpS89OSz+G32HboHpmmdqQaq jXs5QQyTigEbEJ/h5ndOU/TW8JtVYWgGeBEBXL5g7uM2QtNMF5ERiXDzqJvwa1VF22kC Vxr/BFH8VkWe6WxcWBxSBo3Ku7peKyBvOQcMpgbRUkQGarhIrs9FX8w7Hm0afyVg6bto wYBfwqlZB1Vmv9cj/fUp1jTV0TzyO18Ypq0FdaHTihCZZButRfzaIj5uBW/LqHbRP49G ivaQ== 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:dkim-signature; bh=ZGCRzlVkHn0kd1x0fxnMILPpMRU+FfKzIWtzbu0M0fU=; fh=l/lix4oRGdhLDPjwT4NcZPaAgm2XrEGK9LRdjzHgg2w=; b=Q8xTVWBeWHa/ASRGxMJWuGwJMiI0GawzrvTxN7Qb5M+j5zQ3tQTwfqcrKX1MXgjibu HkemBMszcLpTGgMgT803e0N1nBjtbPYN5fs/qDt4MjgES/QzqlQfzH9sv8rxxHfZr/9g EZMhId5kT0AvlYRroSXPmBIF9tUp5FK2yowuNQdn9HLXgGvloVClsOKNO/X2DRzvIU1x B/Kr7FloWzqHAQO4x/GvQ+5n9ZJmFckmRRAq8+WachxqQFlbZr0+pSiuOgBJqJMoK6KR 98M2gmiN/2oAA+BXck9+r+1FHJkINFAQfGDheC2XkPl2JEcCHSQ/4rUP8MBG0uiD6DLd L2tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vEZRIcto; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g12-20020a056402090c00b0056e341617dasi5601375edz.624.2024.04.16.06.16.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:16:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146860-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vEZRIcto; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146860-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B7E1E1F21991 for ; Tue, 16 Apr 2024 13:16:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 431A312C475; Tue, 16 Apr 2024 13:15:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vEZRIcto" 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 69E6639FCE; Tue, 16 Apr 2024 13:15:57 +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=1713273357; cv=none; b=X1Gl0lWQO1DEw7qK9kEe51vO/rObYNI0flwT2i/htyorpJ5l+IUgXTFQZ6HTEPvzGTTpz8W5JV4qRCKequw13UAa9ZUOC8OImrNuiwKzivoiLC21/94UHiXToYqVtZDcG2XzkM6C+ZdRRqvQ+XVtVCa4cyFS7Vn8n5MJ92sj22A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713273357; c=relaxed/simple; bh=+RaJjq58bjdpAdYGgg5kbu/PuCVvFIRqwo+91MWU5Sc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kJ/3rVpjFQrLAOVJU5rEV1akCuxXb5JxgGZRQC7g65DE/WQUqloSr5OD+UWkDzto9fNpFysvZ/+oFnzdL8e0+IdJq2ND6U2eFdDkKmHcV40jmtbwMibRiaiSDNkek0OfKzm1WmZxxNqiycsNtisVF/SRZKJ8BAbBU+9TNkYrE6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vEZRIcto; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D011CC113CE; Tue, 16 Apr 2024 13:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713273357; bh=+RaJjq58bjdpAdYGgg5kbu/PuCVvFIRqwo+91MWU5Sc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vEZRIctom5oVGbyhmPWoDp1y+g+Fgg3GhhoBfhtPD4lBoprXDND4Q2DD3AkNyxg9k k+JNmzmm97sWw90+M0pXB3UyTPvoM5c5Ifq3Diqqqxz+fHzviHibonKiNkss4IHWER mD4RizU+WKf8qdKqLNfSR2eM/I6oYl5JyJfSRSLgBfJYNhMKngkS1NsiFvIib39jF+ 1HWYZk70FP6cfwgCE1pZt0IUx1yvmKtUCFFiSdd9YVoNnf9Wbz9fGG6tfh9qx10rwR lv4RjelnKUV1rZCic+UOfatQCPduPIZgtsqI0hyqzob535FEavCbScU/knKMkLZjL7 Uaf49yM2nd45w== Date: Tue, 16 Apr 2024 08:15:54 -0500 From: Rob Herring To: skseofh@gmail.com Cc: saravanak@google.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] of: of_reserved_mem: remove repeated call to get no-map property Message-ID: <20240416131554.GA2105823-robh@kernel.org> References: <20240412140938.137803-1-skseofh@gmail.com> 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: <20240412140938.137803-1-skseofh@gmail.com> On Fri, Apr 12, 2024 at 11:09:38PM +0900, skseofh@gmail.com wrote: > From: Daero Lee > > In __reserved_mem_alloc_size, of_get_flat_dt_prop is called and checked > whether the "no-map" property exists for the node. In > fdt_init_reserved_mem, the only caller of __reserved_mem_alloc_size, > we checked this again for the same node. Therefore, repeated > of_get_flat_dt_prop call was removed and 'nomap' was passed as an input > parameter to the callee function. This code is all about to get rearranged[1], so holding off on this. Rob [1] https://lore.kernel.org/lkml/20240328211543.191876-1-quic_obabatun@quicinc.com/