From patchwork Thu Apr 15 10:49:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12205105 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC567C433B4 for ; Thu, 15 Apr 2021 10:54:04 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B6D66117A for ; Thu, 15 Apr 2021 10:54:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B6D66117A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9nTrUktcu7eYan1Z3biKxsTEmL2hahNWFUZ0Q/AjWOs=; b=fmOB3mIS3Qsta/CSbP99bezca DjTGn0RKuAOCVLXW6x0je7ITYan3NXU8al6SqMrFSi/zy0QnKfavG1U+OmTafKgySszQ0TVLv1G1Z 6T+iCZ3i82SWbxdjCQ8yRT736iSepi5uhm2FA4UGPfUL9zjSK1Rg8S1WMtvBVI3uyOWnkJHsT4C7J 9ZfaYXaMjt2v6tezJBooKs4fSlckw4IIygeFwQnx3AaP5KRTHnm7F2tRa1pLQpbfTV40DrlQyC+2K Minvg3Mn4JT182ZyV78UNfPNyWdACtzV4y4m5Onz8bujmQTrljNVeqR5IIlC5alkj6mQQ3S+VAnvT neJ6+RqJQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWzbh-00Fnys-NN; Thu, 15 Apr 2021 10:52:21 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWzaW-00Fndp-6a for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 10:51:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Sender:Reply-To:Content-ID:Content-Description; bh=lo6VG9vOfFotVlxUqnwujxkTfRv1MaRSShu7VoWc1bY=; b=UZxnpJoykVT8/NXs5Bwq2q2t32 TY/7rqmVum7fChTZaEQp9N7sG+CUNrROgIw6LYusb3RTY0jdsdg9LA32rMvs6zVB/Q/lBg+6o04YW uZDHbsVStejSmVq3JONDbdg70idz7hTf+ikkE7Wph3kweBIoFKKEgQdnYIb7FVOG4TMuRRMrAhLHR wlwVlsWui9kPVEUniKFUKIZyj2jVihtBopcq/h43IpQd9EASflX6FXc5h8WANwbjewM+j4UYfYq5o 5bPhLEzqGawxUs9NQffyzCdBJMfgrnUU+SiIdnqe2sDvWyMqSIEtGNUerU3PcR0UvYphPEeWz8bZX 7CV+0D1Q==; Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWzaT-008Ux0-LU for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 10:51:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1618483865; x=1650019865; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C7hxWt9DV3Pc9H4oOYS4u5rYRQhOWg1AJzI3K4Hdue4=; b=PS9hC0jCCCRqS4fpZRuGT/NEHilcnW51nKofHHCutM3RCQqxBMy4WkCd /z364+IgYHLuj8Xom1UJOeUbPXHglr3AsDQBQavoXBwDfVt/g+dakKmV3 1W2vgnK5fVEmjb6AE3yyoVrFEkoAK18DYIVCxHIBfrTPf05PJnyOzjKac OISrhMIy+T1bxMp5fE1D1fxiFUsTX4pxvaFFAEdaY6nsrb8VszOxOQQfH Az28kguIh/oCXYe+Gs6e7YTHQ8ErsnEzOXhZc6WDafH2fCg0khtveNJGk wyl5Sa/OYafaGoY2eVKHi6FAczFZvuf+i2MAiT7s/pqoKX+ABWnf0d44+ w==; IronPort-SDR: wR6FXGhTP1jFx/zX5khIIqmmKBqBbmx6BiMhfqqyHmdFWHihmcf8CU/iBPjcwnMXR8ACaE8t/6 WTs9GJS+goZm/nApUNOW0P1dxYuggcIU4LkB2SPF0mnZErUt52MNaMUA9aAWNC+rPXSB+zgV07 v7nOmCHFqQ6p8Aw/dEGRVZ7jCi7od29HH/AcSKxBhhQKKbh0IunZweIN+BT5hOsSs3D51WvOM/ SozB4MOxe5F8Wqqa4XlhMVR2oobcbI0HqG9d58Dw/lCeMifvkg8pqUavtw6uJR2dy5wo0a3gOZ K9c= X-IronPort-AV: E=Sophos;i="5.82,223,1613458800"; d="scan'208";a="113688174" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Apr 2021 03:51:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 15 Apr 2021 03:51:03 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 15 Apr 2021 03:51:01 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH v3 06/24] ARM: at91: pm: use r7 instead of tmp1 Date: Thu, 15 Apr 2021 13:49:52 +0300 Message-ID: <20210415105010.569620-7-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210415105010.569620-1-claudiu.beznea@microchip.com> References: <20210415105010.569620-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_035105_855876_9234A1AF X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use r7 instead of tmp1 in macros. This prepares the filed for next commits. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm_suspend.S | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S index b683c2caa40b..3d20c9880fee 100644 --- a/arch/arm/mach-at91/pm_suspend.S +++ b/arch/arm/mach-at91/pm_suspend.S @@ -31,30 +31,36 @@ tmp3 .req r6 /* * Wait until master oscillator has stabilized. + * + * Side effects: overwrites r7 */ .macro wait_moscrdy -1: ldr tmp1, [pmc, #AT91_PMC_SR] - tst tmp1, #AT91_PMC_MOSCS +1: ldr r7, [pmc, #AT91_PMC_SR] + tst r7, #AT91_PMC_MOSCS beq 1b .endm /* * Wait for main oscillator selection is done + * + * Side effects: overwrites r7 */ .macro wait_moscsels -1: ldr tmp1, [pmc, #AT91_PMC_SR] - tst tmp1, #AT91_PMC_MOSCSELS +1: ldr r7, [pmc, #AT91_PMC_SR] + tst r7, #AT91_PMC_MOSCSELS beq 1b .endm /* * Put the processor to enter the idle state + * + * Side effects: overwrites r7 */ .macro at91_cpu_idle #if defined(CONFIG_CPU_V7) - mov tmp1, #AT91_PMC_PCK - str tmp1, [pmc, #AT91_PMC_SCDR] + mov r7, #AT91_PMC_PCK + str r7, [pmc, #AT91_PMC_SCDR] dsb