From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heikki Krogerus Subject: Re: [PATCH] serial: 8250_dw: Fix LCR workaround regression Date: Wed, 11 Dec 2013 16:00:15 +0200 Message-ID: <20131211140014.GF28456@xps8300> References: <1386714484-30251-1-git-send-email-james@albanarts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga14.intel.com ([143.182.124.37]:9196 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751380Ab3LKOBG (ORCPT ); Wed, 11 Dec 2013 09:01:06 -0500 Content-Disposition: inline In-Reply-To: <1386714484-30251-1-git-send-email-james@albanarts.com> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: James Hogan Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory Clement , Thomas Petazzoni , Lior Amsalem , Jason Cooper , James Hogan , Greg Kroah-Hartman , Jiri Slaby , Tim Kryger , Ezequiel Garcia , Matt Porter , Markus Mayer Hi, On Tue, Dec 10, 2013 at 10:28:04PM +0000, James Hogan wrote: > From: James Hogan > > Commit c49436b657d0 (serial: 8250_dw: Improve unwritable LCR workaround) > caused a regression. It added a check that the LCR was written properly > to detect and workaround the busy quirk, but the behaviour of bit 5 > (UART_LCR_SPAR) differs between IP versions 3.00a and 3.14c per the > docs. On older versions this caused the check to fail and it would > repeatedly force idle and rewrite the LCR register, causing delays and > preventing any input from serial being received. > > This is fixed by masking out UART_LCR_SPAR before making the comparison. > > Signed-off-by: James Hogan > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Tim Kryger > Cc: Ezequiel Garcia > Cc: Matt Porter > Cc: Markus Mayer > Cc: Heikki Krogerus > Tested-by: Tim Kryger > Tested-by: Ezequiel Garcia I tested this with HW without the busy functionality (UART_16550_COMPATIBLE == yes). No problems here. FWIW: Tested-by: Heikki Krogerus -- heikki