Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3152258rwi; Tue, 11 Oct 2022 20:00:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ab42FyHqn0l5VF+HePoqziBZTrmvCQ4kRf6SQC6ezcicup+RXK9oocXT//9C04Oc5ckAf X-Received: by 2002:a17:906:794b:b0:783:8db0:95a5 with SMTP id l11-20020a170906794b00b007838db095a5mr21672998ejo.728.1665543620238; Tue, 11 Oct 2022 20:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665543620; cv=none; d=google.com; s=arc-20160816; b=ODxsP4KNEXbAJre9JEtcnimqKf5Qohe9pUy3/eVTIHqs0ModKcDMNG4nhUrvMDuBbV LGhMS3PlX9JroETv0hzb9db56oStsKZZpprs0fz/mdqF8dOLymG34ZN54WUyOXyVhEZz u43DCuTZP2ZHT9MmdxYdAwiIPa23e5gMDkqqZKSFJIfOwca9uzGLp9bpF+VB0Sah0tFK +4e+G6c6iQoosF6ebJA0M6m3igbNOjtbcsQSlFmbsh8zcSY8FUYhk8HduPaZp4VlubJS LcqgaW8AR2Ojq8Rt6jCYQkW5v4FRTebuhoMSHDZS4I60UTfLemWAs44+OnYZcXJiBVGQ Rujw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=it9MzDgssf9+umDzd/jf69dlDIeVx012exkrC1YNevM=; b=ttmHGsVpN2Kwaa0/xngztA/dh/b2hwTAGZypnu4ZNOgoBvAmBIDSD2HBBekp8TAPAS udTvWJ2N+fjPIIHHVCe0mAv2vxtLSsxy+JpI7syJZ3ohtWaSzNptqlQ1q9JHMB4KFMFx 3cKLxqZWYSk8esXmTZ4Badp4fTYUFfyQe85iWvhfv+//t1FGu0NTpyYxkN0ZAMsUHluw Nx+vR36Yb4P56d/e9SP2UOl/MIkkwCPyhUbav0sFaGW5pX5IbTVshqF9lqQRcXJla2OT JZMIeTn2t0oa5ur9++BAiE1LnBi16frbYUJGR85CAIU48sFwbHIPtOs77D+sc2DIb/Uf t2pw== 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 jg31-20020a170907971f00b0078c3603b4f6si15426112ejc.784.2022.10.11.19.59.54; Tue, 11 Oct 2022 20:00:20 -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 S229468AbiJLCuV (ORCPT + 99 others); Tue, 11 Oct 2022 22:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiJLCuU (ORCPT ); Tue, 11 Oct 2022 22:50:20 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B236B8FF; Tue, 11 Oct 2022 19:50:14 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MnHBP0sdzz1CDyL; Wed, 12 Oct 2022 10:47:41 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 12 Oct 2022 10:50:12 +0800 Received: from [10.174.177.243] (10.174.177.243) 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; Wed, 12 Oct 2022 10:50:12 +0800 Message-ID: Date: Wed, 12 Oct 2022 10:50:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2] clk: at91: fix the build with binutils 2.27 Content-Language: en-US To: Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , CC: , , Stephen Boyd References: <20221012030635.13140-1-wangkefeng.wang@huawei.com> From: Kefeng Wang In-Reply-To: <20221012030635.13140-1-wangkefeng.wang@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 2022/10/12 11:06, Kefeng Wang wrote: > 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 > --- > v2: use linux/bits.h instead of vdso/bits.h + Stephen > > 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..7af499bdbecb 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 */ >