Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750936Ab1FMEAg (ORCPT ); Mon, 13 Jun 2011 00:00:36 -0400 Received: from linux-sh.org ([111.68.239.195]:47009 "EHLO linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750695Ab1FMEAd (ORCPT ); Mon, 13 Jun 2011 00:00:33 -0400 Date: Mon, 13 Jun 2011 13:00:04 +0900 From: Paul Mundt To: H Hartley Sweeten Cc: Linux Kernel , ARM Kernel , linux-fbdev@vger.kernel.org, Russell King Subject: Re: [PATCH] fb.h: ARM uses __raw_{read/write} Message-ID: <20110613040003.GA29731@linux-sh.org> References: <201106101731.08578.hartleys@visionengravers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201106101731.08578.hartleys@visionengravers.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1295 Lines: 27 On Fri, Jun 10, 2011 at 05:31:08PM -0700, H Hartley Sweeten wrote: > ARM provides __raw_{read/write}* functions for memory access. These > should be used instead of the default '(*(volatile' stuff to make sure the > memory accesses are typesafe (void __iomem *). > > This also fixes a number of sparse warning like: > > warning: cast removes address space of expression > > Signed-off-by: H Hartley Sweeten > Cc: Paul Mundt > Cc: Russell King > I'm not sure what semantics are desirable for ARM here, so I'll wait for Russell to reply. This wrapping will basically mean that the fb_read/write ops are using __raw_xxx variants while the memset and memcpy wrappers will be using the regular read/write[bwl] routines which contain __iormb() calls. Given that ioread/write and friends all wrap in to the normal versions with the barriers, I would suppose that this is the default behaviour that is desired, as opposed to wrapping in to the __raw_xxx variants directly. -- 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/