From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory CLEMENT Subject: [PATCH v2 0/2] Put the OMAP2 SPI CS in inactive state when returning from suspend Date: Wed, 10 Nov 2010 11:32:27 +0100 Message-ID: <4CDA74BB.4030304@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail.free-electrons.com ([88.190.12.23]:44547 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752885Ab0KJKnJ (ORCPT ); Wed, 10 Nov 2010 05:43:09 -0500 Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: spi-devel-general , linux-omap Cc: David Brownell , Grant Likely , Kevin Hilman We notice that when system wake up from OFF mode, then CS is in inactive state until the first SPI transfer. For our design it lead to some conflict on this I/O. Inactive state for CS when there is no transfer should be the correct behavior: this is the purpose of these patches. * Change from v1: Rebase on linus/master (after 2.6.37-rc1) Do some clean-up and fix indentation on both patches Add more explanations for patch 2 Gregory CLEMENT (2): spi: Add hook on suspend/resume for spi master spi: Force CS to be in inactive state after off-mode transition drivers/spi/omap2_mcspi.c | 10 ++++++++++ drivers/spi/spi.c | 14 ++++++++++++++ include/linux/spi/spi.h | 5 +++++ 3 files changed, 29 insertions(+), 0 deletions(-)