Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6438847yba; Wed, 1 May 2019 12:18:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNwbH7CaFt9zFQUEbaIt9hfNyWWbfvArv59tp4ThQj2RZSYt+oGS+q7AO8Zi5oz3K0Tou4 X-Received: by 2002:a63:58b:: with SMTP id 133mr18081811pgf.138.1556738280670; Wed, 01 May 2019 12:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556738280; cv=none; d=google.com; s=arc-20160816; b=bHjQuYcFDM0eSEeq6duk4fSf+UrLekVFJB9OT56LkONvYjGMFXoQv9A01f8hNDGenv O8Gv4EEyKJBfAG9ytalDsVnBnGMSpDwhyPP7BW1ADgGx6UAMrwPLN4Ph1ptjVNPgIYgI HS7FNroFrU43j9rcmWvOzHvDN9BeppeG5hqFZk/oBoS9elQQuP0VCEHmYxFRYvy7CToL AmW8+t7O3xkDFtCoC7NszdggD50oj2Uos4JDGw6iUPkwSjzYMqoYSaiq576XSmzg3+gT sgbo+s//qC3Zct0Rr31QTUhtjSHj5nXIQmic/+SrmymEM5EORHdGq1N2OwRMTkpMtgmj AEcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lN/T7u/Fwv/EZb1xnNEtQOimSnN0fKeQ0FgHDhL5cBA=; b=sr6+jtc+lGt9aXh3dzHwTkmOW5T2fo7Q/f0XyBhC004ASawR/87/lkfk1+GqoXcRv7 5Dbxk9ahRTe18nhqaTNohXRSi8OsaK4s91gtQe3gyH3wzPtVGfF1IuiFetvJYeGy1/7/ Dk80jBRQO5+XCDbcEAb6w3oX8Lm/VIPeWBFBbYzgdeqJF3KH4xNTUQlQbr0dHPL0UE+r UTseta+9B7hl12QLgJrEtkypGdK/THOIDkICeWh2tSXtWgJiNwJvmIYurwUehKU2/Shd xDEYvqBxsjBNaLaX9QuM6w7WRlN0oJph58ilvK83tGUgPoXgJ4eMXjHydh7DSqdaOnNf Cfhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=HvfwSa7B; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26si39767226pgv.445.2019.05.01.12.17.44; Wed, 01 May 2019 12:18:00 -0700 (PDT) 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; dkim=pass header.i=@broadcom.com header.s=google header.b=HvfwSa7B; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726139AbfEATPi (ORCPT + 99 others); Wed, 1 May 2019 15:15:38 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37470 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfEATPi (ORCPT ); Wed, 1 May 2019 15:15:38 -0400 Received: by mail-lj1-f194.google.com with SMTP id b12so27060lji.4 for ; Wed, 01 May 2019 12:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lN/T7u/Fwv/EZb1xnNEtQOimSnN0fKeQ0FgHDhL5cBA=; b=HvfwSa7BpGPqmfwAzZ8rcwbDFlwJ4hpWrUJPUJsE3eFt11Goqpt/1vRLjP3ywENTuY dHU3/RLqF3UuRqIzs9xTtBjXGT8I4/ZoBAqOCvP3p2tk3ZFfaLdIevoAP1l8HEodf3iR PHCme2zGJAitP3pVoN3U2mC3yMFKw/yYOtzWo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lN/T7u/Fwv/EZb1xnNEtQOimSnN0fKeQ0FgHDhL5cBA=; b=oX4uxWDS2lp3wFK5GTbf6oSbqxR3tAY4SmJStUvvYZnNomDn9YdLXdH2B5yDEuLKtX h5C57X/77yXELpD5JCy0hxmxy8eaa/DojMj2tRtNWDVjMtsE89Nt6/CxE4Lj/pzQyz6N emE0/tK0TFk/w/+wHpdeeD2+QPevixswpWz9AwjdiaQgdYNDlgGWUFMbU/YKxObNmRe8 KzCPyox8bWmTUb6ZkJrrRtjUYSfMd/rOKnoBlElGeeyGLFsks80EIYdeFbberS7GDGig JUSZ7nwTXleTiuLXYUrkDMMlAnM5uApIGMZdjVlh4fVf8KWKcwf+gRJdn6rzc1f8GslH vNlw== X-Gm-Message-State: APjAAAXf9REIeg8rKxvY1jLFl6U/Y1KQhFc+bcvn+9h8rTuULwRTjPri DWLCwJ02YeGu5XRZva4aE+RTxVdK3TEc/AiGUhaauw== X-Received: by 2002:a2e:8e8a:: with SMTP id z10mr8422799ljk.172.1556738136636; Wed, 01 May 2019 12:15:36 -0700 (PDT) MIME-Version: 1.0 References: <1556306615-37990-1-git-send-email-kdasu.kdev@gmail.com> <8e1b5dd6-3f8d-9288-7c43-5d7650269397@gmail.com> In-Reply-To: <8e1b5dd6-3f8d-9288-7c43-5d7650269397@gmail.com> From: Kamal Dasu Date: Wed, 1 May 2019 15:15:00 -0400 Message-ID: Subject: Re: [PATCH] mtd: rawnand: brcmnand: fix bch ecc layout for large page nand To: Florian Fainelli Cc: Kamal Dasu , MTD Maling List , Boris Brezillon , Richard Weinberger , open list , Marek Vasut , bcm-kernel-feedback-list@broadcom.com, Miquel Raynal , Brian Norris , David Woodhouse Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 1, 2019 at 2:35 PM Florian Fainelli wrote: > > On 4/26/19 12:22 PM, Kamal Dasu wrote: > > The oobregion->offset for large page nand parts was wrong, change > > fixes this error in calculation. > > Should this have a Fixes tag so this can be backported to stable trees > seemingly automatically? Thanks! > The brcmnand files got moved, however should have the fixes tag, will send V2 patch. > > > > Signed-off-by: Kamal Dasu > > --- > > drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c > > index 482c6f0..3eefea7 100644 > > --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c > > +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c > > @@ -939,7 +939,7 @@ static int brcmnand_bch_ooblayout_ecc(struct mtd_info *mtd, int section, > > if (section >= sectors) > > return -ERANGE; > > > > - oobregion->offset = (section * (sas + 1)) - chip->ecc.bytes; > > + oobregion->offset = ((section + 1) * sas) - chip->ecc.bytes; > > oobregion->length = chip->ecc.bytes; > > > > return 0; > > > > > -- > Florian