Skip to content

Split the ufshcd.h header file

Bart Van Assche linux-scsi 3 versions – Applied

Status from this message: Applied to 5.19/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest28 patches 3 repliesApplied
  2. v229 patches 14 repliesSuperseded
  3. v129 patches 71 repliesSuperseded

Changes in v3 from the cover letter

* Dropped patch 29, the patch that splits the drivers/scsi/ufs directory.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/28scsi: ufs: Fix a spelling error in a source code commentdrivers/scsi/ufs/unipro.h+1 -10 replies
2/28scsi: ufs: Declare ufshcd_wait_for_register() staticdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+1 -40 replies
3/28scsi: ufs: Remove superfluous boolean conversionsdrivers/scsi/ufs/ufs-qcom.c drivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+6 -80 replies
4/28scsi: ufs: Simplify statements that return a booleandrivers/scsi/ufs/ufs-qcom.h drivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshpb.c+8 -270 replies
5/28scsi: ufs: Remove ufshcd_lrb.sense_bufflendrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+0 -50 replies
6/28scsi: ufs: Remove ufshcd_lrb.sense_bufferdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+4 -70 replies
7/28scsi: ufs: Use get_unaligned_be16() instead of be16_to_cpup()drivers/scsi/ufs/ufshcd.c+1 -10 replies
8/28scsi: ufs: Remove the UFS_FIX() and END_FIX() macrosdrivers/scsi/ufs/ufs-mediatek.c drivers/scsi/ufs/ufs_quirks.h drivers/scsi/ufs/ufshcd.c+32 -320 replies
9/28scsi: ufs: Rename struct ufs_dev_fix into ufs_dev_quirkdrivers/scsi/ufs/ufs-mediatek.c drivers/scsi/ufs/ufs_quirks.h drivers/scsi/ufs/ufshcd.c +1 more+7 -70 replies
10/28scsi: ufs: Declare the quirks array constdrivers/scsi/ufs/ufs-mediatek.c drivers/scsi/ufs/ufs_quirks.h drivers/scsi/ufs/ufshcd.c +1 more+8 -60 replies
11/28scsi: ufs: Invert the return value of ufshcd_is_hba_active()drivers/scsi/ufs/ufshcd.c+4 -50 replies
12/28scsi: ufs: Remove unused constants and codedrivers/scsi/ufs/ufs.h drivers/scsi/ufs/ufshcd.c+3 -370 replies
13/28scsi: ufs: Switch to aggregate initializationdrivers/scsi/ufs/ufshcd-pltfrm.c+14 -120 replies
14/28scsi: ufs: Make the config_scaling_param calls type safedrivers/scsi/ufs/ufs-qcom.c drivers/scsi/ufs/ufshcd.h+9 -150 replies
15/28scsi: ufs: Remove the driver versiondrivers/scsi/ufs/cdns-pltfrm.c drivers/scsi/ufs/ufshcd-pci.c drivers/scsi/ufs/ufshcd-pltfrm.c +2 more+0 -50 replies
16/28scsi: ufs: Rename sdev_ufs_device into ufs_device_wlundrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+32 -350 replies
17/28scsi: ufs: Use an SPDX license identifier in the Kconfig filedrivers/scsi/ufs/Kconfig+1 -240 replies
18/28scsi: ufs: Remove paths from source code commentsdrivers/scsi/ufs/Kconfig drivers/scsi/ufs/ufshcd-pci.c drivers/scsi/ufs/unipro.h+0 -40 replies
19/28scsi: ufs: Remove the TRUE and FALSE definitionsdrivers/scsi/ufs/ufs-exynos.c drivers/scsi/ufs/ufs-exynos.h drivers/scsi/ufs/ufshcd.c +1 more+10 -240 replies
20/28scsi: ufs: Remove locking from around single register writesdrivers/scsi/ufs/ufs-mediatek.c drivers/scsi/ufs/ufshcd.c+0 -120 replies
21/28scsi: ufs: Introduce ufshcd_clkgate_delay_set()drivers/scsi/ufs/ufs-mediatek.c drivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+16 -90 replies
22/28scsi: ufs: qcom: Fix ufs_qcom_resume()drivers/scsi/ufs/ufs-qcom.c+1 -60 replies
23/28scsi: ufs: Remove unnecessary ufshcd-crypto.h include directivesdrivers/scsi/ufs/ufs-mediatek.c drivers/scsi/ufs/ufs-qcom-ice.c drivers/scsi/ufs/ufs-qcom.h+1 -20 replies
24/28scsi: ufs: Fix kernel-doc syntax in ufshcd.hdrivers/scsi/ufs/ufshcd.h+68 -210 replies
25/28scsi: ufs: Minimize #include directivesdrivers/scsi/ufs/cdns-pltfrm.c drivers/scsi/ufs/tc-dwc-g210-pci.c drivers/scsi/ufs/tc-dwc-g210-pltfrm.c +20 more+56 -380 replies
26/28scsi: ufs: Split the ufshcd.h header filedrivers/scsi/ufs/ufs-debugfs.c drivers/scsi/ufs/ufs-hwmon.c drivers/scsi/ufs/ufs-sysfs.c +6 more+287 -2250 replies
27/28scsi: ufs: Move the struct ufs_ref_clk definitiondrivers/scsi/ufs/ufs.h drivers/scsi/ufs/ufshcd.c+5 -50 replies
28/28scsi: ufs: Move the ufs_is_valid_unit_desc_lun() definitiondrivers/scsi/ufs/ufs.h drivers/scsi/ufs/ufshcd-priv.h+19 -190 replies

