Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp520578iog; Wed, 29 Jun 2022 05:10:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tlSc0xHCNZc9SgOOrrxTgyL9/H1yAGNz32DdxwcOZeqqfTkGpYMERzrGx6LDBP1lv22ODA X-Received: by 2002:a05:6402:27d1:b0:436:dd8:a6d5 with SMTP id c17-20020a05640227d100b004360dd8a6d5mr3892672ede.342.1656504650004; Wed, 29 Jun 2022 05:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656504649; cv=none; d=google.com; s=arc-20160816; b=rFd5SgR/8kE6we6cszbqNzVsmnLlSlwKjoCzYKjIgAkB6pUZYXXs/WYBb+9CYvEhAA zyIBSvFggZgjvKT3E7wCJtidNUpNMjUMRCutd9lDa++6zS9wYw0ChTxucOrTHXOQv3+g d5Xi/Y0BhgwJ2z4L8EhZ494uFpqEX+oNqjvqQhZxIbbhHX77MCps01HYqpaDQYwQkBPq KbAMhkicJl9ifzSztV3iavexMygD0I0tALKpHHCwobaVoSfJ0Y0qkoyGpxXmpyXOEYFk PYvebeZHPqkXGbgsQRRs20KdFK+yQtZYRITa6tHg6CsTyWJnozX6LCXQYQiLITfJpWRr SMeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MzDaS83uRvN7N2712p5p6kNZK0guhzhsJz4z5vTBUnI=; b=bWUm0NpbVoEIcUzT+4CZuQ6B00sF/GdngdNw9HGD1IXoQ0xfnDaOVxrt8hJ3HB2PJi H1IeiUokdrcDnw6uK/tqXqG4+7o3d35KVMP52MhxqXmBxtVxp/XuGzGYPvo2MUDlqAab wRO8C/DxZkVAsFLsUd3gOGY7gZczxIaxkaztOWgNznUWtOcCaaHJW0BOKgMfUpcBgQBr FW3FnU4IAt34lp6p5kWw0WN9PabONTsXOxITsbCRDPQ+XKz7SXpeJxgB+WRNbSLqJDfT otWFb2HQJsngNovsuIZNjMjHytPRNUF16XQz/x3H+2rJHvi7DDJPVKZ8/XaCIe5gk3r9 R9Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kqOt8I4U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a170906341600b007262d20ea72si17882182ejb.179.2022.06.29.05.10.16; Wed, 29 Jun 2022 05:10:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kqOt8I4U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233156AbiF2LjF (ORCPT + 99 others); Wed, 29 Jun 2022 07:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233169AbiF2LjB (ORCPT ); Wed, 29 Jun 2022 07:39:01 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9CAB3EAA2 for ; Wed, 29 Jun 2022 04:38:58 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B97C91C0007; Wed, 29 Jun 2022 11:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1656502737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MzDaS83uRvN7N2712p5p6kNZK0guhzhsJz4z5vTBUnI=; b=kqOt8I4U1SxqkuWTomp/zztwci316/QgGWxEBeTRPSTMiPX/wBWekh0krNzGxOuMvORZ4L P3l9LN654tz9Q9IH2KGiv4+JNA2u+i2b49F+0XpI5zYqoP0JEvyYfexbXxZ5YPImlA7Wvk q7CKzA9b9uLl2CVmrRzClewX1XJ9ONN7KqHeafhVXaoAGjHql8525xn4ma+K2yRT7YqOIN dESv5cMTaOUSv+Q9GO8Pkm+VZxZoo0YvmQRs441V2jEWy8+QxDBuBG/PMKeD/LRWeKfE2A JN0qwMm1ummEPsj0vdDWd3dAiJYtUJqcsSPDo+Irj/Gd9B6quMVf1Mzkjknk/w== From: Miquel Raynal To: Amit Kumar Mahapatra , miquel.raynal@bootlin.com, nagasure@xilinx.com, vigneshr@ti.com Cc: boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, git@amd.com, richard@nod.at, amit.kumar-mahapatra@amd.com, Olga Kitaina , stable@vger.kernel.org Subject: Re: [PATCH v3 2/2] mtd: rawnand: arasan: Fix clock rate in NV-DDR Date: Wed, 29 Jun 2022 13:38:55 +0200 Message-Id: <20220629113855.283760-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628154824.12222-3-amit.kumar-mahapatra@xilinx.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'e16eceea863b417fd328588b1be1a79de0bc937f' Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-06-28 at 15:48:24 UTC, Amit Kumar Mahapatra wrote: > From: Olga Kitaina > > According to the Arasan NAND controller spec, the flash clock rate for SDR > must be <= 100 MHz, while for NV-DDR it must be the same as the rate of the > CLK line for the mode. The driver previously always set 100 MHz for NV-DDR, > which would result in incorrect behavior for NV-DDR modes 0-4. > > The appropriate clock rate can be calculated from the NV-DDR timing > parameters as 1/tCK, or for rates measured in picoseconds, > 10^12 / nand_nvddr_timings->tCK_min. > > Fixes: 197b88fecc50 ("mtd: rawnand: arasan: Add new Arasan NAND controller") > CC: stable@vger.kernel.org # 5.8+ > Signed-off-by: Olga Kitaina > Signed-off-by: Amit Kumar Mahapatra Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel