Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1615815pxb; Mon, 11 Oct 2021 09:32:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKAK0GZB4BL2IPhYcEJh+Jyo+Gq2JQWHCWD6W1xWddXd5UxMW+IGdP7FrByXNjQqKFtaet X-Received: by 2002:a05:6402:3586:: with SMTP id y6mr9922745edc.292.1633969961036; Mon, 11 Oct 2021 09:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633969961; cv=none; d=google.com; s=arc-20160816; b=bof6yedK5po1sxrNWVHsTvWcPLMj4vBQMxp+hWNH6A2saQtJq8MheNWnoCjrzzH3Ec 5aaPypAGL9scczqDdeq0WjQ8AZampoSAv7sskLkhV/XvCx0e43yJL6dc+mxVToYRnTHX pvZB6b3tA/FmMZ4dE87h/RDTlUej9kKOKIfpDnZWouZBKMHTJlGTjnoLMaIwDP6cLnar qyhr5UWR2gE8HTmVqKddv+xArj5Ow3K84PT80n7lCL69Bjnyp4R2p42XTFqo8TvXDwdA fp5A4tJ4EFGFHJycz0ZSK8Uqdn4t2tzWh3OzcO8OJqcy7fS5HzTSVOM+1O1CmS6hDgG6 seEw== 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=Z4clv8u8JgkV+wFDBZrgBzZ+/HNjbmtqscCvP0WTfGE=; b=f/thHA0eAGEtCGB26M82UnQpJmnq15zf5nbDJfYELAMepEQxvoVVoJp7Uji/T5lRgb 5I68ZZ5wjOV/NWnC5z51D0pnw+GkRBbfQfGpA4JYpgmOpGGKglgrclPJmYKi2cM6upkp dLH0VkLm5//hm8CrZS+xwY/4wULFFbcIm81X6mlqZneZTtzQ6JJQQByKsO1WN7Y7cmDY vHLHaalZ/OTwN3t3+rf+uS+XTvoOmlF+9nBNgLHLSuS9qmYH9L2evCWNbdxMyi7E9aE2 TDLdKUShS5qr9xUVywvl9EC7eUh5/axZqHYXYakshAGL60j8YYFVgXPpX6q+3AWt3JZi 7xuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IR2+RuXV; 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 cc12si11066558edb.194.2021.10.11.09.32.17; Mon, 11 Oct 2021 09:32:41 -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=IR2+RuXV; 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 S235235AbhJKN7i (ORCPT + 99 others); Mon, 11 Oct 2021 09:59:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:40464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237493AbhJKN4j (ORCPT ); Mon, 11 Oct 2021 09:56:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 52EE160F4B; Mon, 11 Oct 2021 13:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633960415; bh=B8WyaYwk9UjC6etQVDB1/Cs/hqSDGRKMuNpP7gzbNQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IR2+RuXV2GpFxfJBEPT5Gddtg3pO4+S8mKG2j9LDukdqSWCDlXp+sRf3H5ae5kinZ w1MYwObJlhsQurgF8duI3sXIUbWz6rpZRt2fowyWQ+Hnbl+24rVZ5nwMv5duaUpu0f OaBQKxlsiQ8l/+HKbnrCgYhT6kEwvUreTMzAneA4= 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.10 53/83] bus: ti-sysc: Use CLKDM_NOAUTO for dra7 dcan1 for errata i893 Date: Mon, 11 Oct 2021 15:46:13 +0200 Message-Id: <20211011134510.226701430@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134508.362906295@linuxfoundation.org> References: <20211011134508.362906295@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 83d595ebcf1f..9443f129859b 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -3618,6 +3618,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 d2b7338c073f..02341fd66e8d 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1464,6 +1464,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