Reviews trailers per patch

24 of 28 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAvri AltmanBean HuoBjorn AnderssonKeoseong ParkStanley ChuEric Biggers
SeriesR-b T-b
1/28R-b
2/28R-b R-b
3/28R-b R-b
4/28R-b R-b
5/28R-b R-b
6/28R-b
7/28R-b
8/28R-b
9/28R-b
10/28R-b
11/28R-b
12/28R-b
13/28R-b
14/28R-b
15/28R-b R-b
16/28R-b
17/28
18/28R-b
19/28R-b
20/28R-b
21/28R-b
22/28R-b
23/28R-b
24/28R-b
25/28
26/28
27/28R-b
28/28

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/28] Split the ufshcd.h header file

Hi Martin,

This patch series includes the following changes:
- Split the ufshcd.h header file into two header files - one file that defines the interface with UFS drivers and another file with definitions only used in the core.
- Multiple source code cleanup patches.
- A few patches with minor functional changes.

Please consider these changes for kernel v5.19.

Thanks,

Bart.

Changes compared to v2:
* Dropped patch 29, the patch that splits the drivers/scsi/ufs directory.

Changes compared to v1:
* Added a new patch with a source code comment spelling fix.
* Included a HPB change in patch "Simplify statements that return a boolean".
* Removed a superfluous test from patch "Remove ufshcd_lrb.sense_buffer".
* Dropped patch "Remove the LUN quiescing code from ufshcd_wl_shutdown()".
* Fixed indentation in patch "Make the config_scaling_param calls type safe".
* Improved the description of patch "Remove locking from around single register writes".
* Modified patch "Minimize #include directives" such that the current order of #include directives is preserved.
* Fixed support for CONFIG_SCSI_UFS_HWMON=n in patch "Split the ufshcd.h header file".
* In patch "Split the drivers/scsi/ufs directory", moved the UFS source files from drivers/scsi/ufs/ into drivers/ufs/.
Bart Van Assche (28):
scsi: ufs: Fix a spelling error in a source code comment
scsi: ufs: Declare ufshcd_wait_for_register() static
scsi: ufs: Remove superfluous boolean conversions
scsi: ufs: Simplify statements that return a boolean
scsi: ufs: Remove ufshcd_lrb.sense_bufflen
scsi: ufs: Remove ufshcd_lrb.sense_buffer
scsi: ufs: Use get_unaligned_be16() instead of be16_to_cpup()
scsi: ufs: Remove the UFS_FIX() and END_FIX() macros
scsi: ufs: Rename struct ufs_dev_fix into ufs_dev_quirk
scsi: ufs: Declare the quirks array const
scsi: ufs: Invert the return value of ufshcd_is_hba_active()
scsi: ufs: Remove unused constants and code
scsi: ufs: Switch to aggregate initialization
scsi: ufs: Make the config_scaling_param calls type safe
scsi: ufs: Remove the driver version
scsi: ufs: Rename sdev_ufs_device into ufs_device_wlun
scsi: ufs: Use an SPDX license identifier in the Kconfig file
scsi: ufs: Remove paths from source code comments
scsi: ufs: Remove the TRUE and FALSE definitions
scsi: ufs: Remove locking from around single register writes
scsi: ufs: Introduce ufshcd_clkgate_delay_set()
scsi: ufs: qcom: Fix ufs_qcom_resume()
scsi: ufs: Remove unnecessary ufshcd-crypto.h include directives
scsi: ufs: Fix kernel-doc syntax in ufshcd.h
scsi: ufs: Minimize #include directives
scsi: ufs: Split the ufshcd.h header file
scsi: ufs: Move the struct ufs_ref_clk definition
scsi: ufs: Move the ufs_is_valid_unit_desc_lun() definition

 drivers/scsi/ufs/Kconfig              |  26 +-
 drivers/scsi/ufs/cdns-pltfrm.c        |   2 +-
 drivers/scsi/ufs/tc-dwc-g210-pci.c    |   1 +
 drivers/scsi/ufs/tc-dwc-g210-pltfrm.c |   1 +
 drivers/scsi/ufs/tc-dwc-g210.c        |   2 +
 drivers/scsi/ufs/tc-dwc-g210.h        |   2 +
 drivers/scsi/ufs/ufs-debugfs.c        |   1 +
 drivers/scsi/ufs/ufs-exynos.c         |   5 +-
 drivers/scsi/ufs/ufs-exynos.h         |   8 +-
 drivers/scsi/ufs/ufs-hisi.c           |   2 +
 drivers/scsi/ufs/ufs-hwmon.c          |   1 +
 drivers/scsi/ufs/ufs-mediatek.c       |  31 +--
 drivers/scsi/ufs/ufs-qcom-ice.c       |   2 +-
 drivers/scsi/ufs/ufs-qcom.c           |  28 +-
 drivers/scsi/ufs/ufs-qcom.h           |   6 +-
 drivers/scsi/ufs/ufs-sysfs.c          |   1 +
 drivers/scsi/ufs/ufs-sysfs.h          |   3 +-
 drivers/scsi/ufs/ufs.h                |  35 ---
 drivers/scsi/ufs/ufs_bsg.c            |   6 +
 drivers/scsi/ufs/ufs_bsg.h            |   7 +-
 drivers/scsi/ufs/ufs_quirks.h         |  15 +-
 drivers/scsi/ufs/ufshcd-crypto.h      |   5 +-
 drivers/scsi/ufs/ufshcd-dwc.c         |   2 +
 drivers/scsi/ufs/ufshcd-dwc.h         |   2 +
 drivers/scsi/ufs/ufshcd-pci.c         |   4 +-
 drivers/scsi/ufs/ufshcd-pltfrm.c      |  28 +-
 drivers/scsi/ufs/ufshcd-priv.h        | 298 +++++++++++++++++++++
 drivers/scsi/ufs/ufshcd.c             | 232 ++++++++--------
 drivers/scsi/ufs/ufshcd.h             | 368 ++++++--------------------
 drivers/scsi/ufs/ufshci.h             |   2 +
 drivers/scsi/ufs/ufshpb.c             |  14 +-
 drivers/scsi/ufs/unipro.h             |  18 +-
 32 files changed, 578 insertions(+), 580 deletions(-)
 create mode 100644 drivers/scsi/ufs/ufshcd-priv.h