From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: Re: [PATCH 13/14] Blackfin SPI driver: Move cs_chg_udelay to cs_deactive to fix bug when some SPI LCD driver needs delay after cs_deactive Date: Tue, 30 Oct 2007 13:18:59 -0700 Message-ID: <200710301319.00071.david-b@pacbell.net> References: <1193735885-8202-1-git-send-email-bryan.wu@analog.com> <1193735885-8202-14-git-send-email-bryan.wu@analog.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Cameron Barfield To: Bryan Wu Return-path: In-Reply-To: <1193735885-8202-14-git-send-email-bryan.wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Tuesday 30 October 2007, Bryan Wu wrote: > @@ -211,6 +211,10 @@ static void cs_deactive(struct driver_data *drv_data= , struct chip_data *chip) > =A0=A0=A0=A0=A0=A0=A0=A0flag |=3D (chip->flag << 8); > =A0 > =A0=A0=A0=A0=A0=A0=A0=A0write_FLAG(drv_data, flag); > + > +=A0=A0=A0=A0=A0=A0=A0/* Move delay here for consistency */ > +=A0=A0=A0=A0=A0=A0=A0if (chip->cs_chg_udelay) > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0udelay(chip->cs_chg_udelay); > =A0} > =A0 By the way, if this is something needed very often, that mechanism should be moved into the SPI framework. It wouldn't be polite if such LCD drivers could only work on Blackfin boards. :) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/