Messages in this thread |  | | Date | Fri, 31 Oct 2014 09:35:57 +0000 | From | Russell King - ARM Linux <> | Subject | Re: [PATCH v3 2/6] uio: Add new UIO_MEM_PHYS_CACHE type for mem regions |
| |
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.
|  |