Linux CXL
 help / color / mirror / Atom feed
* [PATCH] cxl: Fix double shift of CXL_FW_CANCEL
@ 2023-07-12 16:42 Davidlohr Bueso
  2023-07-12 17:39 ` Verma, Vishal L
  2023-07-12 17:59 ` Dave Jiang
  0 siblings, 2 replies; 4+ messages in thread
From: Davidlohr Bueso @ 2023-07-12 16:42 UTC (permalink / raw)
  To: dan.j.williams
  Cc: vishal.l.verma, jonathan.cameron, fan.ni, dave.jiang,
	a.manzanares, dave, linux-cxl

Directly use the bit number for bitops, which already has a shift
built in. This bug is benign as its done consistently and it doesn't
clash with any other flags.

Fixes: 9521875bbe00 ("cxl: add a firmware update mechanism using the sysfs firmware loader")
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
---
 drivers/cxl/cxlmem.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h
index 79e99c873ca2..499113328586 100644
--- a/drivers/cxl/cxlmem.h
+++ b/drivers/cxl/cxlmem.h
@@ -323,7 +323,7 @@ struct cxl_mbox_activate_fw {
 
 /* FW state bits */
 #define CXL_FW_STATE_BITS		32
-#define CXL_FW_CANCEL		BIT(0)
+#define CXL_FW_CANCEL			0
 
 /**
  * struct cxl_fw_state - Firmware upload / activation state
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-12 18:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 16:42 [PATCH] cxl: Fix double shift of CXL_FW_CANCEL Davidlohr Bueso
2023-07-12 17:39 ` Verma, Vishal L
2023-07-12 18:02   ` Davidlohr Bueso
2023-07-12 17:59 ` Dave Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox