Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753451AbaGJMj6 (ORCPT ); Thu, 10 Jul 2014 08:39:58 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:34856 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbaGJMj4 (ORCPT ); Thu, 10 Jul 2014 08:39:56 -0400 MIME-Version: 1.0 In-Reply-To: <20140710120120.GD30458@sirena.org.uk> References: <1404982207-4707-1-git-send-email-harinik@xilinx.com> <1404982207-4707-2-git-send-email-harinik@xilinx.com> <20140710120120.GD30458@sirena.org.uk> Date: Thu, 10 Jul 2014 18:09:55 +0530 Message-ID: Subject: Re: [RFC PATCH 1/2] spi: Add support for Zynq QSPI controller From: Harini Katakam To: Mark Brown Cc: Geert Uytterhoeven , Grant Likely , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-spi , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-doc@vger.kernel.org" , David Woodhouse , Brian Norris , =?UTF-8?B?TWFyZWsgVmHFoXV0?= , Artem Bityutskiy , Geert Uytterhoeven , Sascha Hauer , Jingoo Han , Sourav Poddar , "michals@xilinx.com" , Punnaiah Choudary Kalluri Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On Thu, Jul 10, 2014 at 5:31 PM, Mark Brown wrote: > On Thu, Jul 10, 2014 at 04:03:19PM +0530, Harini Katakam wrote: > >> OK. Correct me if I'm wrong but announcing this support in master->flags is >> just to say the controller supports it - Like Punnaiah mentioned in the other > > No, it's broken to set this if there is no ability to use it. > >> mail, nothing specific needs to be done from the controller driver to enable >> dual/quad support. This is at the SOC/IP level. > > How does the client driver select the width to use for a transfer? This controller is meant to be used only with flash devices. The flash devices' supported width will be reflected in a table in MTD layer. When selecting, priority is given to quad over dual and single in the MTD and it will send commands using the supported tx/rx bus width accordingly. About the supported bus width on board, tx-bus-width and rx-bus-width properties in dts will have the info; which I believe spi core uses. Regards, Harini -- 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/