Received: by 10.223.164.202 with SMTP id h10csp4832049wrb; Wed, 29 Nov 2017 12:37:20 -0800 (PST) X-Google-Smtp-Source: AGs4zMYDYMk1a4BYLZt8JiTUywtoiERYbYr5XCEZ24VG+OCjunJ8SjfmnNY1C96IBWlNz4veFMfr X-Received: by 10.84.160.232 with SMTP id v37mr126893plg.167.1511987840390; Wed, 29 Nov 2017 12:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511987840; cv=none; d=google.com; s=arc-20160816; b=i0EHf02E7GAWQeQoorjfY2XPfNbUmmaU2qO2gBVv2lh9dIA9T6Skqr7SlqICceIQc5 v92onPR6MewZtnbor7znoqqNnSQd7a6CHX0CKLvzT8kGgWFRS7CPjXUUee4FRSQDGvSr CGsyMTh9Vq0IZUbigYRrOtjxP5KKVgfEZTmdiGob+BvGGsj8kf9i9jBXOa1F0mWmKwkz CcIF2O9fJpmrXkkIJM6/Hu5NKZ5MyZZMuFoBj/1uVOxWK9z8jWexE+YfemdxQU2HJhiK QHW7Ty3pqvOkZp+MaJ/5kn1SDd18/EIJ90DysA/eh8tI1No+2PZFmSMEAFgodugzeCt0 XGoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=leA/bLNRe4Zm+9vPgrk3nDEWuo5U0TdpnoOPyVBwOIs=; b=caVUVl/ACVvAb2qzr66eRWT4Y3g2+vH8Q6fSxqgoTw5XQ/a5N0Z0JuCZcDDq6rt5sJ 74gAybINxuIpXBxn+GrvBxPlrIMg2UC+liIY1BsYBhKIyoirbPsZwu7d9gtHyiM+qBH0 dD2CnWKphB7JUIQCsrsUcevt5v5vzSGrDD8ColMVBrvBYug6S47EZrAaoxkCYZhi42SY 5W7xV3Olt+cTZo4TRUpuIXPP7oGVLEQ6S2vm/0F8mLz/KpDWRjQlpsskmTavrekrmWol SCVtK82MtQP/i7Y1WECp4EBaT0ZAQqnQEHfQ5sY2xh4bmA3VVk0IpetYG1VHYYqZFWVM 3whg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EJdIiPrL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d62si1798410pga.87.2017.11.29.12.37.07; Wed, 29 Nov 2017 12:37:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EJdIiPrL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752634AbdK2Ugy (ORCPT + 99 others); Wed, 29 Nov 2017 15:36:54 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:45262 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752077AbdK2Ugw (ORCPT ); Wed, 29 Nov 2017 15:36:52 -0500 Received: by mail-wm0-f67.google.com with SMTP id 9so8889190wme.4 for ; Wed, 29 Nov 2017 12:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=leA/bLNRe4Zm+9vPgrk3nDEWuo5U0TdpnoOPyVBwOIs=; b=EJdIiPrLbDT+iXbSS1PNR3pd5Ruh1zTujxoJ62NzFPt4XxO1brVuF2e/mPwZ+/rYa5 Axt0ek6qy1we87U2R+wr34xTjAsFxvClAsVcK1LLMZvXeeWQ4aIzq/GQuWOCGyCTWJZu WpoI1iL6fP2urwp46j8RsGXxDDgBIq+sLMEtQn6G7GkjMyOmQKKucqGpv7dz6KyRq0O8 PQfd7I/8W7yYnVVIf9GxSDbhed6W0XSaFdEywTxhYIQs1De1dJuuJUeFJ+lW25XWivoN z8Dg4d/UzCTzNpM6Tu2hRsyDO/60RMzF413hN4G1fFqt6NiI6nu4rvztrYCTosKqJBUw qXNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=leA/bLNRe4Zm+9vPgrk3nDEWuo5U0TdpnoOPyVBwOIs=; b=RznKAoLfiaRUPdh2FYeCe2EOv9/GYphHegAUFMNpldg4Ll+SlSVaip5OMEay3KmQsW bgT2SimZRPgGzkwyhDyVf6yJM84BmpLxGudsOHBoBoimEkDOXWM4mfTKrgyIrFayqlZa 3cW0gUfDEwP/XvdKFyivc1Rn63U3uvH1bEGDnCjqrbSJQrCSC0MjZVfcd7p7zNptVglM jHKXKTYagIoBfGpPGCIi9l0ydgmIW6nCbL23KeZ9mzN1PSH31MfzE/fswieh7JLEoenc MPr+59qnv9q6G2DLjoddk/pDU+8CstxFL0ZcXBZVqHB9JQu1ej3EvkhqQ8HxVWhbXJxO Pr+w== X-Gm-Message-State: AJaThX6zwuve2zeEVVP4j8NpSrb1Jyyr7V3ITUUK+33w8PqmJEGi+NCE WDq8oOxrhKd+aTAaJ2lk8rqLCg== X-Received: by 10.28.212.137 with SMTP id l131mr63590wmg.32.1511987811278; Wed, 29 Nov 2017 12:36:51 -0800 (PST) Received: from [192.168.1.221] ([195.245.52.78]) by smtp.gmail.com with ESMTPSA id x63sm2278374wma.39.2017.11.29.12.36.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 12:36:50 -0800 (PST) Subject: Re: [PATCH v2 4/6] ARM: ep93xx: ts72xx: Rewrite map IO code to be reusable To: Lukasz Majewski , Arnd Bergmann , arndbergmann@gmail.com, Hartley Sweeten Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Olof Johansson , Linus Walleij References: <20171116232239.16823-1-lukma@denx.de> <20171121143204.1839-1-lukma@denx.de> <20171121143204.1839-5-lukma@denx.de> From: Alexander Sverdlin Message-ID: Date: Wed, 29 Nov 2017 21:36:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20171121143204.1839-5-lukma@denx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On 21/11/17 15:32, Lukasz Majewski wrote: > The map IO common code has been excluded to be reused by other ts72xx > clones. > > Signed-off-by: Lukasz Majewski Acked-by: Alexander Sverdlin > > --- > Changes for v2: > - New patch > --- > arch/arm/mach-ep93xx/ts72xx.c | 23 ++++++++++++++++------- > 1 file changed, 16 insertions(+), 7 deletions(-) > > diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c > index 00e0e5b8babf..a6e473b3dcf6 100644 > --- a/arch/arm/mach-ep93xx/ts72xx.c > +++ b/arch/arm/mach-ep93xx/ts72xx.c > @@ -30,11 +30,6 @@ > > static struct map_desc ts72xx_io_desc[] __initdata = { > { > - .virtual = (unsigned long)TS72XX_MODEL_VIRT_BASE, > - .pfn = __phys_to_pfn(TS72XX_MODEL_PHYS_BASE), > - .length = TS72XX_MODEL_SIZE, > - .type = MT_DEVICE, > - }, { > .virtual = (unsigned long)TS72XX_OPTIONS_VIRT_BASE, > .pfn = __phys_to_pfn(TS72XX_OPTIONS_PHYS_BASE), > .length = TS72XX_OPTIONS_SIZE, > @@ -47,12 +42,26 @@ static struct map_desc ts72xx_io_desc[] __initdata = { > } > }; > > -static void __init ts72xx_map_io(void) > +static struct map_desc ts72xx_common_io_desc[] __initdata = { > + { > + .virtual = (unsigned long)TS72XX_MODEL_VIRT_BASE, > + .pfn = __phys_to_pfn(TS72XX_MODEL_PHYS_BASE), > + .length = TS72XX_MODEL_SIZE, > + .type = MT_DEVICE, > + } > +}; > + > +void __init ts72xx_common_map_io(void) > { > ep93xx_map_io(); > - iotable_init(ts72xx_io_desc, ARRAY_SIZE(ts72xx_io_desc)); > + iotable_init(ts72xx_common_io_desc, ARRAY_SIZE(ts72xx_common_io_desc)); > } > > +static void __init ts72xx_map_io(void) > +{ > + ts72xx_common_map_io(); > + iotable_init(ts72xx_io_desc, ARRAY_SIZE(ts72xx_io_desc)); > +} > > /************************************************************************* > * NAND flash From 1584686522007405730@xxx Tue Nov 21 14:33:55 +0000 2017 X-GM-THRID: 1584686522007405730 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread