Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp349775pxj; Thu, 20 May 2021 10:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/rutN0YYnIwSkKP75IonCW4Qm2iWh0Nunni5NApCjTBCOH0UlToTGsYChaA5Fou7c5rGI X-Received: by 2002:a05:6e02:e42:: with SMTP id l2mr6248162ilk.189.1621532589685; Thu, 20 May 2021 10:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621532589; cv=none; d=google.com; s=arc-20160816; b=QrFvXmTAFWvwINwPX7UvgSeJNqq/ZPdloqL2zMuaVaZZZa97rOil1dDsjfzmvfQP+q jBPixkaLM7gGq3aiKyWlgOv+GQ2Tsak/ZcLLNLgAix2qzUT3Mz73Fjo05Bzlw7txs9FV 8NOW0wh2O8lPWBNjIedt7ubGioDBpOvtEbdeRjLKgj7Elkq4c0ohQiOFgCFMGh9qgMOh /kAx14d4Ig0td2ON+NY4V5yNUdJHYBx5Edbh2mraDPJYqfU0d1jOWSlKL0OHqEXVs0jv Zvj2h8mo848Bo4qSPmMyORpO2xxwfuUa1CV1ymFd9mh6KsnrsL1BTwb+NdxbFLMPDalS 1q/Q== 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=O6eZwAHrCTSVJ+kxVSk+gFaBrRaAhomki26PbXJH3kY=; b=dOHSQZgr+0lpvGjbXihwApolFL/SBHJHfbMKEcidaEcPIs9zvbXM95aClTsxBdcr1/ 9DoYrqv672bKubGjuTYl28PiI7NzpGqdkDqaanxDxwXGl4d9MnwIB3Sxs7IL8fGS0Ohl UVZfiOyo9Zcq3yT9IDjC92YRCzwdQCRL0uFAiAGoe9svVgSQSX9XjRQ4YkNdsEGY1zUn deghGqguaiFD7N3gARyukAZbbNaefhi8SwfngmTUq9TKO7O5sstS8nYa6+TTxPdS1h8n qdvyZvDnJFVus9OgDr9u+gy2DG8v/SQYUP2TrEznbonJ0IYEHK0+tXwQ/PsjXTGA8XIC z9RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pyg8kUrQ; 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 s18si3085701ilh.102.2021.05.20.10.42.57; Thu, 20 May 2021 10:43:09 -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=Pyg8kUrQ; 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 S235362AbhETKLU (ORCPT + 99 others); Thu, 20 May 2021 06:11:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:37258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235059AbhETKBz (ORCPT ); Thu, 20 May 2021 06:01:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 23E7F6142E; Thu, 20 May 2021 09:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503579; bh=o13Mt/lsms794xZ8ZPtyRv9zpO+Y43TGEBGBmRL6zhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pyg8kUrQkWFQ8loy5yzg31DEJRMGLlx7kvT4XKCk91W3RTmn2+rHoOAxJzpPfYORE 77QjSyXvCInUpKrZpTHie6YnGC5eAoQj1ABjwCF3D80PgstiO6rDBVYl7lQpf51KhY O7Ucvu2Aiok2aCJOEhqfMFMRmefcpmiJrQQnFJPA= 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 4.19 284/425] powerpc/52xx: Fix an invalid ASM expression (addi used instead of add) Date: Thu, 20 May 2021 11:20:53 +0200 Message-Id: <20210520092140.779206343@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 3a9969c429b3..054f927bfef9 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