Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031183AbbD1Wt5 (ORCPT ); Tue, 28 Apr 2015 18:49:57 -0400 Received: from mail-ie0-f181.google.com ([209.85.223.181]:33228 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031015AbbD1Wty (ORCPT ); Tue, 28 Apr 2015 18:49:54 -0400 Date: Tue, 28 Apr 2015 17:49:46 -0500 From: Michael Welling To: Martin Sperl Cc: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] spi: omap2-mcspi: Add support for GPIO chipselects Message-ID: <20150428224946.GA19294@deathray> References: <1430106270-17142-1-git-send-email-mwelling@ieee.org> <20150427195550.GE22845@sirena.org.uk> <20150428012150.GA12713@deathray> <55B19D93-B930-4363-9D44-0E97B4B836BF@sperl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55B19D93-B930-4363-9D44-0E97B4B836BF@sperl.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1023 Lines: 25 On Tue, Apr 28, 2015 at 07:32:21AM +0200, Martin Sperl wrote: > > > On 28.04.2015, at 03:21, Michael Welling wrote: > > If I were to attempt to convert the driver to use the core chipselect support, > > how would I go about doing it? > > > > Is there another driver that I can use for reference? > You may look into this patch: e34ff011c70e5f4ef219141711142d5111ae6ebb > for the spi-bcm2835 driver, which did the conversion to the new transfer_one > interface (and framework based GPIO chipselects). I will take a look. Thanks. > > For most parts all you have to do is take the contents of the loop over all the > spi_transfers inside your master->transfer_one_message method and create a new > method with it and assign it to master->transfer_one. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/