[PATCH v2 0/2] ufs: mcq: Fix and cleanup unsafe macros

Minwoo Im posted 2 patches 1 year, 9 months ago
drivers/ufs/core/ufs-mcq.c | 35 ++++++++++++++---------------------
include/ufs/ufshcd.h       | 13 +++++++++++++
2 files changed, 27 insertions(+), 21 deletions(-)
[PATCH v2 0/2] ufs: mcq: Fix and cleanup unsafe macros
Posted by Minwoo Im 1 year, 9 months ago
Hello,

This patch set fixes an potential bug for further usages in ufs-mcq.c and
contains a simple clean-up converting macro to an inline function.

Please review.

Thanks,

v2:
  - Fix missing argument 'hba' in MCQ_OPR_OFFSET_n by converting it to an
    inline function (Bart)
  - Added [2/2] patch to convert the remaining one macro in ufs-mcq.c to an
    inline function along with the previous patch for the sake of consistency.

Minwoo Im (2):
  ufs: mcq: Fix missing argument 'hba' in MCQ_OPR_OFFSET_n
  ufs: mcq: Convert MCQ_CFG_n to a inline function

 drivers/ufs/core/ufs-mcq.c | 35 ++++++++++++++---------------------
 include/ufs/ufshcd.h       | 13 +++++++++++++
 2 files changed, 27 insertions(+), 21 deletions(-)

-- 
2.34.1
Re: [PATCH v2 0/2] ufs: mcq: Fix and cleanup unsafe macros
Posted by Martin K. Petersen 1 year, 8 months ago
Minwoo,

> This patch set fixes an potential bug for further usages in ufs-mcq.c
> and contains a simple clean-up converting macro to an inline function.

Applied to 6.11/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering