mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Re-use device management code fragments
@ 2024-03-09  8:10 Avri Altman
  2024-03-09  8:10 ` [PATCH v3 1/4] scsi: ufs: Re-use device management locking code Avri Altman
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Avri Altman @ 2024-03-09  8:10 UTC (permalink / raw)
  To: James E . J . Bottomley, Martin K . Petersen
  Cc: Bart Van Assche, Bean Huo, linux-scsi, linux-kernel, Avri Altman

v2->v3:
 - 2/4 - Clarify commit log (Bean)
 - 4/4 - pass cmd_type to ufshcd_prepare_req_desc_hdr (Bean)

v1->v2:
 - Attend Bart's comments


Device management commands are constructed for query commands that are
being issued by the driver, but also for raw device management commands
originated by the bsg module, and recently, by the advanced rpmb
handler. Thus, the same code fragments, e.g. locking, composing the
command, composing the upiu etc., appear over and over. Remove those
duplications.  Theoretically, there should be no functional change.

Avri Altman (4):
  scsi: ufs: Re-use device management locking code
  scsi: ufs: Re-use exec_dev_cmd
  scsi: ufs: Re-use compose_dev_cmd
  scsi: ufs: Re-use compose_devman_upiu

 drivers/ufs/core/ufshcd.c | 204 ++++++++++++++++----------------------
 include/ufs/ufshci.h      |   2 +-
 2 files changed, 87 insertions(+), 119 deletions(-)

-- 
2.42.0


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

end of thread, other threads:[~2024-03-25 20:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-09  8:10 [PATCH v3 0/4] Re-use device management code fragments Avri Altman
2024-03-09  8:10 ` [PATCH v3 1/4] scsi: ufs: Re-use device management locking code Avri Altman
2024-03-09  8:11 ` [PATCH v3 2/4] scsi: ufs: Re-use exec_dev_cmd Avri Altman
2024-03-11 18:35   ` Bart Van Assche
2024-03-12 15:33   ` Bean Huo
2024-03-09  8:11 ` [PATCH v3 3/4] scsi: ufs: Re-use compose_dev_cmd Avri Altman
2024-03-09  8:11 ` [PATCH v3 4/4] scsi: ufs: Re-use compose_devman_upiu Avri Altman
2024-03-11 18:36   ` Bart Van Assche
2024-03-12 15:34   ` Bean Huo
2024-03-23 10:06 ` [PATCH v3 0/4] Re-use device management code fragments Avri Altman
2024-03-25 20:52 ` 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

all inboxes | Powered by JetHome®