From patchwork Tue Apr 22 12:45:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 4031471 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F29099F1F4 for ; Tue, 22 Apr 2014 12:45:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D5B32025B for ; Tue, 22 Apr 2014 12:45:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F39D9201BA for ; Tue, 22 Apr 2014 12:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932544AbaDVMpm (ORCPT ); Tue, 22 Apr 2014 08:45:42 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:59238 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755594AbaDVMpl (ORCPT ); Tue, 22 Apr 2014 08:45:41 -0400 Received: from ayla.of.borg ([84.193.72.141]) by xavier.telenet-ops.be with bizsmtp id t0ld1n00M32ts5g010ldQK; Tue, 22 Apr 2014 14:45:40 +0200 Received: from geert by ayla.of.borg with local (Exim 4.76) (envelope-from ) id 1Wca4v-00059T-JI; Tue, 22 Apr 2014 14:45:37 +0200 From: Geert Uytterhoeven To: Brian Norris Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] mtd: m25p80: Revive dual read support Date: Tue, 22 Apr 2014 14:45:31 +0200 Message-Id: <1398170732-19773-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.7.9.5 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 03e296f613affcc2671c1e86d8c25ecad867204e ("mtd: m25p80: use the SPI nor framework") accidentally removed support for Dual SPI read transfers. Add it back. Signed-off-by: Geert Uytterhoeven Acked-by: Huang Shijie --- drivers/mtd/devices/m25p80.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 1557d8f672c1..ed7e0a1bed3c 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -221,6 +221,8 @@ static int m25p_probe(struct spi_device *spi) if (spi->mode & SPI_RX_QUAD) mode = SPI_NOR_QUAD; + else if (spi->mode & SPI_RX_DUAL) + mode = SPI_NOR_DUAL; ret = spi_nor_scan(nor, spi_get_device_id(spi), mode); if (ret) return ret;