From patchwork Wed Nov 20 17:39:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 3214081 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 11D22C045B for ; Wed, 20 Nov 2013 17:39:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4771320767 for ; Wed, 20 Nov 2013 17:39:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43E5920760 for ; Wed, 20 Nov 2013 17:39:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754412Ab3KTRjh (ORCPT ); Wed, 20 Nov 2013 12:39:37 -0500 Received: from sauhun.de ([89.238.76.85]:42790 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753915Ab3KTRjh (ORCPT ); Wed, 20 Nov 2013 12:39:37 -0500 Received: from p4fe25e71.dip0.t-ipconnect.de ([79.226.94.113]:38015 helo=localhost) by pokefinder.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1VjBkS-0007o6-2I; Wed, 20 Nov 2013 18:39:32 +0100 From: Wolfram Sang To: linux-mtd@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Tony Lindgren , Wolfram Sang Subject: [RFC] mtd: gpmc: add BCH support for plain AM335x Date: Wed, 20 Nov 2013 18:39:12 +0100 Message-Id: <1384969152-10411-1-git-send-email-wsa@the-dreams.de> X-Mailer: git-send-email 1.8.4.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.4 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 When building a kernel without OMAP3 support but only AM335x, we can't activate the needed MTD_NAND_OMAP_BCH symbol. Signed-off-by: Wolfram Sang --- Actually, I wonder if this is fix will scale. Maybe someone with more insight about TI SoCs could find a better expression of supported SoCs. This is the only one I could test . drivers/mtd/nand/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 93ae6a6..f9455e4 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -95,7 +95,7 @@ config MTD_NAND_OMAP2 platforms. config MTD_NAND_OMAP_BCH - depends on MTD_NAND && MTD_NAND_OMAP2 && ARCH_OMAP3 + depends on MTD_NAND && MTD_NAND_OMAP2 && (ARCH_OMAP3 || SOC_AM33XX) tristate "Support hardware based BCH error correction" default n select BCH