From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2927C2BA19 for ; Wed, 15 Apr 2020 16:25:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E2397206F9 for ; Wed, 15 Apr 2020 16:25:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="G+rL9AxB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2397206F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9xhwWTAa/avyGhNvCN7zcXTnvroqqA3N5X8YJmkhlTk=; b=G+rL9AxBrvuYVn XXVqLi5b0suwLFj4ekpwuMBClKwf8XpjGM74W/5PngJ7k2NxbLJ+jzaXKBeLMqd8xpur6TcCh39DY /okyTNV8HlGo9ncf6ql0ESLdXJ48iij0NQsPZZ6SaitrNF40ho3/2lByEXkOwXfbK/Z1xr8wMTLUA YErwO45EPXz251TTkKGGQHmzNixipLjjrLEVv5eI0jDN6cI1Y3nHyoIfrdwcI40dCLsdgMD9QeHcj M+gUvbN02zJToUk5yEWDWV876F0S7md9OQANItkURyMkxBaL9Cz34MLlgmgUnIk5y1TevLjkgvHKP 08CBykEHPeAMzmcwD6bQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jOkqp-0004hF-Jh; Wed, 15 Apr 2020 16:25:23 +0000 Received: from mail-ot1-f65.google.com ([209.85.210.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jOkqc-0002wZ-Cv for linux-arm-kernel@lists.infradead.org; Wed, 15 Apr 2020 16:25:17 +0000 Received: by mail-ot1-f65.google.com with SMTP id m18so465151otq.9 for ; Wed, 15 Apr 2020 09:25:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Zga3Axg4AT5xhbCrFrQxMp2BZq/R059ZDklzJpC3Co8=; b=U6JqxZLzHfpoH45v36InAdYMUkCJOTuk+sm4D637J91y/3XP8eSzUTAq6frg6m1gRa a85CD+ioqZOJi4hhGG196B318FlqpVBHigbDvqhMfI1DG2BwlYr/A3/F1UaV1r2oYrBd LLm2rUaIbgJWzHev+4OIlCshIEj4SwJzieISM3E2nhHN78knqKVEmxv1gZyc31IsRqup NEJH7CiOgXKPwwT3iUx9OaripYQ2UdXDReCnOhqOv2+fqzN8vcrlwiO3ZcPN8aOkZut3 0TfN/icx1rl6Quz7YzamU0GYNgi3QYi014BvPb1aZZNV1YVfbs4uVIez9yTuvqX0gVZf z9gA== X-Gm-Message-State: AGi0PuZsBBwr5nVt0/iSYG4MTZu8/5yVMud6jZ6D5DxyR7Ib3YY38bRl cnKFiCSRlFN/fB4CqXYGGu/yZQp4RQ== X-Google-Smtp-Source: APiQypINl7OyQa3PaOF751WZxAm/bPCscR305bWPfwG1uMxVqEXKaxQHQ8u9SHItlVMuj/jA4D/hqw== X-Received: by 2002:a9d:6ac8:: with SMTP id m8mr13185143otq.262.1586967907640; Wed, 15 Apr 2020 09:25:07 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id n6sm3750539oof.35.2020.04.15.09.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 09:25:07 -0700 (PDT) Received: (nullmailer pid 2481 invoked by uid 1000); Wed, 15 Apr 2020 16:25:06 -0000 Date: Wed, 15 Apr 2020 11:25:06 -0500 From: Rob Herring To: Thierry Reding Subject: Re: [PATCH v6 03/14] of: reserved-memory: Support multiple regions per device Message-ID: <20200415162506.GA2402@bogus> References: <20200409175238.3586487-1-thierry.reding@gmail.com> <20200409175238.3586487-4-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200409175238.3586487-4-thierry.reding@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200415_092510_699047_CD79AEC3 X-CRM114-Status: GOOD ( 12.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Stephen Boyd , Michael Turquette , Jon Hunter , Thierry Reding , Joseph Lo , linux-tegra@vger.kernel.org, Dmitry Osipenko , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 9 Apr 2020 19:52:27 +0200, Thierry Reding wrote: > From: Thierry Reding > > While the lookup/initialization code already supports multiple memory > regions per device, the release code will only ever release the first > matching memory region. > > Enhance the code to release all matching regions. Each attachment of > a region to a device is uniquely identifiable using a struct device > pointer and a pointer to the memory region's struct reserved_mem. > > Signed-off-by: Thierry Reding > --- > drivers/of/of_reserved_mem.c | 22 ++++++++++------------ > 1 file changed, 10 insertions(+), 12 deletions(-) > Reviewed-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel