From patchwork Thu May 1 09:56:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 29489 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0D37203F3 for ; Thu, 1 May 2014 09:58:40 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id rd3sf14187225pab.7 for ; Thu, 01 May 2014 02:58:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=lql4fbnfxhnQABvOnmKDQMYDxlsTaZqAGz/VT7/EOek=; b=bgv+eN2Dof1fFtQ69UFzQf0L8qgk+7Hw1Q95NbFBhnQi+5+NKQXby89pC701x8baxe RzKRra2lz57xFezMNEMQ0A40YdEDptJ1WE9aPt7K0YxNsqyIqNbKZ+aTR4x/egYX7R+k X7KDX7id+hVircWNVVBkmbpLqKuovjjR5JnVaMEADEwtGzZaQPLVD9V1U411mu7sqhn2 DFmDtUowL8+8LzRODY4bic8gLx05ADQD8U2MCsFMzvk1Ulh/S3czauteXTm+FXNQNGRW eZtQF75JTLBevwv8kxB3PgI2qoki1FlKLxs3dNyCHGJUJbOyO+hePsogEXglTBw4ECfj CuOQ== X-Gm-Message-State: ALoCoQn9Y9yYsmTgidnUuUWIFmMQIsx6/mexH2yDSerjQNUnFYfJCsB5oSHd3bMlr7c+d5YSNah+ X-Received: by 10.67.30.197 with SMTP id kg5mr5194971pad.36.1398938319926; Thu, 01 May 2014 02:58:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.201 with SMTP id f67ls978167qgd.91.gmail; Thu, 01 May 2014 02:58:39 -0700 (PDT) X-Received: by 10.220.69.72 with SMTP id y8mr8131295vci.21.1398938319778; Thu, 01 May 2014 02:58:39 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id k20si5964545vcm.97.2014.05.01.02.58.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 02:58:39 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id pa12so2683091veb.32 for ; Thu, 01 May 2014 02:58:39 -0700 (PDT) X-Received: by 10.52.255.99 with SMTP id ap3mr6745578vdd.19.1398938319717; Thu, 01 May 2014 02:58:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp12992vcb; Thu, 1 May 2014 02:58:39 -0700 (PDT) X-Received: by 10.194.82.9 with SMTP id e9mr8077636wjy.45.1398938318604; Thu, 01 May 2014 02:58:38 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id em8si578984wib.39.2014.05.01.02.58.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 02:58:38 -0700 (PDT) Received-SPF: none (google.com: lee.jones@linaro.org does not designate permitted sender hosts) client-ip=209.85.212.172; Received: by mail-wi0-f172.google.com with SMTP id hi2so406520wib.17 for ; Thu, 01 May 2014 02:58:38 -0700 (PDT) X-Received: by 10.180.212.107 with SMTP id nj11mr1555323wic.40.1398938318114; Thu, 01 May 2014 02:58:38 -0700 (PDT) Received: from lee--X1.home (host109-148-238-223.range109-148.btcentralplus.com. [109.148.238.223]) by mx.google.com with ESMTPSA id bj5sm2696494wib.3.2014.05.01.02.58.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 02:58:37 -0700 (PDT) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: computersforpeace@gmail.com, linux-mtd@lists.infradead.org, kernel@stlinux.com, Lee Jones Subject: [PATCH 46/47] mtd: nand: stm_nand_bch: finalise setup by calling and_scan_tail() Date: Thu, 1 May 2014 10:56:53 +0100 Message-Id: <1398938214-17847-47-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398938214-17847-1-git-send-email-lee.jones@linaro.org> References: <1398938214-17847-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Lee Jones --- drivers/mtd/nand/stm_nand_bch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c index bec7e23..e7a4bed 100644 --- a/drivers/mtd/nand/stm_nand_bch.c +++ b/drivers/mtd/nand/stm_nand_bch.c @@ -2315,6 +2315,10 @@ static int stm_nand_bch_probe(struct platform_device *pdev) if (err) return err; + err = nand_scan_tail(mtd); + if (err) + return err; + nandi_dump_bad_blocks(nandi); /* Add partitions */