]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: ufs: pass device information to apply_dev_quirks
authorStanley Chu <stanley.chu@mediatek.com>
Sat, 11 Jan 2020 07:11:46 +0000 (15:11 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 16 Jan 2020 03:23:13 +0000 (22:23 -0500)
commitc40ad6b7fcd35bc4d36db820c7737e1aa18d5d41
tree002a24f2db8a09d565cf9ecd0c820f2f97acb7ff
parent43622697117c39357a3fecf849416df181ce4621
scsi: ufs: pass device information to apply_dev_quirks

Pass UFS device information to vendor-specific variant callback
"apply_dev_quirks" because some platform vendors need to know such
information to apply special handling or quirks in specific devices.

At the same time, modify existing vendor implementations according to the
new interface for those vendor drivers which will be built-in or built as a
module alone with UFS core driver.

[mkp: clarified commit desc]

Cc: Alim Akhtar <alim.akhtar@samsung.com>
Cc: Asutosh Das <asutoshd@codeaurora.org>
Cc: Avri Altman <avri.altman@wdc.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Bean Huo <beanhuo@micron.com>
Cc: Can Guo <cang@codeaurora.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/1578726707-6596-2-git-send-email-stanley.chu@mediatek.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-qcom.c
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h