Re: [PATCH 2/2] scsi: ufs: core: Add support to retrieve and store TX Equalization settings

From: Bart Van Assche

Date: Mon Apr 20 2026 - 13:03:20 EST


On 4/19/26 6:52 AM, Can Guo wrote:
+#define TX_EQ_DEVICE_PRESHOOT_DECODE(eq, lane) \
+ (((eq) >> ((lane) * TX_HS_PRESHOOT_SHIFT)) & TX_EQ_SETTING_MASK)
+#define TX_EQ_DEVICE_DEEMPHASIS_DECODE(eq, lane) \
+ (((eq) >> ((lane) * TX_HS_DEEMPHASIS_SHIFT + 16)) & TX_EQ_SETTING_MASK)

Please convert these two macros and also all the other new macros in
this patch that accept arguments into inline functions.

Thanks,

Bart.