From: David Brownell Subject: Re: [PATCH v5 1/1] OMAP2: Spi: Force CS to be in inactive state after off-mode transition Date: Mon, 29 Nov 2010 19:08:47 -0800 (PST) Message-ID: <509131.41359.qm@web180304.mail.gq1.yahoo.com> References: <877hfw1a6a.fsf@deeprootsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-omap , spi-devel-general@lists.sourceforge.net, Grant Likely To: Gregory CLEMENT , Kevin Hilman Return-path: In-Reply-To: <877hfw1a6a.fsf@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org > > Now force CS to be in inactive state only if it was > inactive when it was suspended. Note that it's a bug if CS is active in any suspend state (including OFF). That strongly suggests $SUBJECT is an incomplete workaround for that other bug... > > > > When SPI wake up from OFF mode, CS is in the wrong > state: force it to the inactive state. Best report the bug that the suspend/OFF state was mis-handled... That is, it didn't correctly ENTER that OFF mode... In fact ... I'd like to see that fixed more than the $SUBJECT issue, so the root cause gets resolved... CS should only be active while a SPI message is being processed, and such processing must have completed before suspend/OFF/... starts