linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] scsi: ufs: pass device information to apply_dev_quirks
@ 2020-01-11  7:11 Stanley Chu
  2020-01-11  7:11 ` [PATCH v3 1/2] " Stanley Chu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stanley Chu @ 2020-01-11  7:11 UTC (permalink / raw)
  To: linux-scsi, martin.petersen, avri.altman, alim.akhtar, jejb
  Cc: beanhuo, asutoshd, cang, matthias.bgg, bvanassche,
	linux-mediatek, linux-arm-kernel, linux-kernel, kuohong.wang,
	peter.wang, chun-hung.wu, andy.teng, Stanley Chu

Currently UFS driver has "global" device quirk scheme to allow driver applying
special handling for certain UFS devive models.

However some special device handlings are required for specific UFS hosts only
so it is better to make it happen in vendor's callbacks only to not "pollute"
common driver and common device quirks.

We already have apply_dev_quirks variant callback for vendors but lack of device
information for handling specific UFS device models. This series provides such
information to apply_dev_quirks callbacks, and applies related modifications.

In patch 1, since QCOM vendor driver will be built by default as a module, UFS
core driver and vendor driver can not be split to different patches, otherwise
separated patches will not be built singly.

v2 -> v3
    - Fix ufshcd_tune_unipro_params()'s users to have correct parameters for invoking.
    - Rebase to Martin's latest queue branch.

v1 -> v2
    - Squash patch 1 "scsi: ufs: pass device information to apply_dev_quirks" and patch 2 "scsi: ufs-qcom: modify apply_dev_quirks interface" to resolve build issue.

Stanley Chu (2):
  scsi: ufs: pass device information to apply_dev_quirks
  scsi: ufs-mediatek: add apply_dev_quirks variant operation

 drivers/scsi/ufs/ufs-mediatek.c | 11 +++++++++++
 drivers/scsi/ufs/ufs-qcom.c     |  3 ++-
 drivers/scsi/ufs/ufshcd.c       |  8 ++++----
 drivers/scsi/ufs/ufshcd.h       |  7 ++++---
 4 files changed, 21 insertions(+), 8 deletions(-)

-- 
2.18.0

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

end of thread, other threads:[~2020-02-20  1:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11  7:11 [PATCH v3 0/2] scsi: ufs: pass device information to apply_dev_quirks Stanley Chu
2020-01-11  7:11 ` [PATCH v3 1/2] " Stanley Chu
2020-02-17 12:20   ` Can Guo
2020-02-18  7:02     ` Stanley Chu
2020-02-20  1:36       ` Can Guo
2020-01-11  7:11 ` [PATCH v3 2/2] scsi: ufs-mediatek: add apply_dev_quirks variant operation Stanley Chu
2020-01-16  3:24 ` [PATCH v3 0/2] scsi: ufs: pass device information to apply_dev_quirks Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).