Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2118687lkv; Thu, 20 May 2021 03:51:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/X+d0nCjPTvwIPL7oMRjBlkjs4tkyRq1ANtP5u9f+SAPxi0JNBDIf93VNbbVMjhgxoTqn X-Received: by 2002:a17:906:755:: with SMTP id z21mr3988300ejb.113.1621507883475; Thu, 20 May 2021 03:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507883; cv=none; d=google.com; s=arc-20160816; b=kDdPK2IUyEJbkcb0DdyWwG45f76k2CX3FJkqAxjCc9OfQt1PRqmXGha3iqzTrM1cRF nJdCxso/0dcumdyRu1853OK2PJR9OYJVsS1hQ6a2CSgMrvDp2vMfenHBa2bGnjIluTBj z+fKlz1LsIUhnF7T62RcwywYacu3r+AN5PQTV9Xj5dz+Stw1jBkFOR31BZkJvFYuwA+m 9omWHWp6NGCXeSUVtVPQieeg8MWRP9tUZOKapJUKdUP3vz3NXtFr7Pnue7guiARg+oaH Tg/I4WQDXSK5ZiHNeZSL3dMANllVT5sP3R4jZoFb8uY0BGLaP9tQKb0XlTgbWOi9mYCN 46Hg== 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=uHPZlxHTOoAKbj6k6TEB1vKVZQ6xi+6soQav9so0deDHsdC7m88HKz2SfvjEVFXfAj 9cPbfQpyz00KoOLg+vgrYL3ef51GMGHMlFx8SOzpsRsOr3d1wMft9UnkqE8psYexbUUh 9SMcZr3yWNp6kw0NmwTcGuIH8kWlMW+eAulZzFR17B2n8QEhNsDr3wChMb3cjUpvW3fK x84qbpe6oBt6LZiwAy22cPJpBQPKocZWkAxBRu1KwPhPybRsfLdaypNNfmsZnI4mu7pJ oRv1ZPq0suyu2VGWP5vg40DcVO/DhmYASttfJ9OCXMtXOwtADtT9NPwlBNZgxRG2U0pe oscg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jZrRYcvT; 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 y21si2263803ejp.635.2021.05.20.03.50.55; Thu, 20 May 2021 03:51:23 -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=jZrRYcvT; 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 S238731AbhETKuN (ORCPT + 99 others); Thu, 20 May 2021 06:50:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:60752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237065AbhETKdr (ORCPT ); Thu, 20 May 2021 06:33:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3AEA061C55; Thu, 20 May 2021 09:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504391; bh=o13Mt/lsms794xZ8ZPtyRv9zpO+Y43TGEBGBmRL6zhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jZrRYcvTGDwkmQLUVVWS9ge1WheayKYHHAv0LXtl75nwY+J7a6OZosUgKODw1jLKh z6CnWD0BzcfFk0g2ub1x8gcAiEn1uOMT/7lAfU2XIGTQkpV30s0e/ATwVDV5EXyfRN OVtzPiqFO/QcJ0nqdpkYLCC28ypEMf3D8itn+fWM= 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.14 224/323] powerpc/52xx: Fix an invalid ASM expression (addi used instead of add) Date: Thu, 20 May 2021 11:21:56 +0200 Message-Id: <20210520092127.822491042@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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