Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp98829pxb; Thu, 30 Sep 2021 01:55:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysWiWKObkWheSJSG28fw8TRFhELESrklBvm/iuVvD0RBarTBiLFKCtcNxIfqPf2Vok7gUt X-Received: by 2002:a17:906:3ce2:: with SMTP id d2mr5435604ejh.410.1632992111006; Thu, 30 Sep 2021 01:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632992110; cv=none; d=google.com; s=arc-20160816; b=VQOPBu8tXRnJAZLysVrWUhGH8XB1cLIdpv/UHPy953JjqkXKMj7yCSf/OPfHVThQEW Xra5XC9KqWT0IJrncW59cgiGFKynZPmAklH7v0vh2FIIqtadecZTYeszRbBU6+SuqHga kcM/W0gq4v7sn4sseFUz9jqQdyzEpXI0Gei+Fd/YNlsDPO+XuCY2XGvREHQoUk7B3fze hvQqmgjweGaODUvL65Cg6zEct0Tyxq8OJKsofVaMioVci78msTsO3C1vsqnCNSYVYwBl orb4u5W/fywYrRmH2LyFA3FxPCHu+b32IbSEOeQBfthvSBHvIGK8M7MgPwLwjAzlvcnd l+dA== 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=tax4VgI/iiS9dsITJ+eMj4YhyCZjchVQgt+WmLVSU/E=; b=ViYhpAGrCbf6DWgbIjbQrq/VOij1khzOG3tUEQHj6fY/n0ADo1Rt9wOn3RlYYh+Ies HphE9Q100W5n1jwGV0imd5BnNO9i8G1YyvyRMeDV1zpET7Ieu9fs+0Q6yWYTGRDCGsBm 0JeFyXb8u/enU6ugUK0GjhRSkRy8frKIJOLp2JzMMm8xbLBMZw0JQd73ROhOVnaSjFrx F6AogTLMfBv2GZR+KXWXOx5xStdLJW6P9/U+WRG7z5Io1RWYAU1RKhMMFuU/MrOMG2i4 px6Kvg+kYYvvfW9mNrAhQoxQsuzG0MAKGe6TALsHIxgwrdnd8bh01PXDZ01ggISW0Gkq EFRg== 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 e12si4217598edz.575.2021.09.30.01.54.47; Thu, 30 Sep 2021 01:55:10 -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 S1348460AbhI3Iqk (ORCPT + 99 others); Thu, 30 Sep 2021 04:46:40 -0400 Received: from muru.com ([72.249.23.125]:39106 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348097AbhI3Iqj (ORCPT ); Thu, 30 Sep 2021 04:46:39 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 0FB318050; Thu, 30 Sep 2021 08:45:24 +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] bus: ti-sysc: Use CLKDM_NOAUTO for dra7 dcan1 for errata i893 Date: Thu, 30 Sep 2021 11:44:51 +0300 Message-Id: <20210930084452.63762-1-tony@atomide.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 94f6345712b3 ("bus: ti-sysc: Implement quirk handling for CLKDM_NOAUTO") should have also added the quirk for dra7 dcan1 in addition to dcan2 for errata i893 handling. Let's also pass the quirk flag for legacy mode booting for if "ti,hwmods" dts property is used with related dcan hwmod data. This should be only needed if anybody needs to git bisect earlier stable trees though. Fixes: 94f6345712b3 ("bus: ti-sysc: Implement quirk handling for CLKDM_NOAUTO") Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/omap_hwmod.c | 2 ++ drivers/bus/ti-sysc.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -3614,6 +3614,8 @@ int omap_hwmod_init_module(struct device *dev, oh->flags |= HWMOD_SWSUP_SIDLE_ACT; if (data->cfg->quirks & SYSC_QUIRK_SWSUP_MSTANDBY) oh->flags |= HWMOD_SWSUP_MSTANDBY; + if (data->cfg->quirks & SYSC_QUIRK_CLKDM_NOAUTO) + oh->flags |= HWMOD_CLKDM_NOAUTO; error = omap_hwmod_check_module(dev, oh, data, sysc_fields, rev_offs, sysc_offs, syss_offs, 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 @@ -1468,6 +1468,9 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { /* Quirks that need to be set based on detected module */ SYSC_QUIRK("aess", 0, 0, 0x10, -ENODEV, 0x40000000, 0xffffffff, SYSC_MODULE_QUIRK_AESS), + /* Errata i893 handling for dra7 dcan1 and 2 */ + SYSC_QUIRK("dcan", 0x4ae3c000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff, + SYSC_QUIRK_CLKDM_NOAUTO), SYSC_QUIRK("dcan", 0x48480000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff, SYSC_QUIRK_CLKDM_NOAUTO), SYSC_QUIRK("dss", 0x4832a000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, -- 2.33.0