Re: [PATCH v3 2/6] uio: Add new UIO_MEM_PHYS_CACHE type for mem regions
From: Russell King - ARM Linux
Date: Fri Oct 31 2014 - 05:36:15 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/