Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1150456imu; Mon, 5 Nov 2018 14:57:45 -0800 (PST) X-Google-Smtp-Source: AJdET5d9ww6I43WlBsdp5Ot7EHvrNu6EhR3/p8xcO1oB4GCViizrA6CX+VDOrGktLbCi3A7Xu3Qt X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10-v6mr24072753plb.214.1541458665864; Mon, 05 Nov 2018 14:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541458665; cv=none; d=google.com; s=arc-20160816; b=vr355ZKHJPZZJVoyipJsyu8W/CjBk1anPpmYS9TD1+RF97uwGgtoR75dE62VQO5oRY on/PEOVLWWqyJoTl/6nsTelGObOGbUyWjkcydGrfB0+OQ0T8CT7pDW7Yz8pBJtkaXjPZ wCXLtWPQAKnxVQ4deqMWsq+DQTlaBFbmQgBRhyGC/R1MOiCXtkACrUmsNPr0v8KFEiFK cefKSB5HFpPVmR43s35RhFFxu43kMj3MW5QOKhhKYKMoOLHzQfpkQUr7C4ifZTNLPrxq jjbNyg+D7yScvEgnpGog5Vl0iwyCexswmVGv4txY1h/efg1QMJ0TmGIN5Jkl/LWkoONu H88g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CM/JEgjSFD4zPqiNAheyI+aBNd/iRWNpcjYuooTjgAI=; b=ahIIASAVKJNKH2Xn0nSIAEeUeYWW2Wp+R4W910gk8im3LpITOABMQHtBIHfxyPYoMs D0c4jttnkpHuXrbnvuWYjLxZ2jILmluOdzkD0bw4kzbyQ7pMtNrTn2oaA+9UIj03LmJ6 txoJT0RABfv3f5oI7f8c5+5R7lUgTjNQC3F1kKoBug30v3e3X42kkDpd6dPZm25EcLAw dQ56E370J/fLtzN9Hbv2wAI1C3g6J6r3sSUwayPBjrCg8Ba/H7JKOaiORB8fnjT7H/gt mkRvyCoai2T7yj6NburlORHmLa0nBaWJJcYvBTO9fg4hey3QRoQQntyby+MxPSIVztoz 79Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p32si357719pgm.258.2018.11.05.14.57.30; Mon, 05 Nov 2018 14:57:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388268AbeKFIRv (ORCPT + 99 others); Tue, 6 Nov 2018 03:17:51 -0500 Received: from mail.bootlin.com ([62.4.15.54]:58974 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388122AbeKFIRu (ORCPT ); Tue, 6 Nov 2018 03:17:50 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id D3C6520798; Mon, 5 Nov 2018 23:55:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 8D1AC206D8; Mon, 5 Nov 2018 23:55:47 +0100 (CET) Date: Mon, 5 Nov 2018 23:55:47 +0100 From: Boris Brezillon To: Arnd Bergmann Cc: stable@vger.kernel.org, Robert Jarzmik , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mtd: docg3: don't set conflicting BCH_CONST_PARAMS option Message-ID: <20181105235547.062dbf9f@bbrezillon> In-Reply-To: <20181011110639.2649053-1-arnd@arndb.de> References: <20181011110639.2649053-1-arnd@arndb.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Oct 2018 13:06:16 +0200 Arnd Bergmann wrote: > I noticed during the creation of another bugfix that the BCH_CONST_PARAMS > option that is set by DOCG3 breaks setting variable parameters for any > other users of the BCH library code. > > The only other user we have today is the MTD_NAND software BCH > implementation (most flash controllers use hardware BCH these days > and are not affected). I considered removing BCH_CONST_PARAMS entirely > because of the inherent conflict, but according to the description in > lib/bch.c there is a significant performance benefit in keeping it. > > To avoid the immediate problem of the conflict between MTD_NAND_BCH > and DOCG3, this only sets the constant parameters if MTD_NAND_BCH > is disabled, which should fix the problem for all cases that > are affected. This should also work for all stable kernels. > > Note that there is only one machine that actually seems to use the > DOCG3 driver (arch/arm/mach-pxa/mioa701.c), so most users should have > the driver disabled, but it almost certainly shows up if we wanted > to test random kernels on machines that use software BCH in MTD. > > Fixes: d13d19ece39f ("mtd: docg3: add ECC correction code") > Cc: stable@vger.kernel.org > Cc: Robert Jarzmik > Signed-off-by: Arnd Bergmann Applied. Thanks, Boris > --- > drivers/mtd/devices/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig > index e514d57a0419..aa983422aa97 100644 > --- a/drivers/mtd/devices/Kconfig > +++ b/drivers/mtd/devices/Kconfig > @@ -207,7 +207,7 @@ comment "Disk-On-Chip Device Drivers" > config MTD_DOCG3 > tristate "M-Systems Disk-On-Chip G3" > select BCH > - select BCH_CONST_PARAMS > + select BCH_CONST_PARAMS if !MTD_NAND_BCH > select BITREVERSE > help > This provides an MTD device driver for the M-Systems DiskOnChip