From: "Ernst Schwab" Subject: Re: [PATCH 1/5] spi: spi_lock_bus and spi_unlock_bus Date: Wed, 17 Feb 2010 01:21:24 +0100 Message-ID: References: <20100216204450.e043eed8.eschwab@online.de> <20100216205720.ebe949a1.eschwab@online.de> <8bd0f97a1002161607m3c748ccegaffb83c42667287a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: David Brownell , spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, yi.li-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org To: "Mike Frysinger" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org Mike Frysinger wrote: > this is what i proposed last time, but we havent gotten around to > implementing it: > > - add a new spi_master flag to spi.h like SPI_MASTER_HALF_DUPLEX -- > SPI_MASTER_LOCK_BUS > - have the mmc_spi code check that bit in the master before falling > back to its hack This would limit the bus locking capability of the _API_ to a single driver (the mmc_spi), or did I miss something? Regards Ernst ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev