From patchwork Thu Mar 20 20:08:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 26767 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9D88320143 for ; Thu, 20 Mar 2014 20:10:36 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf4739013ieb.5 for ; Thu, 20 Mar 2014 13:10:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=sP/TDNhjiEE7GxhmKWsw1CLHv8kffnDQKB9UKDurf1Y=; b=Z6JX58zm3f0eME7vQy6sr2WZpEof+gVTNTXPuDUHf71+VwwThmcVve1QoYrFfNu2Wt CbRZhalXczjyItYcxhRDJ2vBc7+pMFhSiMFB2Drcaoo7ASQjAtbxREJffV2sLGfHlD2e 4L8J7y/Y+Xn4ridzZshJ1HRuqWmwtCyNh818Y7LcbuuRt5bjy2Z6Hl3wENzN0zwkGbDE bNJ9a9YCATN8rpNFn8kz6zytU+Xzh7vDyKtM2XHam+KDUmVDpLT0yc7Otit0OEKcE3o/ Uul7OjGwTv31Ss0BIAzgyckCMXKQxUAeSU8fGDc4NCgoC11Ll3i8jXfQX7IEUO6F45bV 1SsA== X-Gm-Message-State: ALoCoQn/aiUXKLvxR41T7/cAZXjHwLLwgVm1EA1K1n0M/Jo0QcnvM/O4Y/KAtVAfjiRRHh4BkQa/ X-Received: by 10.42.123.66 with SMTP id q2mr14907964icr.16.1395346235905; Thu, 20 Mar 2014 13:10:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.80 with SMTP id w74ls376052qgd.95.gmail; Thu, 20 Mar 2014 13:10:35 -0700 (PDT) X-Received: by 10.52.26.17 with SMTP id h17mr1354991vdg.65.1395346235773; Thu, 20 Mar 2014 13:10:35 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id bf4si656596vec.208.2014.03.20.13.10.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 13:10:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so1555768veb.11 for ; Thu, 20 Mar 2014 13:10:35 -0700 (PDT) X-Received: by 10.52.241.106 with SMTP id wh10mr29761016vdc.16.1395346235630; Thu, 20 Mar 2014 13:10:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp416152vck; Thu, 20 Mar 2014 13:10:35 -0700 (PDT) X-Received: by 10.66.27.202 with SMTP id v10mr32233287pag.127.1395346234751; Thu, 20 Mar 2014 13:10:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uh7si2111479pbc.512.2014.03.20.13.10.33; Thu, 20 Mar 2014 13:10:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759278AbaCTUKc (ORCPT + 9 others); Thu, 20 Mar 2014 16:10:32 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:57339 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758075AbaCTUKb (ORCPT ); Thu, 20 Mar 2014 16:10:31 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2KK9HJO022166; Thu, 20 Mar 2014 15:09:17 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2KK9G28010768; Thu, 20 Mar 2014 15:09:16 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Thu, 20 Mar 2014 15:09:16 -0500 Received: from khorivan.itg.ti.com (incasgf5a_e1_2.itg.ti.com [10.167.216.36]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2KK98QV000868; Thu, 20 Mar 2014 15:09:09 -0500 From: Ivan Khoronzhuk To: , , , CC: , , , , , , , , , , , , Warner Losh , Ivan Khoronzhuk Subject: [PATCH v2] mtd: davinci-nand: disable subpage write for keystone-nand Date: Thu, 20 Mar 2014 22:08:32 +0200 Message-ID: <1395346112-13350-1-git-send-email-ivan.khoronzhuk@ti.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Murali Karicheri Sub page write doesn't work because of hw issue in controller found on Keystone SOCs. AEMIF controller is also used on DaVinci SOCs which don't seems to have any issue. So add "ti,keysone-nand" compatible to nand driver in order to set NAND_NO_SUBPAGE_WRITE option. Cc: Brian Norris Cc: Warner Losh Cc: Santosh Shilimkar Signed-off-by: Murali Karicheri Signed-off-by: Ivan Khoronzhuk Acked-by: Santosh Shilimkar --- This patch is a result of discussion on patch v1: https://lkml.org/lkml/2014/3/20/461 drivers/mtd/nand/davinci_nand.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 4615d79..b922c8e 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -523,6 +523,7 @@ static struct nand_ecclayout hwecc4_2048 = { #if defined(CONFIG_OF) static const struct of_device_id davinci_nand_of_match[] = { {.compatible = "ti,davinci-nand", }, + {.compatible = "ti,keystone-nand", }, {}, }; MODULE_DEVICE_TABLE(of, davinci_nand_of_match); @@ -581,6 +582,11 @@ static struct davinci_nand_pdata of_property_read_bool(pdev->dev.of_node, "ti,davinci-nand-use-bbt")) pdata->bbt_options = NAND_BBT_USE_FLASH; + + if (of_device_is_compatible(pdev->dev.of_node, + "ti,keystone-nand")) { + pdata->options |= NAND_NO_SUBPAGE_WRITE; + } } return dev_get_platdata(&pdev->dev);