Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2281389ybl; Thu, 19 Dec 2019 10:57:43 -0800 (PST) X-Google-Smtp-Source: APXvYqz913T3//zTgA8PPS6A5ra/olN74whu30kXSSBNRWun35EEQU4JeAW/k3Gy9IrB7CUHagSo X-Received: by 2002:a54:4817:: with SMTP id j23mr2687125oij.152.1576781863349; Thu, 19 Dec 2019 10:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576781863; cv=none; d=google.com; s=arc-20160816; b=H3YSOEnNJhDwDQ7mDCQpOBey8ifw0aAIkkWtmsQIlp7Q1EcydajD/dCvZNu7BpGucc SV1xWJP3xaTeSpiMcPl2tHz/Q/6fI3RnLcdMdthXQyTSjczf+BNvaYeEk3KCKsCwoVq3 xHd2AsowX1PjJv8zV+q99MNQjsknLBkfMc9WU8ugy5i8Ca3TdKiD72t8GgGRmy1t2tdD vXOm4LoSoChDafndD7Z66LpzDjE74hjdIfaF3lWeIecyp5KGrwQE3HqIg9cRZ/53HX3u jJw98jH2OucTpqHpJeP6poJYSda6qfR3UiJDcy1A78PnL96GhAF7zrEXANGNNiz21K8j 22lQ== 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=UvX07n1W9IN4g0lkDZmjigmXiOGcoWt6f6CPbhykA0w=; b=m5YqUywkjGejc+SolKv1HXnp63jaEidZ1GLrpfIckSWW4k7dn4BQ8VFOd+fWepp08E xhlMp4tOWZY5Zl5qfTYOepx18jOJAngsnseFxvW2i0FhxVpAqJMN2Oa44EWdL5c7Ui8J fgW9O0cTa8JmrOJfHvUvblu6Mh/Wpp+WvuT652H1rHWHiT5qr5Gs7IwjYgkTIbtdK0LP 971krBHcWP/ZICh8De40cvwBUl+9F5rcX9o/q/CFYhKJ9XEHSUYLbXllcnWOKAiiqv/h u+iG7lOprx13FMOr34tlG4iq01dpxZeCC475XR2urKTuhjOGjeMtBZrxTD2azgGsBVRd 0O5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=er5lXTOc; 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 10si3248441oin.212.2019.12.19.10.57.31; Thu, 19 Dec 2019 10:57:43 -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=er5lXTOc; 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 S1730416AbfLSS4a (ORCPT + 99 others); Thu, 19 Dec 2019 13:56:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:52958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730809AbfLSS4Y (ORCPT ); Thu, 19 Dec 2019 13:56:24 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 47575206EC; Thu, 19 Dec 2019 18:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576781783; bh=jk0VuUMvYHyoH4GIwFD9bkaY87rYKm6vgjLVmpGwtis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=er5lXTOcIaL4Dwh3TAVqLwNPLN5dzdW0WLuTSnIZ9+b4Oc6H6n0YdmB/fgwcRpIWC B/QNLvRY0nWUvykPJeFVQc2BPr0ZaaniP6XdDJp7roQo2UYw0NerwbOpJRUQ8dl/sF TkUx6wQDvhMvWG9xXK9lFrguaQ175bDMd0vX4MtU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter De Schrijver , Dmitry Osipenko , Thierry Reding Subject: [PATCH 5.4 40/80] ARM: tegra: Fix FLOW_CTLR_HALT register clobbering by tegra_resume() Date: Thu, 19 Dec 2019 19:34:32 +0100 Message-Id: <20191219183108.704774605@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183031.278083125@linuxfoundation.org> References: <20191219183031.278083125@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: Dmitry Osipenko commit d70f7d31a9e2088e8a507194354d41ea10062994 upstream. There is an unfortunate typo in the code that results in writing to FLOW_CTLR_HALT instead of FLOW_CTLR_CSR. Cc: Acked-by: Peter De Schrijver Signed-off-by: Dmitry Osipenko Signed-off-by: Thierry Reding Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-tegra/reset-handler.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/arm/mach-tegra/reset-handler.S +++ b/arch/arm/mach-tegra/reset-handler.S @@ -44,16 +44,16 @@ ENTRY(tegra_resume) cmp r6, #TEGRA20 beq 1f @ Yes /* Clear the flow controller flags for this CPU. */ - cpu_to_csr_reg r1, r0 + cpu_to_csr_reg r3, r0 mov32 r2, TEGRA_FLOW_CTRL_BASE - ldr r1, [r2, r1] + ldr r1, [r2, r3] /* Clear event & intr flag */ orr r1, r1, \ #FLOW_CTRL_CSR_INTR_FLAG | FLOW_CTRL_CSR_EVENT_FLAG movw r0, #0x3FFD @ enable, cluster_switch, immed, bitmaps @ & ext flags for CPU power mgnt bic r1, r1, r0 - str r1, [r2] + str r1, [r2, r3] 1: mov32 r9, 0xc09