]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Convert a comment into an explicit check
authorBart Van Assche <bvanassche@acm.org>
Wed, 16 Oct 2024 20:12:01 +0000 (13:12 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2024 19:30:21 +0000 (15:30 -0400)
commit0936001322646a15d7091f61232e5ded9bf1883f
tree37ea3ed0c6a151f3972467c16c75dc66f8f6df04
parent18ec23b60822fb52ae1f1f3a08df29289458b087
scsi: ufs: core: Convert a comment into an explicit check

The comment /* UFSHCD_QUIRK_REINIT_AFTER_MAX_GEAR_SWITCH is set */ is
only correct if ufshcd_device_init() is only called by
ufshcd_probe_hba().  Convert the comment into an explicit check. This
patch prepares for moving the ufshcd_device_init() calls.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20241016201249.2256266-6-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c