Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 26 Apr 2023 22:39:25 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 26 Apr 2023 22:39:25 +0000 (15:39 -0700)
Pull SCSI updates from James Bottomley:
 "Updates to the usual drivers (megaraid_sas, scsi_debug, lpfc, target,
  mpi3mr, hisi_sas, arcmsr).

  The major core change is the constification of the host templates
  (which touches everything) along with other minor fixups and clean
  ups"

* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (207 commits)
  scsi: ufs: mcq: Use pointer arithmetic in ufshcd_send_command()
  scsi: ufs: mcq: Annotate ufshcd_inc_sq_tail() appropriately
  scsi: cxlflash: s/semahpore/semaphore/
  scsi: lpfc: Silence an incorrect device output
  scsi: mpi3mr: Use IRQ save variants of spinlock to protect chain frame allocation
  scsi: scsi_debug: Fix missing error code in scsi_debug_init()
  scsi: hisi_sas: Work around build failure in suspend function
  scsi: lpfc: Fix ioremap issues in lpfc_sli4_pci_mem_setup()
  scsi: mpt3sas: Fix an issue when driver is being removed
  scsi: mpt3sas: Remove HBA BIOS version in the kernel log
  scsi: target: core: Fix invalid memory access
  scsi: scsi_debug: Drop sdebug_queue
  scsi: scsi_debug: Only allow sdebug_max_queue be modified when no shosts
  scsi: scsi_debug: Use scsi_host_busy() in delay_store() and ndelay_store()
  scsi: scsi_debug: Use blk_mq_tagset_busy_iter() in stop_all_queued()
  scsi: scsi_debug: Use blk_mq_tagset_busy_iter() in sdebug_blk_mq_poll()
  scsi: scsi_debug: Dynamically allocate sdebug_queued_cmd
  scsi: scsi_debug: Use scsi_block_requests() to block queues
  scsi: scsi_debug: Protect block_unblock_all_queues() with mutex
  scsi: scsi_debug: Change shost list lock to a mutex
  ...

14 files changed:
1  2 
drivers/ata/ahci_imx.c
drivers/ata/ahci_mtk.c
drivers/ata/libahci_platform.c
drivers/ata/pata_ixp4xx_cf.c
drivers/ata/pata_macio.c
drivers/ata/pata_parport/pata_parport.c
drivers/ata/sata_dwc_460ex.c
drivers/scsi/iscsi_tcp.c
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/mpi3mr/mpi3mr_fw.c
drivers/scsi/qla2xxx/qla_os.c
drivers/ufs/core/ufshcd.c
drivers/vhost/scsi.c
include/ufs/ufshcd.h

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -8392,22 -8430,6 +8423,21 @@@ static int ufshcd_add_lus(struct ufs_hb
        if (ret)
                goto out;
  
-               memcpy(&hba->clk_scaling.saved_pwr_info.info,
 +      /* Initialize devfreq after UFS device is detected */
 +      if (ufshcd_is_clkscaling_supported(hba)) {
-               hba->clk_scaling.saved_pwr_info.is_valid = true;
++              memcpy(&hba->clk_scaling.saved_pwr_info,
 +                      &hba->pwr_info,
 +                      sizeof(struct ufs_pa_layer_attr));
 +              hba->clk_scaling.is_allowed = true;
 +
 +              ret = ufshcd_devfreq_init(hba);
 +              if (ret)
 +                      goto out;
 +
 +              hba->clk_scaling.is_enabled = true;
 +              ufshcd_init_clk_scaling_sysfs(hba);
 +      }
 +
        ufs_bsg_probe(hba);
        ufshpb_init(hba);
        scsi_scan_host(hba->host);
Simple merge
Simple merge