Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4630695pxj; Wed, 12 May 2021 09:37:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGMs7N4EnlritbOoLbyuhwwCpxxSX18nKwGJETAKz9UBUFD0TByCFSRAS31W8EDvn6AgDc X-Received: by 2002:a9d:57cd:: with SMTP id q13mr29213621oti.23.1620837427953; Wed, 12 May 2021 09:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837427; cv=none; d=google.com; s=arc-20160816; b=Zd3kbUtBjMZMFueXsMBMYrL26Vo8enQL1Ip61Fh4gP2m/XkBZD9/tIs4MGHSGphJbG rHF48jFC/+nmPkiirPFDc3z5r4AzfdpKxxz36yjQyR5afNiaFFiOl15EqhWnSnWTGsEx 0CgW+43lpaZdFNZVMhPAo/5efPfCfkhUtbCROkhWL25gi0oeptCEaegnrLfzneIy/KP+ 0U5rzElSApSqockDgBsdEnMjnNm+MvBVFlcJVZVrZWW5mKZNVPacyOXFnz8V5216CyvF cMBT4grXp8FNiMNkgV53jXMZ4zIlfcCqv1T5QepKCbMeTyVkii4DhL5yXMbbY9VjCoPO oSSw== 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=X4jRrjXEOsHCueMUWIBY6UveyNYaJ4C2oHoMHiRXECk=; b=NgvNhlPFF9cZpK2PTKMKK/+/KupKQ/DUvNLaEE94sozS+F/9ufWlY80+c5ye+eKVdX lbuYIEXpXGBFJ0PnUXCE4eIJUowGfJxBCbTcykxDSwPl3XVuNcjFMbMiFiu4jDPeQ0hL L8y25KyqXh1lCuVDQZ8nYNo8FnK3PGibEc1PCKm/qrEHdY9Fk9XlAknOD3VuPiRJn8x1 Xs96ZutIwGABIhNW+7qFqvGdMz6mXpSB/pmyRxbiVpnfgDWcO4qMfa8SwffJTpFgyRsX 661OdbMktX+/IoFEc4S6VntmlEUJ3s2HqO7pSL9XGO7yOG5Tyuqli+z0wIelDH91C5j5 38eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rOAyCrQv; 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 i12si396362oor.32.2021.05.12.09.36.53; Wed, 12 May 2021 09:37:07 -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=rOAyCrQv; 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 S242884AbhELQgD (ORCPT + 99 others); Wed, 12 May 2021 12:36:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:39558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234283AbhELPoL (ORCPT ); Wed, 12 May 2021 11:44:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C15C61454; Wed, 12 May 2021 15:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832954; bh=7rt7JUzJfYx0ODOlw5IdRxH/qODB6NUQhJ2ilZ/TnEE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rOAyCrQvZmh3uBZaDyUu+h8XhQAGosLX3mItcet04gW7A4w2OsF/Tyk5FfbGTh9w/ IneQ88q0GO5DR7VIDXJt5lhyYLcnHNZR05DeuVAXog4HklpJAfjTzAYqEQxp5bxeNr pkRMzgy++o1a4cOgOBMxG/itkgDBAmVu9e5PQ7xM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 491/530] powerpc/52xx: Fix an invalid ASM expression (addi used instead of add) Date: Wed, 12 May 2021 16:50:01 +0200 Message-Id: <20210512144835.893129498@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@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: Christophe Leroy [ Upstream commit 8a87a507714386efc39c3ae6fa24d4f79846b522 ] AS arch/powerpc/platforms/52xx/lite5200_sleep.o arch/powerpc/platforms/52xx/lite5200_sleep.S: Assembler messages: arch/powerpc/platforms/52xx/lite5200_sleep.S:184: Warning: invalid register expression In the following code, 'addi' is wrong, has to be 'add' /* local udelay in sram is needed */ udelay: /* r11 - tb_ticks_per_usec, r12 - usecs, overwrites r13 */ mullw r12, r12, r11 mftb r13 /* start */ addi r12, r13, r12 /* end */ Fixes: ee983079ce04 ("[POWERPC] MPC5200 low power mode") Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/cb4cec9131c8577803367f1699209a7e104cec2a.1619025821.git.christophe.leroy@csgroup.eu Signed-off-by: Sasha Levin --- arch/powerpc/platforms/52xx/lite5200_sleep.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/52xx/lite5200_sleep.S b/arch/powerpc/platforms/52xx/lite5200_sleep.S index 11475c58ea43..afee8b1515a8 100644 --- a/arch/powerpc/platforms/52xx/lite5200_sleep.S +++ b/arch/powerpc/platforms/52xx/lite5200_sleep.S @@ -181,7 +181,7 @@ sram_code: udelay: /* r11 - tb_ticks_per_usec, r12 - usecs, overwrites r13 */ mullw r12, r12, r11 mftb r13 /* start */ - addi r12, r13, r12 /* end */ + add r12, r13, r12 /* end */ 1: mftb r13 /* current */ cmp cr0, r13, r12 -- 2.30.2