From patchwork Thu Aug 16 10:40:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Soldatov X-Patchwork-Id: 958234 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=yadro.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="B/m/w4dm"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.b="H+fGURbN"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41rjnW6X8Rz9s9h for ; Thu, 16 Aug 2018 20:51:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t2cEq3SOuHhgbvGFT9iRROuEOapeX9ITv00Vs1cqwHY=; b=B/m/w4dmCWK7Hx lE585jzElc4aFag8BaCiwkh9o0CY1BedSe4H4Y8o9Ob1Q6qTQ3wJvOTnoVKdwmVOZUPayp0OyINfA o9/3zX3ro+KijktH5IlGq9B21BTAx775RdrrTQKhSKIkzqRC9ntoIRzaHiIfJgXzERDdMdWI+42lx bOXs9AZCFUJ+tyq4PAAALnLnOGi2Nt6ndzaV8kxHNYUkLPurJL5jSUumbQklaSqRqGT4zkkjfMaoa ma9TN8cIicluZDSNvKceb+5gzE3cQN0AUX9FA47SeMUVsPvP200IGqQniuJk8RzXam4B1qSlDExs4 tkcl4Qw8E8deuGHMS13Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fqFsR-0007f4-2S; Thu, 16 Aug 2018 10:51:39 +0000 Received: from mta-01.yadro.com ([89.207.88.251]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fqFsN-0007dk-6x for linux-mtd@lists.infradead.org; Thu, 16 Aug 2018 10:51:36 +0000 Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id 90C75411F8; Thu, 16 Aug 2018 10:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-type:content-type:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received; s=mta-01; t=1534416097; x= 1536230498; bh=Ca1aGlm5fmu/fMImsgEBNCfjMJBKa7O5vj96IF8UDYg=; b=H +fGURbN2f/ztvAZuIX7Et+LOWMeJ2QbolYucLGkVLdjsvhE1hmWoipZmRrlD0VQH SOwaKjFUuZpDtHSedzvSRQ10jRQ/4djTDq2h3tyvtfBFJs65HoWHYtoPL3P/m7+6 6IHqXtRdR9cvRb2QlL5LRZ2jtTfMZq0N/EM5TeFttY= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WYwwIWZkS0Q4; Thu, 16 Aug 2018 13:41:37 +0300 (MSK) Received: from T-EXCH-02.corp.yadro.com (t-exch-02.corp.yadro.com [172.17.10.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id C6E9E418F9; Thu, 16 Aug 2018 13:41:37 +0300 (MSK) Received: from NB-207-Ubuntu.yadro.com (172.17.4.249) by T-EXCH-02.corp.yadro.com (172.17.10.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Thu, 16 Aug 2018 13:41:36 +0300 From: Alexander Soldatov To: , OpenBMC Maillist Subject: [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400 Date: Thu, 16 Aug 2018 13:40:55 +0300 Message-ID: <1534416055-23939-2-git-send-email-a.soldatov@yadro.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534416055-23939-1-git-send-email-a.soldatov@yadro.com> References: <1534416055-23939-1-git-send-email-a.soldatov@yadro.com> MIME-Version: 1.0 X-Originating-IP: [172.17.4.249] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-02.corp.yadro.com (172.17.10.102) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180816_035135_432102_B2059449 X-CRM114-Status: GOOD ( 11.37 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [89.207.88.251 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Soldatov , stable@vger.kernel.org Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org According to AST2400 datasheet v1.4 the SPI Flash Read Timing Setting register is at offset 0x14. There is no register at offset 0x94 (unlike FMC controller and AST2500). Cc: stable@vger.kernel.org Fixes: aad58eba7209 ("mtd: spi-nor: aspeed: optimize read mode") Signed-off-by: Alexander Soldatov --- drivers/mtd/spi-nor/aspeed-smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/aspeed-smc.c b/drivers/mtd/spi-nor/aspeed-smc.c index c9cd20f199d9..9ddf24b042f1 100644 --- a/drivers/mtd/spi-nor/aspeed-smc.c +++ b/drivers/mtd/spi-nor/aspeed-smc.c @@ -71,7 +71,7 @@ static const struct aspeed_smc_info spi_2400_info = { .hastype = false, .we0 = 0, .ctl0 = 0x04, - .timing = 0x94, + .timing = 0x14, .set_4b = aspeed_smc_chip_set_4b_spi_2400, .optimize_read = aspeed_smc_optimize_read, };