Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1949216rwb; Fri, 7 Oct 2022 22:56:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tQblDPLWk+xHeOZxzfXsHF6Kx8r1uSBmT40Q26xzszBMUHBkTV8fzqi5LTRn/iRG+ltvS X-Received: by 2002:a05:6402:40cf:b0:459:d7de:d5 with SMTP id z15-20020a05640240cf00b00459d7de00d5mr7564437edb.288.1665208598619; Fri, 07 Oct 2022 22:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665208598; cv=none; d=google.com; s=arc-20160816; b=hvOUqWMY+xBjJ2hd69lpTpn8fCQ3f1YaQaJshgM3UPJxvTeYZbtUP+ofcJrjTnqypv iwICSlfIzclRe+BWyHJ6FWGrP/ZO9XBa6RqTvRw1un1ozJLyCDwulGoaeZflmmT4kquX zBJnzLoGx59h6oQCm5qp3MDcvT0xew8HXdcsMIMwVMI+X6prmZiKleb2Bj7QPVmMl79G e7smCYW/yYv4Ox5lwfPipSgCsNbOUYYpqrJTaCdRJ7b6LiR7O5JkyfTzDGxklPd0ldx+ awEd1jD6E18F+gNXxJjVLdHJAuCpQV/PPLItdbuYoUFbOlY+QLpyFSNsnsPyZ0P5T6ks lRpQ== 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 :message-id:date:subject:cc:to:from; bh=YGaTezbEQqagkDL06hYz1gvsT47fy7TT9ufIGvzAsNo=; b=eUApd+gUOT+d8U7x4WxJnWc62KIr+ULy1IT9EzrLNkPs4+p8/g6l6BQ7BA15w6LwZu Bj2We6FvVMn8lDClxTqD23mV1hdyvsnqNgPeygyu5kgDJ5RLJQt+hb8NJmUPhaAXzZnp oAJ+F73ldCmDGrKmmSWm72kCG0pM0+7cLOLRnfUGh5XFbyT50occRZR6SFy0covJDf9H 1M1h8LEhcpXyD+J3/HBawdT0EU6YLH7u6hl7BhaA0Q+USt4fqj5AREeCsdvkkpHn7CtO vOmiAGVk8QypQcW46xqsNuLZdTNwW9d+N1UfKmn9+DvR4Jc+U+vms+GmUhrIt2dv4xQL Iuxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a056402269400b00458ba4c84f2si3595130edd.0.2022.10.07.22.56.12; Fri, 07 Oct 2022 22:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229565AbiJHEzq (ORCPT + 99 others); Sat, 8 Oct 2022 00:55:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiJHEzo (ORCPT ); Sat, 8 Oct 2022 00:55:44 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5022F9C7D4; Fri, 7 Oct 2022 21:55:41 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Mkt936ccczkXvT; Sat, 8 Oct 2022 12:53:11 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 12:55:39 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 12:55:38 +0800 From: Kefeng Wang To: Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , CC: , , Kefeng Wang Subject: [PATCH] clk: at91: fix the build with binutils 2.27 Date: Sat, 8 Oct 2022 13:15:34 +0800 Message-ID: <20221008051534.151392-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is an issue when build with older versions of binutils 2.27.0, arch/arm/mach-at91/pm_suspend.S: Assembler messages: arch/arm/mach-at91/pm_suspend.S:1086: Error: garbage following instruction -- `ldr tmp1,=0x00020010UL' Use UL() macro to fix the issue in assembly file. Fixes: 4fd36e458392 ("ARM: at91: pm: add plla disable/enable support for sam9x60") Signed-off-by: Kefeng Wang --- include/linux/clk/at91_pmc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/clk/at91_pmc.h b/include/linux/clk/at91_pmc.h index 3484309b59bf..4fc387d0335d 100644 --- a/include/linux/clk/at91_pmc.h +++ b/include/linux/clk/at91_pmc.h @@ -12,6 +12,8 @@ #ifndef AT91_PMC_H #define AT91_PMC_H +#include + #define AT91_PMC_V1 (1) /* PMC version 1 */ #define AT91_PMC_V2 (2) /* PMC version 2 [SAM9X60] */ @@ -45,8 +47,8 @@ #define AT91_PMC_PCSR 0x18 /* Peripheral Clock Status Register */ #define AT91_PMC_PLL_ACR 0x18 /* PLL Analog Control Register [for SAM9X60] */ -#define AT91_PMC_PLL_ACR_DEFAULT_UPLL 0x12020010UL /* Default PLL ACR value for UPLL */ -#define AT91_PMC_PLL_ACR_DEFAULT_PLLA 0x00020010UL /* Default PLL ACR value for PLLA */ +#define AT91_PMC_PLL_ACR_DEFAULT_UPLL UL(0x12020010) /* Default PLL ACR value for UPLL */ +#define AT91_PMC_PLL_ACR_DEFAULT_PLLA UL(0x00020010) /* Default PLL ACR value for PLLA */ #define AT91_PMC_PLL_ACR_UTMIVR (1 << 12) /* UPLL Voltage regulator Control */ #define AT91_PMC_PLL_ACR_UTMIBG (1 << 13) /* UPLL Bandgap Control */ -- 2.35.3