Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp776388pxb; Wed, 6 Oct 2021 15:20:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT/7lNdRQaVIGMo/4Ku8RScsp4uV66WM9mJzn7BrbVJ5/dgKsNDwvAzFqwH95bf9MJbxF+ X-Received: by 2002:a62:1ac4:0:b0:44c:4c4e:1d3c with SMTP id a187-20020a621ac4000000b0044c4c4e1d3cmr834132pfa.8.1633558841769; Wed, 06 Oct 2021 15:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633558841; cv=none; d=google.com; s=arc-20160816; b=ftBFq3360ToWwMwiAUR8+SZ4GtAZKyLGf8ND1AQMI36OKFWCdimHfApOZWhLQlpCZ3 Zs5cilYD59f9bM3q5/pL8/XQavfNQeXLAWKZ88uD/YZSiFkXim8oyv4BvMbO/7ZXlxDL 4mnLKmQCM0fzvYAFHOGWnJub8l2MYPl3nCTwOGW4lWcPZm1Q41IRofqBzN2lKL5UTc6I 47FFqgeMSz69YK2Jgoy+fOivfe+O+DgSbJbkbJWwRxNcXZTwiDPPglMlzMsuAAnxnsgr fE5Am2cLFKDQ4AzsI55VUZK8bL4MDzLCD5Uw+qS6aetHwoRsf4t2EcWNCQ+ImK2TllBw Qwew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Wsk8RujENKPF2c4h64RRnI6VLfD/b5uYWJziNgJB7M0=; b=dkGol863WDnZ86xn8z8ygrlDo17PaHn+Lc0zJJitrjFdUzQix2gVRX7GLMuskY6Rp2 dAQpQrBcaY98ArMNBD1WeT0hLNGxZF23CM5N2EnZCt/LwSpFugA/L9QIhw4J46Uxqmre 2SZ3HyYw/qylIRaZdUF63Qy0Zn8TwvOYR+xBjw5NzkbC5c9lKe8zZHbiAGamjP8aQqGE Q3oNvpdIlr4gx6R152muZpB0/WkB1dFHzXDQjuRzsCkEwVS3d4Ix010GmZmVNfnjJbP4 mXkLezrOxTpI6XfgAGgivhUUH0ad+vSEW8wi+0xqOuxNN7SpOW0y4j4L7AK6f8YJCpze 9ICA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si35740976pgu.485.2021.10.06.15.20.27; Wed, 06 Oct 2021 15:20:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239678AbhJFVWh (ORCPT + 99 others); Wed, 6 Oct 2021 17:22:37 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:38873 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239680AbhJFVWg (ORCPT ); Wed, 6 Oct 2021 17:22:36 -0400 Received: by mail-ot1-f44.google.com with SMTP id c6-20020a9d2786000000b005471981d559so4863851otb.5; Wed, 06 Oct 2021 14:20:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Wsk8RujENKPF2c4h64RRnI6VLfD/b5uYWJziNgJB7M0=; b=7hoBXHQnSVB1GM5P5S1vsI7bVDjrAKr7KAUlPPFUM4WVTFcwGPZ7VRDkIq/52XQFcg 5vOz3h2pPTgvMscsSb/grySk7VdecMZguG4CkZ2j89sZk/sLl+bma6LxiM2WTIYUTxU2 l2eQV5cXn300Ak1axjaX2wWa8xvw4+ACvLLZXig3FT5dnqP2oWAYfnWZeaMLmHWnsyo5 /2uY1OvnC5QDCZ9jYFyxYVhbkwAKLQ4Dhb57a8wgSd0TJuEGuH0vBRm3rnTNS9WJqxsF tg5CFoKX4DE7P3XvzdOMkb0IX6YKWVyhJhdJ3q8WtpXxSGSLjkSCr9cE2PGj3thDUIgy SeTQ== X-Gm-Message-State: AOAM530lg2mP0/h+NJeo1a08o9JWWwllhKK6c7jqdxrCuDurerZGaikl 01fr6gK0xYPZ9mI2F7Muog== X-Received: by 2002:a9d:4049:: with SMTP id o9mr455235oti.161.1633555243743; Wed, 06 Oct 2021 14:20:43 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id s10sm4189966oib.58.2021.10.06.14.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 14:20:43 -0700 (PDT) Received: (nullmailer pid 2897196 invoked by uid 1000); Wed, 06 Oct 2021 21:20:42 -0000 Date: Wed, 6 Oct 2021 16:20:42 -0500 From: Rob Herring To: Bjorn Andersson Cc: Andy Gross , Frank Rowand , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Lew , Deepak Kumar Singh Subject: Re: [PATCH v2 3/4] soc: qcom: smem: Support reserved-memory description Message-ID: References: <20210930182111.57353-1-bjorn.andersson@linaro.org> <20210930182111.57353-4-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210930182111.57353-4-bjorn.andersson@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 11:21:10AM -0700, Bjorn Andersson wrote: > Practically all modern Qualcomm platforms has a single reserved-memory > region for SMEM. So rather than having to describe SMEM in the form of a > node with a reference to a reserved-memory node, allow the SMEM device > to be instantiated directly from the reserved-memory node. > > The current means of falling back to dereferencing the "memory-region" > is kept as a fallback, if it's determined that the SMEM node is a > reserved-memory node. > > The "qcom,smem" compatible is added to the reserved_mem_matches list, to > allow the reserved-memory device to be probed. > > In order to retain the readability of the code, the resolution of > resources is split from the actual ioremapping. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v1: > - None > > drivers/of/platform.c | 1 + Acked-by: Rob Herring > drivers/soc/qcom/smem.c | 57 ++++++++++++++++++++++++++++------------- > 2 files changed, 40 insertions(+), 18 deletions(-)