Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2578859pxb; Tue, 21 Sep 2021 03:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcM+bpnxy8g0KSOUrdEKFqtVlAUMbPPqZDuWW1Hddi5WdOhqAFgz3f5nRoLM+8HtM9yrw1 X-Received: by 2002:a17:906:1bb1:: with SMTP id r17mr33751563ejg.533.1632218705931; Tue, 21 Sep 2021 03:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632218705; cv=none; d=google.com; s=arc-20160816; b=R7RAJQ/wiKyMDuW8X8pfk6U6TbfMxWLsIWHJdG7TvjZshwTy4LukOlq8xUO0aHx5qH qaFGy85iXPaPtv/L12aMIR+TMA289UNvTfcV7N7hr1+/Tawt1zCnKjN/+R87JYhREAhd gT6rTd3ahxpfridOwnB2J0c0NNmvB+mdrYvCePtoBkoqoUvGmM/4k0s9WQSz3joiinYi sc+ZN7iPGHdD7qw7Vv32MDcQsxqd6LZSRhJ7HhB/J0Ds6V3BFu2hAPeep/gDwucPGW+W 6dnXHaakudy+0u+kKXNss3asW/A5cchgXAc+WM2TC7A0a3e8oHBAeTvCPebHRQJGl0Nj OXmA== 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; bh=v6wvP8UXeAA3DzkFqay8b2GH9drT7JLheKJpUO22h8k=; b=BtarDA4UaLA5DXmR5XTLnNS8JMOGmL2VCmNpKQ/EFofbQjtaXyTApK3/v4FwDWubIp dYkh/iukm/FJe/qhoRvoEj8inPJG/6u3URt5AiigZ0wdqTWkyfyodbbxhH/T+WmM6zTu LEi8mz0F2cSoKvUkHA8Jx42X+QsPwkzuLPDpTziWXAYaJXZxZLyNGkifVg1FSSKJXg2v 2ylUplnHYjzIwUUyFyHaH8VZayoEEQ9bFitljyb3PQ009Ko0SfdN1RAxPhMq5Gtvz4R8 E05TJUcxrzQRsryTmKnfS5rDqM2wAbjQ5HgKxyaWxeLf7XnJPtqYhqFIEg07p9jKR11W 4JUw== 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 w9si18974475edt.507.2021.09.21.03.04.41; Tue, 21 Sep 2021 03:05:05 -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 S231688AbhIUKDR (ORCPT + 99 others); Tue, 21 Sep 2021 06:03:17 -0400 Received: from muru.com ([72.249.23.125]:35442 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231609AbhIUKDE (ORCPT ); Tue, 21 Sep 2021 06:03:04 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 91DEA8171; Tue, 21 Sep 2021 10:02:02 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Kevin Hilman , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/9] bus: ti-sysc: Use context lost quirks for gpmc Date: Tue, 21 Sep 2021 13:01:11 +0300 Message-Id: <20210921100115.59865-6-tony@atomide.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210921100115.59865-1-tony@atomide.com> References: <20210921100115.59865-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At least on am335x, the gpmc module needs a re-init and reset if context has been lost on resume. We can enable this for all gpmc revisions as we check if the context was lost before restoring it. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1574,6 +1574,7 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { SYSC_QUIRK("dwc3", 0x488c0000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff, SYSC_QUIRK_CLKDM_NOAUTO), SYSC_QUIRK("gpmc", 0, 0, 0x10, 0x14, 0x00000060, 0xffffffff, + SYSC_QUIRK_REINIT_ON_CTX_LOST | SYSC_QUIRK_RESET_ON_CTX_LOST | SYSC_QUIRK_GPMC_DEBUG), SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50030200, 0xffffffff, SYSC_QUIRK_OPT_CLKS_NEEDED), -- 2.33.0