From patchwork Tue Jan 26 09:29:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12045989 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=-14.2 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, UNWANTED_LANGUAGE_BODY,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 C2FACC433E9 for ; Tue, 26 Jan 2021 09:38:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 66B782310C for ; Tue, 26 Jan 2021 09:38:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 66B782310C 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JPzJ4xzAC7u30lJSkFKOeJvgFQdI3KIGKIk5p8u2tks=; b=Yh3mTrcUGOWfHm5tdzPtEjnI1 ftPijk25VPv8bhBG+3npVBGJVcI3UXbzUdPqftwLgjyxmD8XdXxmbBPqVFkapoEs7VtRHhQEChU9k oJUX4c1MpURGjeWph1i9naqRwU5rCA2IiqHqO1XpoxfP6Z3H4zp7fo01+V7lO5tBMTHtn3+dqGYcX 8rRVslh9dW9bajPtHJmMtgO3GbYxc7RYXaavCs7UeyoiO0OjMZfeOHSSKqFQJKKl80shY0UBtnKX6 elihsno7ActcsMWjRAcWk8bscFGZ9Mck2xMzRgInOyN7tEQLLF56x2uhmd9PSB/ONdNNQCiWdwoc4 LqdxlXmXg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4KmR-0007tk-1T; Tue, 26 Jan 2021 09:36:59 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4KmJ-0007ru-P0 for linux-arm-kernel@lists.infradead.org; Tue, 26 Jan 2021 09:36:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1611653811; x=1643189811; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=IbiTl8yUYXW9POMe4jJjHlFiQ6QTbLk72ZtZMsD7Cps=; b=VIXlthHWShaQ/5mfiQaTL5BumiqqvBU+QibP4wiBwMN6osOciKY1nqca ZH1oiCpNiJVBGL59hYesHicENi3V5rsFpBG1mO2crJlF7ELaSwDYz8dZy sxbIx7H32+Pxdgyppi63GFlFVlkrzJSAWntmn4HCR8BDDHXdedzBuMoMs Iy7sYOh5ZkrOqDe9QPIuGZw3QBVLJdkfyZK02XPJN6jgft/Pj1DsGeock Vso4OunL+6GJtSs0J1CPCpiX71jJCcxLMZFHGOqQS3HVs/ooeqvCaZqOX /97ZHvtXaEKykecqcMi/9qjAkNFPfhZ8S3v19I4fB8HZ6WnBXScUmPWYG g==; IronPort-SDR: BPp9TFhauPXYHrWjQGvIkupUfKOR6Wm0a2UiCuXpRjd5+/uwJvEAZ2BeP+F79baeikuqil2cON ekQK71V8sZM8BzuyYFgnOBD/rwyRGh1CW0NhSgExt5zI0SGK55EBgS1PU6feJwn4j4usnaMAza 2phJRV85vVKPguj0Ze98GpG/Wgf2GF3s4PDH7EJMo0lsR+xen0dr/1rNlnIkUMql7i36x/EeN+ KsY01N4kLRJ7IBuURCKgb998/afr3x8i9giMzkfVLPgQv85oYJhtMpo/zOeXiFyG6Wic4wGghY w+w= X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="104250496" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Jan 2021 02:36:50 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 26 Jan 2021 02:36:50 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 26 Jan 2021 02:36:48 -0700 From: Claudiu Beznea To: , , , Subject: [PATCH v2 2/7] drivers: soc: atmel: use GENMASK Date: Tue, 26 Jan 2021 11:29:31 +0200 Message-ID: <1611653376-24168-3-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1611653376-24168-1-git-send-email-claudiu.beznea@microchip.com> References: <1611653376-24168-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_043652_014879_B8095F38 X-CRM114-Status: GOOD ( 11.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Claudiu Beznea , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use GENMASK() to define CIDR match mask. Signed-off-by: Claudiu Beznea --- drivers/soc/atmel/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index 755a82502ef4..d54ec271a15d 100644 --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -28,7 +28,7 @@ #define AT91_CHIPID_EXID 0x04 #define AT91_CIDR_VERSION(x) ((x) & 0x1f) #define AT91_CIDR_EXT BIT(31) -#define AT91_CIDR_MATCH_MASK 0x7fffffe0 +#define AT91_CIDR_MATCH_MASK GENMASK(30, 5) static const struct at91_soc __initconst socs[] = { #ifdef CONFIG_SOC_AT91RM9200