Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4269551pxv; Tue, 27 Jul 2021 03:12:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9e1wD6nfhLr++XhAHoH/klg2Z/k5nTA1hYXkX/MQuqnmmaO/jetSLXdi2gTWQwjCMKsmH X-Received: by 2002:a05:6638:3452:: with SMTP id q18mr20829898jav.111.1627380721625; Tue, 27 Jul 2021 03:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627380721; cv=none; d=google.com; s=arc-20160816; b=gojBd+CEzotwYenRB4pZ8jSBeATVh28553oNi7tICxTw3USfZfr5fYi9GQmB4TfCql TLpmo+6eedDgJorkHXLt4204k9Tj/VqJxE5EUdlw/NoTdpZlMVNTYqgwqADznJCGMa6E p9RS8S/tMOFpZQE5pJqBWHJsEZ2p6gzDsiFy3KyQHRsDXoABl2+T3z3pAcb0eD3SQVZ8 /TKG6L3KVXj52VTqb5UJgsrsGznLbq1dl3t9T92i1pYQ2Uw41DkqP8bijx99n9IDl40Z NnfQ7+83zxWRHw2dr1K4qljFq4wpn/30Rte2nNBDSjLw8Xgd7Z4aILhGRdvBzbmBVbT7 gl+w== 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 :message-id:date:subject:cc:to:from; bh=epHfJhde5O1xzY6wND3hJ1ZonNofOR2eMtx2rQ+eK3E=; b=DQbtlEfv1fzDfaCNI4I+7+JNsuAzEh9aWpycqV8ethPwvfn2Rg698kCp1VAskLqymB wlfaqxsZyF8QVtCqakDoR2hD6Ui9gi5mgNZXsXoqjvC0rC/1AmU54so00+DQKPXO0Amk AEnjK/Caw2K8i/7XCCAbMH4JuUICU22E4zAoRZQ4ub+1sVUwX+I4jSWLkHlBn6IJ59gn MihmThU9SBIScr4wD3W4FgBskqrxZQOEn5lhtRXaOVJHmXei3IajIaawg9UNQin3a8/B q2BoTj+fYC8jH1JGCDcMuZefAFCJ811N/NDDuWoQ7S2Z56+s4uZtdWnGvR04iME3/9X7 Bp9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si3007410ilu.34.2021.07.27.03.11.27; Tue, 27 Jul 2021 03:12:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236158AbhG0KKl (ORCPT + 99 others); Tue, 27 Jul 2021 06:10:41 -0400 Received: from muru.com ([72.249.23.125]:55756 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236046AbhG0KKk (ORCPT ); Tue, 27 Jul 2021 06:10:40 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 9B01C80F0; Tue, 27 Jul 2021 10:10:57 +0000 (UTC) From: Tony Lindgren To: Krzysztof Kozlowski Cc: Roger Quadros , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Roger Quadros Subject: [PATCH 1/2] memory: omap-gpmc: Clear GPMC_CS_CONFIG7 register on restore if unused Date: Tue, 27 Jul 2021 13:10:33 +0300 Message-Id: <20210727101034.32148-1-tony@atomide.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We want to clear any unused GPMC_CS_CONFIG7 register on restore to ensure unused chip selects are not enabled. Cc: Roger Quadros Signed-off-by: Tony Lindgren --- drivers/memory/omap-gpmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c --- a/drivers/memory/omap-gpmc.c +++ b/drivers/memory/omap-gpmc.c @@ -2595,6 +2595,8 @@ void omap3_gpmc_restore_context(void) gpmc_context.cs_context[i].config6); gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, gpmc_context.cs_context[i].config7); + } else { + gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, 0); } } } -- 2.32.0