Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763277Ab3IDR7U (ORCPT ); Wed, 4 Sep 2013 13:59:20 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:29684 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759503Ab3IDR7R (ORCPT ); Wed, 4 Sep 2013 13:59:17 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 50.131.214.131 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18X4QLOwXxaGsopqwMyQUGG Date: Wed, 4 Sep 2013 10:59:09 -0700 From: Tony Lindgren To: Haojian Zhuang Cc: Stephen Warren , Mike Turquette , Kevin Hilman , Olof Johansson , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Matt Sealey , Stephen Boyd , Tero Kristo , Heiko =?utf-8?Q?St=C3=BCbner?= , devicetree@vger.kernel.org Subject: Re: [PATCH v4 5/5] clk: dt: binding for basic gate clock Message-ID: <20130904175909.GB31541@atomide.com> References: <1377150793-27864-1-git-send-email-mturquette@linaro.org> <1377150793-27864-6-git-send-email-mturquette@linaro.org> <5220FB48.7080607@wwwdotorg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 21 * Haojian Zhuang [130903 20:11]: > > We can see that it'll try to find static mapping. What's the static mapping? > If we define iotable in machine driver, we have the static mapping, just like > debug_ll. If we parse everything from DTS file, it'll always get a new virtual > address from vm area. So it always create a new page mapping even for one > register. I may not follow you here.. But it seems that you've missing something with the static mapping: It's found based on the physical address. So if you create static mappings for your SoC with iotable_init(), those mappings will be available everywhere including drivers when you do ioremap(). Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/