From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Subject: Re: [PATCH 01/11] tty: amba-pl011: add register accessor functions Date: Tue, 3 Nov 2015 08:53:49 -0600 Message-ID: <5638CA7D.8000404@codeaurora.org> References: <20151103134349.GV8644@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Russell King , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Peter Hurley , Andre Przywara , Linus Walleij , Andrew.Jackson@arm.com, Greg Kroah-Hartman , Jiri Slaby , Jun Nie List-Id: linux-serial@vger.kernel.org Russell King wrote: > +static unsigned int pl011_read(void __iomem *base, unsigned int reg) > +{ > + return readw(base + reg); > +} > + > +static void pl011_write(unsigned int val, void __iomem *base, unsigned int reg) > +{ > + writew(val, base + reg); > +} This has the same problem as the original, in that it doesn't support the SBSA subtype 13. I'll post my version soon that addresses this. Maybe you can consider it as a replacement for your patch 1/11. -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation. From mboxrd@z Thu Jan 1 00:00:00 1970 From: timur@codeaurora.org (Timur Tabi) Date: Tue, 3 Nov 2015 08:53:49 -0600 Subject: [PATCH 01/11] tty: amba-pl011: add register accessor functions In-Reply-To: References: <20151103134349.GV8644@n2100.arm.linux.org.uk> Message-ID: <5638CA7D.8000404@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Russell King wrote: > +static unsigned int pl011_read(void __iomem *base, unsigned int reg) > +{ > + return readw(base + reg); > +} > + > +static void pl011_write(unsigned int val, void __iomem *base, unsigned int reg) > +{ > + writew(val, base + reg); > +} This has the same problem as the original, in that it doesn't support the SBSA subtype 13. I'll post my version soon that addresses this. Maybe you can consider it as a replacement for your patch 1/11. -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation.