Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757332AbaJaJgL (ORCPT ); Fri, 31 Oct 2014 05:36:11 -0400 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:51220 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756039AbaJaJgJ (ORCPT ); Fri, 31 Oct 2014 05:36:09 -0400 Date: Fri, 31 Oct 2014 09:35:57 +0000 From: Russell King - ARM Linux To: Kumar Gala Cc: Ankit Jindal , linux-kernel@vger.kernel.org, "Hans J. Koch" , Greg Kroah-Hartman , patches@apm.com, linux-arm-kernel@lists.infradead.org, Rob Herring , Tushar Jagad , devicetree@vger.kernel.org, Guenter Roeck , Varka Bhadram Subject: Re: [PATCH v3 2/6] uio: Add new UIO_MEM_PHYS_CACHE type for mem regions Message-ID: <20141031093557.GT27405@n2100.arm.linux.org.uk> References: <1413871011-4101-1-git-send-email-ankit.jindal@linaro.org> <1413871011-4101-3-git-send-email-ankit.jindal@linaro.org> <6D33D50E-2DD1-482C-B05E-45B237F3B779@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6D33D50E-2DD1-482C-B05E-45B237F3B779@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 21, 2014 at 08:38:23AM +0200, Kumar Gala wrote: > Rather than adding a new type, why not allow the driver to set the Please wrap your message. That doesn't work. A pgprot_t contains more than just memory type information. It also contains access permissions. In other words, if the user requested read-only or a read-write mapping, the permissions will be different. If you always use your stored pgprot_t, then you will override the users requested permissions. -- FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net. -- 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/