Received: by 10.223.185.111 with SMTP id b44csp416921wrg; Fri, 9 Mar 2018 07:08:48 -0800 (PST) X-Google-Smtp-Source: AG47ELsuK+AXhCcYRipciuhWtLJj4jQzUhcP8Sshc6l2w/jWncK3iIbpKYXGneniP7F2UPwO7QNE X-Received: by 10.98.215.2 with SMTP id b2mr30085359pfh.87.1520608128054; Fri, 09 Mar 2018 07:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520608128; cv=none; d=google.com; s=arc-20160816; b=SQJs8MeVwWi8AWqAzUhAnIC93cYky3ZE1GsR5cHWyJUCZ2Pm4EJapZnJDZzsLxCRSf kqQ5+U4JvDXPhKPIUtxJMF8EBXlpGbttUXcQnkPQAEmAJwvbou9QHAG/DBoT6m4R18La kRLSB52zrbA8Y+uV5vkchuJemrpa8qMdz/g1g7Wx20U5WJnGiCQfS6zOOnEafXws2TDo OorHZt0OyBGWVXkI8n9au93+xTIIw37D6rpmut/AwIZ7N9UxDVbyeQzV9IK+JizCJFh3 Ko0jjMBknyQq2dMp2Fj6DF/WBiW3fXYaXeoEcc947xNJoDEMCLXc0NK5d2et3AByX5gs 6Qxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=QD9eQU3N6onBxhFjfZFFHfuG14SLTXP+x40W8nUm0u0=; b=kyjv3wRKdA39Z6f99EcVps1WzRTJx0xNQCAWsocmY2IlWsIuqjJUOgbaH0hxGd0SdO CZ2MZRc3YrQBr53/90OEDSfZmY59RD9FNJF1E9C3IqHkgXinS6RE27C6aZXzB6HBy7NN ly1zsCBV6xwcjWDezMhb9HPZCVi/z3IEUqoqmH+zf8DxNknD0ZRuZyJ2jW5sYTxAXhAd oOP5Xrszgzy2po/1RlHJpzEA455W3ZDxLhGIEQ0SVckkk5kVrJkqW6n3ZvSvEf/rzsR/ cLeTZcYgUWkcAnsMwNJ82leksoWKaYntbG/nZKkTixKI8L7NoZ6QeNwFzgClxFw0p9+/ 5IHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19-v6si1007060plq.120.2018.03.09.07.08.32; Fri, 09 Mar 2018 07:08:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751224AbeCIPHi (ORCPT + 99 others); Fri, 9 Mar 2018 10:07:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:44898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbeCIPHh (ORCPT ); Fri, 9 Mar 2018 10:07:37 -0500 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C0E20205F4; Fri, 9 Mar 2018 15:07:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0E20205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Fri, 9 Mar 2018 15:07:27 +0000 From: James Hogan To: Jim Quinlan Cc: linux-kernel@vger.kernel.org, Bjorn Helgaas , Catalin Marinas , Will Deacon , Rob Herring , Brian Norris , Russell King , Robin Murphy , Christoph Hellwig , Florian Fainelli , Jonas Gorski , Lorenzo Pieralisi , linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Gregory Fong , Kevin Cernekee , Mark Rutland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org, Ralf Baechle Subject: Re: [PATCH v4 1/8] SOC: brcmstb: add memory API Message-ID: <20180309150727.GH24558@saruman> References: <1516058925-46522-1-git-send-email-jim2101024@gmail.com> <1516058925-46522-2-git-send-email-jim2101024@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PW0Eas8rCkcu1VkF" Content-Disposition: inline In-Reply-To: <1516058925-46522-2-git-send-email-jim2101024@gmail.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PW0Eas8rCkcu1VkF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2018 at 06:28:38PM -0500, Jim Quinlan wrote: > From: Florian Fainelli >=20 > This commit adds a memory API suitable for ascertaining the sizes of > each of the N memory controllers in a Broadcom STB chip. Its first > user will be the Broadcom STB PCIe root complex driver, which needs > to know these sizes to properly set up DMA mappings for inbound > regions. >=20 > We cannot use memblock here or anything like what Linux provides > because it collapses adjacent regions within a larger block, and here > we actually need per-memory controller addresses and sizes, which is > why we resort to manual DT parsing. >=20 > Signed-off-by: Jim Quinlan >=20 > Conflicts: > drivers/soc/bcm/brcmstb/Makefile That can go. > +++ b/drivers/soc/bcm/brcmstb/memory.c =2E.. > +/* Macro to help extract property data */ > +#define DT_PROP_DATA_TO_U32(b, offs) (fdt32_to_cpu(*(u32*)(b + offs))) Checkpatch complains about missing whitespace after u32. Cheers James --PW0Eas8rCkcu1VkF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlqioy4ACgkQbAtpk944 dnrGpQ/6A4EcwZ+zoSJZpxuuicPoZib7aq0pGu8F/Ld2nf+Tr48Slxw3kPhcCzc7 HXPBL24yqKGrJ7jFbqrDnWCLkjTg7zsjokCbehiLzQI66LUsRolxGCLMYQz6XfvN noL4iAQ+mRx9qfhpRomyHXA3xcb3DS+TL0o6TxztDgiF5PGz+Iu9AlaYKQ4Zq0cd xuEIGfbJo3fivLDU20H/KyuSY3B3Bg1ayXqtBZSQmxgac1Hkyldjee5Spe8bG0j2 aOUOZRfJY49FjYQ7wW2itTywSE1RpLTHBfqxpYrrQifSB69Ztwl9H0GqWD0PehjI uiKHInsJxqYMNQXMssZxMj4vuHq31v+QbD6jNoinnNrmoctjT8dPaSo6h6t051HE a0saFvpCEJrOqozZ6PQgJQPSg9Mz95+YUFMmNApBzKfYCw0TNuPHH5vupy9A9LWD D1uAyAatlj5Qb8dU0kBXKXCVPu1Ikq4Jbgq/WMkcUh2WTTD4+2T6uKdS+JSnd08X RjevevlDWxgSMJ4DzPoQgZbswKiq/A6Dewg/4hx9O8BnamQ/Sj4pbRThTcdWsNqj 9xC/Gt6QPJQop/pdz0m+Q0ML1lQRNwe1YbUcwt0cMGlVuNzkN45lM7T3HGbz6nXW 8kjCKcG+L9tMJ/4zywyXKUqb+EAjBMgp1OWJobxtG9r+wwLYHzs= =TGmj -----END PGP SIGNATURE----- --PW0Eas8rCkcu1VkF--