From: Marek Vasut Date: Sat, 29 Oct 2016 19:42:54 +0200 Subject: [U-Boot] [U-Boot, 1/2] drivers: USB: OHCI: allow compilation for 64-bit targets In-Reply-To: References: <1477013070-29836-2-git-send-email-andre.przywara@arm.com> Message-ID: <9e07ab84-8ade-2e05-b07d-594ebcb8a8c7@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/29/2016 02:50 PM, Hans de Goede wrote: > Hi, > > On 21-10-16 03:24, Andre Przywara wrote: >> OHCI has a known limitation of allowing only 32-bit DMA buffer >> addresses, so we have a lot of u32 variables around, which are assigned >> to pointers and vice versa. This obviously creates issues with 64-bit >> systems, so the compiler complains here and there. >> To allow compilation for 64-bit boards which use only memory below 4GB >> anyway (and to avoid more invasive fixes), adjust some casts and types >> and assume that the EDs and TDs are all located in the lower 4GB. >> This fixes compilation of the OHCI driver for the Pine64. >> >> Signed-off-by: Andre Przywara > > Patch looks good to me: > > Reviewed-by: Hans de Goede Applied, thanks. Andre, it would be nice if you CC'd me on the original submission. > Regards, > > Hans > > p.s. > > About the ohci_writel macro changes also giving the macro parameters > more sensible names, I believe it is fine to do this while at it and > that this does not need to be split out. Indeed, I am fine with it as well. -- Best regards, Marek Vasut