Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp614271ybl; Fri, 24 Jan 2020 06:28:27 -0800 (PST) X-Google-Smtp-Source: APXvYqy6OW4Ruo9Pa6f3ZpKSPKbfK1N9FTBYdY/9hTV0Nrp6QISyM+M9Ia0XU72JBNLItE67og7X X-Received: by 2002:a05:6808:53:: with SMTP id v19mr2039727oic.169.1579876107037; Fri, 24 Jan 2020 06:28:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579876107; cv=none; d=google.com; s=arc-20160816; b=l5O0sPC0YSKtTggX24K2NPz7OhJjqxyybLcxYBYmIwsRS7nqa87NmbfxQckxXRlioy caPmGuhvwAiAPqSvJZk+44xsASuCBPXitvkp2H6jSO1VduIUJA3iPxwJSESB/L+KnTzN ZXaXjFi3cSV1GmLAM99e7l209zZmBNnkALLJ6gOIab+W+DPkpWLTyVMMGdb74JWldhZG wgh7oGDm5aMd2geKr2aWPJXO5RumzKSLhYAZdjmsYAUwTxO0Mz4zfjW7qtyfWvxki3Pd 0vwAfryKMAcPyHVFS6bWjg5a/LlQu/aP6YpX+2ymGfsk5uQTfpVbgXcsm32pbnD4exuh CMxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=a40uwCnns/ww7+Fn4xKVjynFeWzPgocArRGQU5IOVB8=; b=bTBb+0JY+rIKwC0qwVVQ7DN8v4rzl59+Nal+GbmdEhQ8NMxrdfLwnHD1+yx+xyP7Pi 5SAVLEbWCX6dbXKbYsDFYK4cLwu/jIjfNE5vmu/DLyF2YozvIOa53T+DCt8yTnUD1J4U OI6ifbdIcCxSK2gMJBkM6YGLlc6gDsZiT3t5jr8PNBSK5o1pWKus2uMzbBVO0/Dh153Q 9QqINFDDchT+MqKZJwTbiNSHGPiH4rszRljXaHAreo8tcCt3u9gst0cuPUFCTAOF65MV 5SPL25QnFOPi2MyFIUzGqwkbdStA432QxisroptQBMRkISaqkDEDfupkFjOEeqXbWSl8 TcSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JEaE1eIE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si2990183otq.23.2020.01.24.06.28.14; Fri, 24 Jan 2020 06:28:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JEaE1eIE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391248AbgAXLWs (ORCPT + 99 others); Fri, 24 Jan 2020 06:22:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:34106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390997AbgAXLWc (ORCPT ); Fri, 24 Jan 2020 06:22:32 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D89B421569; Fri, 24 Jan 2020 11:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864951; bh=9+gfxXomcigT80VZmmhAS6uCU+w5O0zAbnaeaSPCv/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JEaE1eIEeEHsuKy+8jBwKZp/XitSpVVKoC/29RVAAM5HMxknRLQbFunU+VRdA2yZa gJYRTscl1CQVmuMZ10TSLTDJB/+7PmeSOPaNZVjmoeLMOep9C1IblycaQ6oD3XzWku ci6ENN2sd/W0fzL01n17zv3brNerN2A7HgUPQyuc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ondrej Jirman , =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= , Maxime Ripard , Sasha Levin Subject: [PATCH 4.19 411/639] clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register Date: Fri, 24 Jan 2020 10:29:41 +0100 Message-Id: <20200124093138.523524508@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ondrej Jirman [ Upstream commit f167675486c37b88620d344fbb12d06e34f11d47 ] The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate. Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared, due to IR module's bus being disabled). Fixes: b7c7b05065aa77ae ("clk: sunxi-ng: add support for H6 PRCM CCU") Signed-off-by: Ondrej Jirman Acked-by: Clément Péron Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c b/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c index 27554eaf69298..8d05d4f1f8a1e 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c @@ -104,7 +104,7 @@ static SUNXI_CCU_GATE(r_apb2_i2c_clk, "r-apb2-i2c", "r-apb2", static SUNXI_CCU_GATE(r_apb1_ir_clk, "r-apb1-ir", "r-apb1", 0x1cc, BIT(0), 0); static SUNXI_CCU_GATE(r_apb1_w1_clk, "r-apb1-w1", "r-apb1", - 0x1cc, BIT(0), 0); + 0x1ec, BIT(0), 0); /* Information of IR(RX) mod clock is gathered from BSP source code */ static const char * const r_mod0_default_parents[] = { "osc32k", "osc24M" }; -- 2.20.1