From: Claudiu Beznea <claudiu.beznea@microchip.com> To: <robh+dt@kernel.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <ludovic.desroches@microchip.com> Cc: <sudeep.holla@arm.com>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Claudiu Beznea <claudiu.beznea@microchip.com> Subject: [PATCH v2 2/7] drivers: soc: atmel: use GENMASK Date: Tue, 26 Jan 2021 11:29:31 +0200 [thread overview] Message-ID: <1611653376-24168-3-git-send-email-claudiu.beznea@microchip.com> (raw) In-Reply-To: <1611653376-24168-1-git-send-email-claudiu.beznea@microchip.com> Use GENMASK() to define CIDR match mask. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> --- 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 -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Claudiu Beznea <claudiu.beznea@microchip.com> To: <robh+dt@kernel.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <ludovic.desroches@microchip.com> Cc: devicetree@vger.kernel.org, Claudiu Beznea <claudiu.beznea@microchip.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com Subject: [PATCH v2 2/7] drivers: soc: atmel: use GENMASK Date: Tue, 26 Jan 2021 11:29:31 +0200 [thread overview] Message-ID: <1611653376-24168-3-git-send-email-claudiu.beznea@microchip.com> (raw) In-Reply-To: <1611653376-24168-1-git-send-email-claudiu.beznea@microchip.com> Use GENMASK() to define CIDR match mask. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> --- 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 -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-01-26 14:51 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-26 9:29 [PATCH v2 0/7] drivers: soc: atmel: add support for sama7g5 Claudiu Beznea 2021-01-26 9:29 ` Claudiu Beznea 2021-01-26 9:29 ` [PATCH v2 1/7] drivers: soc: atmel: add spdx license identifier Claudiu Beznea 2021-01-26 9:29 ` Claudiu Beznea 2021-01-26 10:28 ` Nicolas Ferre 2021-01-26 10:28 ` Nicolas Ferre 2021-01-26 9:29 ` Claudiu Beznea [this message] 2021-01-26 9:29 ` [PATCH v2 2/7] drivers: soc: atmel: use GENMASK Claudiu Beznea 2021-01-26 9:29 ` [PATCH v2 3/7] drivers: soc: atmel: fix "__initconst should be placed after socs[]" warning Claudiu Beznea 2021-01-26 9:29 ` Claudiu Beznea 2021-01-26 9:29 ` [PATCH v2 4/7] drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] Claudiu Beznea 2021-01-26 9:29 ` Claudiu Beznea 2021-01-26 9:29 ` [PATCH v2 5/7] drivers: soc: atmel: add per soc id and version match masks Claudiu Beznea 2021-01-26 9:29 ` Claudiu Beznea 2021-01-26 9:29 ` [PATCH v2 6/7] dt-bindings: atmel-sysreg: add "microchip,sama7g5-chipid" Claudiu Beznea 2021-01-26 9:29 ` [PATCH v2 6/7] dt-bindings: atmel-sysreg: add "microchip, sama7g5-chipid" Claudiu Beznea 2021-01-26 9:29 ` [PATCH v2 7/7] drivers: soc: atmel: add support for sama7g5 Claudiu Beznea 2021-01-26 9:29 ` Claudiu Beznea
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1611653376-24168-3-git-send-email-claudiu.beznea@microchip.com \ --to=claudiu.beznea@microchip.com \ --cc=alexandre.belloni@bootlin.com \ --cc=devicetree@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=ludovic.desroches@microchip.com \ --cc=nicolas.ferre@microchip.com \ --cc=robh+dt@kernel.org \ --cc=sudeep.holla@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.