Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp634012pxj; Thu, 20 May 2021 18:31:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9ruIUjXXhZQXRDjIwMweR7SqsX2NRW3X6ijdozREl0iwyg6FiNW93hA/Od8TV3kvLQOKa X-Received: by 2002:a05:6e02:eac:: with SMTP id u12mr8505848ilj.177.1621560692414; Thu, 20 May 2021 18:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621560692; cv=none; d=google.com; s=arc-20160816; b=aH7RcK96yj9y6oj2TL3NEZJCeS48YiSGb3E5JMdyy50onJSeY51XhYIcuualXCbAAe gU4pKLzUHXEL+wKdKCADJfiwiI27lVbdlTwF1C/xZXFy/xdSrgFvHOoMXPMjNJJCOxxS oVmQU+y9hpbfOEKAPCyUzpGWWjybMCam9OafA6z5xYiwGPhJBApAs2go0KQH8KLNdcxt q5QF8S0kx8sICoxNe1AlnnUrfbHqSWldJCKJusrHs4NXskSJrIr6PbEpn7u6SmKj6Zny XXHh3UAkn0Sxanrcvdq9NwxTYMBCCk9+G1uOsnxurj5V6kFhv1GI9k8SFaCbVJ8CRvaG wxOw== 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=dGfHTMJ+ryTdmoRovwxwKK7WKXRhPxPX9pHErUL+GWo=; b=ivZLKfIkamXpbmUjCK8QE/FLsb/3YG+p0FUaVO6qPSN8Xb/AE+VbeNsKnFApZ8NZoG xSwC4BWxt6PxlxdWgaWxgfH7EM21o5XPPKIiCcX70i6kkfDgjsSfm+2uv3RmmXZA1Aku I7iqHFYFtTotqsRWfZQ19JFDbLVnnBgwuRk76Po9YbNP0XESdPpJS7pW0rOFCqQBL3Jw JKgU1nUF6JJqki36pljOS4f0B5C7uJOROooMt5u5knwBEBMEN9Fx566rp4y32nweLKZp pi4mHt9aMMo4LnpJIETeKdC1awK30PoeriW3uS9reKDG0DjpA0DDmc0m9rXtpueni31W JJSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vO9n2cwU; 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 k7si3862796iok.65.2021.05.20.18.31.19; Thu, 20 May 2021 18:31:32 -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=vO9n2cwU; 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 S242600AbhETLkM (ORCPT + 99 others); Thu, 20 May 2021 07:40:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:38286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240756AbhETLTS (ORCPT ); Thu, 20 May 2021 07:19:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0418361D7B; Thu, 20 May 2021 10:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505428; bh=00WXR+OlTujK/PkeXnndoqQ066Ja43WCBFFxGxfv10g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vO9n2cwUOJM+QuloevJUJieWS8hyJ3Of6WWKedt4+UaS0U0rVRMd7ZUux1HgnsH8a 4GtLlcvPrfRqfCjbfAhIUtmX4d2Mt4iP3GwEMf5pZ9kcyChVC82UwXfhbNRjeP2HUo RrBzxTkOmcxmPiYj+fQJgRupfBfZAlKc4PNgM8GE= 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.4 130/190] powerpc/52xx: Fix an invalid ASM expression (addi used instead of add) Date: Thu, 20 May 2021 11:23:14 +0200 Message-Id: <20210520092106.497133849@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 08ab6fefcf7a..5f44e9223413 100644 --- a/arch/powerpc/platforms/52xx/lite5200_sleep.S +++ b/arch/powerpc/platforms/52xx/lite5200_sleep.S @@ -180,7 +180,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