Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbeABPiq (ORCPT + 1 other); Tue, 2 Jan 2018 10:38:46 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:42704 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750743AbeABPip (ORCPT ); Tue, 2 Jan 2018 10:38:45 -0500 X-Google-Smtp-Source: ACJfBoufIU93cjcYVzsZISrIkLpBEoK+1FmQx+kX8Jx98cFZGFOUCKS2xYkZN5POn+w75BdFEyxONA== Date: Tue, 2 Jan 2018 15:38:41 +0000 From: Lee Jones To: Robert Jarzmik Cc: Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] backlight: tdo24m: fix the spi cs between transfers Message-ID: <20180102153841.vhzll4gcwuoemk3l@dell> References: <20171228082742.13415-1-robert.jarzmik@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171228082742.13415-1-robert.jarzmik@free.fr> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, 28 Dec 2017, Robert Jarzmik wrote: > Currently the LCD display (TD035S) on the cm-x300 platform is broken and > remains blank. > > The TD0245S specification requires that the chipselect is toggled > between commands sent to the panel. This was also the purpose of the > former patch of commit f64dcac0b124 ("backlight: tdo24m: ensure chip > select changes between transfers"). > > Unfortunately, the "cs_change" field of a SPI transfer is > misleading. Its true meaning is that for a SPI message holding multiple > transfers, the chip select is toggled between each transfer, but for the > last transfer it remains asserted. > > In this driver, all the SPI messages contain exactly one transfer, which > means that each transfer is the last of its message, and as a > consequence the chip select is never toggled. > > Actually, there was a second bug hidding the first one, hence the > problem was not seen until v4.6. This problem was fixed by commit > a52db659c79c ("spi: pxa2xx: Fix cs_change management") for PXA based > boards. > > This fix makes the TD035S work again on a cm-x300 board. The same > applies to other PXA boards, ie. corgi and tosa. > > Fixes: a52db659c79c ("spi: pxa2xx: Fix cs_change management") Since this fixes an old kernel, I'm not going to apply it for -fixes. > Reported-by: Andrea Adami > Signed-off-by: Robert Jarzmik > Acked-by: Daniel Thompson > --- > Since v1: added 2 other panels > Since v2: added Daniel's ack > --- > drivers/video/backlight/corgi_lcd.c | 2 +- > drivers/video/backlight/tdo24m.c | 2 +- > drivers/video/backlight/tosa_lcd.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) Applied to -next, thanks. -- Lee Jones Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog