Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1614276pxb; Mon, 11 Oct 2021 09:31:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBeAY++87ICwt+yEazqSBgxMTwGpWFkrO4HhTthx5YsDjaQx+D3HY1C+ZTSqWMEdMivolr X-Received: by 2002:a05:6402:19ba:: with SMTP id o26mr42747619edz.1.1633969861183; Mon, 11 Oct 2021 09:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633969861; cv=none; d=google.com; s=arc-20160816; b=hUmbZ+QBZjIEd9/DLXMSTU6v1K9AtxgloMNFcDK8Y1bcEewNQXzBfMRl5Y+LdgIM2R yDHhrfgM+DtAAUsks0HoOgs7Cy4m8SgpKyQHOpRPkm431KztihsjkLl5nIiLXZ5wd5Ia +my38CaJK/Ty/lVV79voywfsTNUhY7Xr1lEsAVpZTKp78fuMppuaPuW3GpX1UyHG9xDm PDKGw6Nezf8FWn0pUV0pbavmr1aN6bnaoeYLhUIA+mmM0WikH1CKhbgSSBFYwMG9NPr7 rFEiaekhTEztdyvV+V8p/rcgbQhYrwHEONAVO3oelANwSZyIVKFRadA481qoRdX9++zK ifLg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R1CxY7svh4kBVqMlPkTOrKbJglz5RUxI4eDGNGsQArA=; b=yC4+5xm8DTS60XfkvhLMBOXlJmRYKyaEMfIGNV+Tx3PLO1rDsT4Z2afyOffqBERszp yGJu6yB09wQswtXsG74GWhyIW05tdF2Icbk5iFxFiO2eX7eedggW1uPOTk5BJ2S/uBOc DipGM6LK5wIdiDzIPz5t8cTfGadw97NMw0ujQZK3c/CdbHLnHdL4zXMQ9naa83gWcnK2 8cDsF7lzuMJgP+sxexvU+ntNiXuq57aB9GI6OQ0/tVX7YuyBjUDYSDho/hDqkFB3KgZg e4KCp6xtAhpHwzlp/ofOB1dlgaMHpB5bsTGJvjPasR+urpu0V15qnDc9WQ+6dCwZwkEf c5aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=daN65Pwp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di18si10931602edb.289.2021.10.11.09.30.37; Mon, 11 Oct 2021 09:31: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=daN65Pwp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237699AbhJKNw2 (ORCPT + 99 others); Mon, 11 Oct 2021 09:52:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:39472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237379AbhJKNvN (ORCPT ); Mon, 11 Oct 2021 09:51:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5B35460C49; Mon, 11 Oct 2021 13:49:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633960152; bh=eel5NhudzUmvRMwzvf+FmJa3uUYsQKH4gd0yvmnSzv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=daN65Pwp+1pgFRUBs+k/TYFWZsyWgVwrvTm92CzA6bDmNNflHFY6ESzEfILgW4DOw fWbfCNu0UsK6UjB5JOsFX0Z0MR0jQTV+NeyST5ixZSadFsBS6+TZLQQxTgv6HOb09F i23FnnPyScv9c07xsqmO4PEZhVBLtBYHjBymyE7Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Sasha Levin Subject: [PATCH 5.4 37/52] bus: ti-sysc: Use CLKDM_NOAUTO for dra7 dcan1 for errata i893 Date: Mon, 11 Oct 2021 15:46:06 +0200 Message-Id: <20211011134505.002056141@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134503.715740503@linuxfoundation.org> References: <20211011134503.715740503@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit b13a270ace2e4c70653aa1d1d0394c553905802f ] 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 Signed-off-by: Sasha Levin --- 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 index eb74aa182661..6289b288d60a 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -3656,6 +3656,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 index 90053c4a8290..469ca73de4ce 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1388,6 +1388,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