From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 22 Nov 2015 10:52:34 -0500 Subject: [U-Boot] [U-Boot, v3, 02/13] ns16550: change map_sysmem to map_physmem In-Reply-To: <1447940895-7763-3-git-send-email-thomas@wytron.com.tw> References: <1447940895-7763-3-git-send-email-thomas@wytron.com.tw> Message-ID: <20151122155234.GX9551@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Nov 19, 2015 at 09:48:04PM +0800, Thomas Chou wrote: > Change map_sysmem() to map_physmem(,,MAP_NOCACHE). Though map_sysmem() > can be used to map system memory, it might be wrong to use it for I/O > ports. The map_physmem() serves the same purpose to translate physical > address to virtual address with the additional flag to take care of cache > property. Most drivers use map_physmem() since I/O ports access should be > uncached. As ns16550 is a driver, it should use map_physmem() rather > than map_sysmem(). > > Signed-off-by: Thomas Chou > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: