Message ID | 1460913104-27388-8-git-send-email-zajec5@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qnygc3bvvz9sBm for <incoming@patchwork.ozlabs.org>; Mon, 18 Apr 2016 03:19:24 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=wORkUdJt; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1arqKb-00063Z-07; Sun, 17 Apr 2016 17:17:57 +0000 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1arqFX-0002Wq-PU for linux-mtd@lists.infradead.org; Sun, 17 Apr 2016 17:12:44 +0000 Received: by mail-lf0-x22e.google.com with SMTP id c126so193700266lfb.2 for <linux-mtd@lists.infradead.org>; Sun, 17 Apr 2016 10:12:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=53IK4IYJOkxjw+ZxJj9GkV3xbTih8dfJsNYF1YQ3GFk=; b=wORkUdJtxtcQ527jxPYie1PDyM9QrYulfBmohhhdZOb3gI/BLNN93dqUQjTJxBzz6L okc+yto1qD+mMV+jJrxSbX+PeuLEq81owOxVI97/voPK/xNQUKdG4YjaLE6gftp0DIht jqYvZGtq7mHL+DwvnQco1iXZY/vjPS4ymy9EM1Q3MMEh4rT0z7qROv+mSAs+LM8ZW6LF aFssqUHZNsGBs2557PlOWUrNnPkPE2gS4Cp8qA6OEm16EjZO/XiJrGwE3Iky4UnSMGQv j4TCrZASMFTiBEevP3+fpbAHIXMP3h2yQ0ET/YKkObT5T2bFln+2XkSUWtJ92iG+wBBm Oo1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=53IK4IYJOkxjw+ZxJj9GkV3xbTih8dfJsNYF1YQ3GFk=; b=mtlqmDy2dYt9scmM6N1tNu1jQSCiZKbVJiqmL5uIOvxt6nJlDFtY/44G1bBd3kiSqd FgGmr6D5cq8UmzZbVpPVqXC0JquWGIVzU2NliKkcuZmaV45uyEWtXlpo4ZHWpWbGwSAc +FKk2PXmF4yqn25A2odyZmzdQtJgZ5sgqlPi8zJlmubo+TO98UEcKEGfSIYbscemx3xg DmoXyT8Lpm7/u0lo+6WOheWnEwzsquAStCVwqBphOBL68vCAG/14PrsbTiqvYU5Xi0yd mdZyUESNprYzrPhiVss3Wni27YmY5Wfj++uaZYeX2XorHI3AguySdrzH8nczQmf3MViM ZBog== X-Gm-Message-State: AOPr4FWFoh+e4VBnNP6dqnwb2paJO3XDUE/UCbv8thq1WiwllzU5D9udkzdqRwuBQv8rIQ== X-Received: by 10.112.227.71 with SMTP id ry7mr12549638lbc.78.1460913141999; Sun, 17 Apr 2016 10:12:21 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id y77sm9514722lfd.15.2016.04.17.10.12.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Apr 2016 10:12:21 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> To: Boris Brezillon <boris.brezillon@free-electrons.com> Subject: [PATCH V2 07/11] mtd: nand: hisi504: set ECC algorithm based on DT info Date: Sun, 17 Apr 2016 19:11:40 +0200 Message-Id: <1460913104-27388-8-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1460913104-27388-1-git-send-email-zajec5@gmail.com> References: <1460750052-16285-1-git-send-email-zajec5@gmail.com> <1460913104-27388-1-git-send-email-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160417_101244_011125_99822024 X-CRM114-Status: GOOD ( 12.34 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22e listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Richard Weinberger <richard@nod.at>, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>, open list <linux-kernel@vger.kernel.org>, linux-mtd@lists.infradead.org, Brian Norris <computersforpeace@gmail.com>, David Woodhouse <dwmw2@infradead.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/drivers/mtd/nand/hisi504_nand.c b/drivers/mtd/nand/hisi504_nand.c index 7bf844c..f917297 100644 --- a/drivers/mtd/nand/hisi504_nand.c +++ b/drivers/mtd/nand/hisi504_nand.c @@ -768,6 +768,7 @@ static int hisi_nfc_probe(struct platform_device *pdev) chip->chip_delay = HINFC504_CHIP_DELAY; chip->ecc.mode = of_get_nand_ecc_mode(np); + chip->ecc.algo = of_get_nand_ecc_algo(np); buswidth = of_get_nand_bus_width(np); if (buswidth == 16)
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> --- This patch may be skipped if we apply [PATCH 00/12] mtd: get rid of of_mtd.{c,h} and of_get_nand_xx() patchset first. --- drivers/mtd/nand/hisi504_nand.c | 1 + 1 file changed, 1 insertion(+)