Skip to content
Permalink
Chandrakanth-P…
Switch branches/tags

Commits on May 22, 2021

  1. megaraid_sas: Update driver version to 07.717.02.00-rc1

    Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    cp890582 authored and intel-lab-lkp committed May 22, 2021
  2. megaraid_sas: Handle missing interrupts while re-enabling IRQs

    While reenabling the IRQ after irq poll there may be a small window for
    the firmware to post the replies with interrupts raised. In that case,
    driver will not see the interrupts which lead to IOs timeout.
    
    This issue hits only when there is a high IOs completion on a single reply
    queue, which forces the driver to switch between the interrupt and IRQ
    context.
    
    To fix this, driver will process the reply queue one more time after
    enabling the IRQ.
    
    Link: https://lore.kernel.org/linux-scsi/20201102072746.27410-1-sreekanth.reddy@broadcom.com/
    Cc: Tomas Henzl <thenzl@redhat.com>
    Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
    cp890582 authored and intel-lab-lkp committed May 22, 2021
  3. megaraid_sas: Early detection of VD deletion through RaidMap update

    Consider in a case, when a VD is deleted and the targetID of
    that VD is assigned to a newly created VD. If the sequence of
    deletion/addition of VD happens very quickly, there is a possibility
    that second event(VD add) occurs even before the driver processes the
    first event(VD delete).
    As event processing is done in deferred context the device list
    remains same(but targetID is re-used) so driver will not learn the
    VD deletion/additon and IOs meant for older VD will be directed to
    new VD which may lead to data corruption.
    
    In new design, driver will detect the deleted VD as soon as possible
    based on the RaidMap update and blocks further IOs to that device.
    
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
    Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    cp890582 authored and intel-lab-lkp committed May 22, 2021
  4. megaraid_sas: Fix the resource leak in case of probe failure

    Driver doesn't cleanup all the allocated resources properly when
    scsi_add_host(),megasas_start_aen() function fails during the PCI
    device probe.
    This patch will cleanup all those resources.
    
    Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
    cp890582 authored and intel-lab-lkp committed May 22, 2021
  5. megaraid_sas: Send all non-RW IOs for TYPE_ENCLOSURE device through f…

    …irmware
    
    Driver issues all non-ReadWrite IOs for TYPE_ENCLOSURE devices through
    the fast path with invalid dev handle and fast path inturn directs all
    the IOs to the firmware. As firmware stopped handling those IOs from
    SAS3.5 generation of controllers (Ventura and its onward generations)
    lead to IOs failure.
    
    The driver will issue all the non-ReadWrite IOs for TYPE_ENCLOSURE devices
    directly to firmware from SAS3.5 generation of controllers.
    
    Cc: <stable@vger.kernel.org> # v5.11+
    Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
    Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
    cp890582 authored and intel-lab-lkp committed May 22, 2021
  6. scsi: core: Cap scsi_host cmd_per_lun at can_queue

    The sysfs handling function sdev_store_queue_depth() enforces that the sdev
    queue depth cannot exceed shost can_queue. The initial sdev queue depth
    comes from shost cmd_per_lun. However, the LLDD may manually set
    cmd_per_lun to be larger than can_queue, which leads to an initial sdev
    queue depth greater than can_queue.
    
    Such an issue was reported in [0], which caused a hang. That has since been
    fixed in commit fc09acb ("scsi: scsi_debug: Fix cmd_per_lun, set to
    max_queue").
    
    Stop this possibly happening for other drivers by capping shost cmd_per_lun
    at shost can_queue.
    
    [0] https://lore.kernel.org/linux-scsi/YHaez6iN2HHYxYOh@T590/
    
    Link: https://lore.kernel.org/r/1621434662-173079-1-git-send-email-john.garry@huawei.com
    Reviewed-by: Ming Lei <ming.lei@redhat.com>
    Reviewed-by: Bart Van Assche <bvanassche@acm.org>
    Signed-off-by: John Garry <john.garry@huawei.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    johnpgarry authored and martinkpetersen committed May 22, 2021
  7. scsi: lpfc: Update lpfc version to 12.8.0.10

    Update lpfc version to 12.8.0.10
    
    Link: https://lore.kernel.org/r/20210514195559.119853-12-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  8. scsi: lpfc: Reregister FPIN types if ELS_RDF is received from fabric …

    …controller
    
    FC-LS-5 specifies that a received RDF implies a possible change to fabric
    supported diagnostic functions. Endpoints are to re-perform the RDF
    exchange with the fabric to enable possible new features or adapt to
    changes in values.
    
    This patch adds the logic to RDF receive to re-perform the RDF exchange
    with the switch.
    
    Link: https://lore.kernel.org/r/20210514195559.119853-11-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  9. scsi: lpfc: Add a option to enable interlocked ABTS before job comple…

    …tion
    
    Default behavior for the driver, when aborting an I/O, is to terminate the
    I/O with the adapter. The adapter will initiate an ABTS to terminate the
    exchange on the link and mark the exchange is terminated so that no further
    use of the sgl or any traffic for the exchange is worked on. Completion on
    the Abort is then posted to the driver, which as the I/O is terminated can
    complete the I/O to the OS. This completion may occur prior to the ABTS
    handshake completing on the wire. The ABTS handshake can take a long time
    to complete with timeouts and retries reaching 60+ seconds. Note: if
    retries fail, LOGO occurs.
    
    Some devices want to ensure that the ABTS handshake fully completes (this
    device has fully ack'd it) before the I/O completion is posted back to the
    OS, where a failed I/O may be retried via a different path.
    
    To support this behavior, an option was added to the driver to change I/O
    completion from the Abort cmd completion to the Exchange termination (aka
    ABTS) completion.
    
    Link: https://lore.kernel.org/r/20210514195559.119853-10-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  10. scsi: lpfc: Fix crash when lpfc_sli4_hba_setup() fails to initialize …

    …the SGLs
    
    The driver is encountering a crash in lpfc_free_iocb_list() while
    performing initial attachment.
    
    Code review found this to be an errant failure path that was taken, jumping
    to a tag that then referenced structures that were uninitialized.
    
    Fix the failure path.
    
    Link: https://lore.kernel.org/r/20210514195559.119853-9-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  11. scsi: lpfc: Ignore GID-FT response that may be received after a link …

    …flip
    
    When a link bounce happens, there is a possibility that responses to
    requests posted prior to the link bounce could be received. This is
    problematic as the counter to track reglogin completion after link up can
    become out of sync with the real state.
    
    As there is no reason to process a request made in a prior link up context,
    eliminate all the disturbance by tagging the request with the event_tag
    maintained by the SLI Port for the link. The event_tag will change on every
    link state transition.  As long as the tag matches the current event_tag,
    the response can be processed. If it doesn't match, just discard the
    response.
    
    Link: https://lore.kernel.org/r/20210514195559.119853-8-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  12. scsi: lpfc: Fix node handling for Fabric Controller and Domain Contro…

    …ller
    
    During link bounce testing, RPI counts were seen to differ from the number
    of nodes. For fabric and domain controllers, a temporary RPI is assigned,
    but the code isn't registering it. If the nodes do go away, such as on link
    down, the temporary RPI isn't being released.
    
    Change the way these two fabric services are managed, make them behave like
    any other remote port. Register the RPI and register with the transport.
    Never leave the nodes in a NPR or UNUSED state where their RPI is in limbo.
    This allows them to follow normal dev_loss_tmo handling, RPI refcounting,
    and normal removal rules. It also allows fabric I/Os to use the RPI for
    traffic requests.
    
    Note: There is some logic that still has a couple of exceptions when the
    Domain controller (0xfffcXX). There are cases where the fabric won't have a
    valid login but will send RDP. Other times, it will it send a LOGO then an
    RDP. It makes for ad-hoc behavior to manage the node. Exceptions are
    documented in the code.
    
    Link: https://lore.kernel.org/r/20210514195559.119853-7-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  13. scsi: lpfc: Fix Node recovery when driver is handling simultaneous PL…

    …OGIs
    
    When lpfc is handling a solicited and unsolicited PLOGI with another
    initiator, the remote initiator is never recovered. The node for the
    initiator is erroneouosly removed and all resources released.
    
    In lpfc_cmpl_els_plogi(), when lpfc_els_retry() returns a failure code, the
    driver is calling the state machine with a device remove event because the
    remote port is not currently registered with the SCSI or NVMe
    transports. The issue is that on a PLOGI "collision" the driver correctly
    aborts the solicited PLOGI and allows the unsolicited PLOGI to complete the
    process, but this process is interrupted with a device_rm event.
    
    Introduce logic in the PLOGI completion to capture the PLOGI collision
    event and jump out of the routine.  This will avoid removal of the node.
    If there is no collision, the normal node removal will occur.
    
    Fixes: 	52edb2c ("scsi: lpfc: Remove ndlp when a PLOGI/ADISC/PRLI/REG_RPI ultimately fails")
    Cc: <stable@vger.kernel.org> # v5.11+
    Link: https://lore.kernel.org/r/20210514195559.119853-6-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  14. scsi: lpfc: Add ndlp kref accounting for resume RPI path

    The driver is crashing due to a bad pointer during driver load due in an
    adisc acc receive routine. The driver is missing node get/put in the
    mbx_resume_rpi paths.
    
    Fix by adding the proper gets and puts into the resume_rpi path.
    
    Link: https://lore.kernel.org/r/20210514195559.119853-5-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  15. scsi: lpfc: Fix "Unexpected timeout" error in direct attach topology

    An 'unexpected timeout' message may be seen in a point-2-point topology.
    The message occurs when a PLOGI is received before the driver is notified
    of FLOGI completion. The FLOGI completion failure causes discovery to be
    triggered for a second time. The discovery timer is restarted but no new
    discovery activity is initiated, thus the timeout message eventually
    appears.
    
    In point-2-point, when discovery has progressed before the FLOGI completion
    is processed, it is not a failure. Add code to FLOGI completion to detect
    that discovery has progressed and exit the FLOGI handling (noop'ing it).
    
    Link: https://lore.kernel.org/r/20210514195559.119853-4-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  16. scsi: lpfc: Fix non-optimized ERSP handling

    When processing an NVMe ERSP IU which didn't match the optimized CQE-only
    path, the status was being left to the WQE status. WQE status is non-zero
    as it is indicating a non-optimized completion that needs to be handled by
    the driver.
    
    Fix by clearing the status field when falling into the non-optimized
    case. Log message added to track optimized vs non-optimized debug.
    
    Link: https://lore.kernel.org/r/20210514195559.119853-3-jsmart2021@gmail.com
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  17. scsi: lpfc: Fix unreleased RPIs when NPIV ports are created

    While testing NPIV and watching logins and used RPI levels, it was seen the
    used RPI count was much higher than the number of remote ports discovered.
    
    Code inspection showed that remote port removals on any NPIV instance are
    releasing the RPI, but not performing an UNREG_RPI with the adapter thus
    the reference counting never fully drops and the RPI is never fully
    released. This was happening on NPIV nodes due to a log of fabric ELS's to
    fabric addresses. This lack of UNREG_RPI was introduced by a prior node
    rework patch that performed the UNREG_RPI as part of node cleanup.
    
    To resolve the issue, do the following:
    
     - Restore the RPI release code, but move the location to so that it is in
       line with the new node cleanup design.
    
     - NPIV ports now release the RPI and drop the node when the caller sets
       the NLP_RELEASE_RPI flag.
    
     - Set the NLP_RELEASE_RPI flag in node cleanup which will trigger a
       release of RPI to free pool.
    
     - Ensure there's an UNREG_RPI at LOGO completion so that RPI release is
       completed.
    
     - Stop offline_prep from skipping nodes that are UNUSED. The RPI may
       not have been released.
    
     - Stop the default RPI handling in lpfc_cmpl_els_rsp() for SLI4.
    
     - Fixed up debugfs RPI displays for better debugging.
    
    Fixes: a70e63e ("scsi: lpfc: Fix NPIV Fabric Node reference counting")
    Link: https://lore.kernel.org/r/20210514195559.119853-2-jsmart2021@gmail.com
    Cc: <stable@vger.kernel.org> # v5.11+
    Co-developed-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: Justin Tee <justin.tee@broadcom.com>
    Signed-off-by: James Smart <jsmart2021@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    jsmart-gh authored and martinkpetersen committed May 22, 2021
  18. scsi: scsi_dh_alua: Retry RTPG on a different path after failure

    If an RTPG fails, we can't infer anything wrt. the state of the ports in
    the port group except that we were unable to reach the one port on which
    the RTPG had failed. "offline" is just a secondary port state, which means
    that we can't infer the state of any port in the PG from the failure (in
    fact, even the failed port might still be in "active/optimized" primary
    port access state).
    
    Therefore, when we encounter an RTPG failure, we should retry the RTPG on a
    different port. This avoids falsely setting port states to offline for
    unreachable ports. To do this, ports on which an RTPG has failed are
    temporarily set to "disabled" to avoid repeating the failed I/O on the same
    target port. Once the RTPG has either succeeded on one port or failed on
    all ports of the PG, the ports are enabled again.
    
    Link: https://lore.kernel.org/r/20210514153214.5626-1-mwilck@suse.com
    Signed-off-by: Martin Wilck <mwilck@suse.com>
    Signed-off-by: Hannes Reinecke <hare@suse.de>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    mwilck authored and martinkpetersen committed May 22, 2021
  19. scsi: qla2xxx: Remove redundant assignment to rval

    Variable rval is set to QLA_SUCCESS but this value is never read as it is
    overwritten later on. Hence it is a redundant assignment and can be
    removed.
    
    Clean up the following clang-analyzer warning:
    
    drivers/scsi/qla2xxx/qla_init.c:4359:2: warning: Value stored to 'rval'
    is never read [clang-analyzer-deadcode.DeadStores].
    
    Link: https://lore.kernel.org/r/1620643206-127930-1-git-send-email-jiapeng.chong@linux.alibaba.com
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Jiapeng Chong authored and martinkpetersen committed May 22, 2021
  20. scsi: ufs: ufs-exynos: Make a const array static, makes object smaller

    Don't populate the const array granularity_tbl on the stack but instead
    make it static. Makes the object code smaller by 190 bytes:
    
    Before:
       text    data     bss     dec     hex filename
      25563    6908       0   32471    7ed7 ./drivers/scsi/ufs/ufs-exynos.o
    
    After:
       text    data     bss     dec     hex filename
      25213    7068       0   32281    7e19 ./drivers/scsi/ufs/ufs-exynos.o
    
    (gcc version 10.3.0)
    
    Link: https://lore.kernel.org/r/20210505190104.70112-1-colin.king@canonical.com
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Colin Ian King authored and martinkpetersen committed May 22, 2021
  21. scsi: fas216: Use fallthrough pseudo-keyword

    Replace /*FALLTHROUGH*/ comment with pseudo-keyword macro 'fallthrough'.
    
    Link: https://lore.kernel.org/r/20210518131823.2586-1-jj251510319013@gmail.com
    Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    AristoChen authored and martinkpetersen committed May 22, 2021
  22. scsi: ufs: core: Clean up whitespace

    checkpatch reports the following errors:
    
    	ERROR: space prohibited before that ',' (ctx:WxW)
    	#945: FILE: drivers/scsi/ufs/ufshcd.h:945:
    	+int ufshcd_init(struct ufs_hba * , void __iomem * , unsigned int);
    	                                  ^
    
    	ERROR: space prohibited before that ',' (ctx:WxW)
    	#945: FILE: drivers/scsi/ufs/ufshcd.h:945:
    	+int ufshcd_init(struct ufs_hba * , void __iomem * , unsigned int);
    	                                                   ^
    Remove unnecessary whitespace in ufshcd.h.
    
    Link: https://lore.kernel.org/r/2038148563.21621340102306.JavaMail.epsvc@epcpadp3
    Signed-off-by: Keoseong Park <keosung.park@samsung.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Keoseong Park authored and martinkpetersen committed May 22, 2021

Commits on May 21, 2021

  1. scsi: Fix spelling mistakes in header files

    Fix some spelling mistakes in comments:
    
      pathes ==> paths
      Resouce ==> Resource
      retreived ==> retrieved
      recevied ==> received
      interruped ==> interrupted
    
    [mkp: kept 'keep-alives' and 'busses']
    
    Link: https://lore.kernel.org/r/20210517095945.7363-1-thunder.leizhen@huawei.com
    Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Zhen Lei authored and martinkpetersen committed May 21, 2021
  2. scsi: core: Remove leading spaces in Kconfig

    Remove leading spaces before tabs in Kconfig file(s) by running the
    following command:
    
      $ find drivers/scsi -name 'Kconfig*' | xargs sed -r -i 's/^[ ]+\t/\t/'
    
    Link: https://lore.kernel.org/r/20210517095835.81733-1-juergh@canonical.com
    Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Juerg Haefliger authored and martinkpetersen committed May 21, 2021
  3. scsi: target: tcmu: Fix boolreturn.cocci warnings

    drivers/target/target_core_user.c:1424:9-10: WARNING: return of 0/1 in function 'tcmu_handle_completions' with return type bool
    
     Return statements in functions returning bool should use
     true/false instead of 1/0.
    
    Generated by: scripts/coccinelle/misc/boolreturn.cocci
    
    Link: https://lore.kernel.org/r/20210515230358.GA97544@60d1edce16e0
    Fixes: 9814b55 ("scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not found")
    CC: Bodo Stroesser <bostroesser@gmail.com>
    Reported-by: kernel test robot <lkp@intel.com>
    Acked-by: Bodo Stroesser <bostroesser@gmail.com>
    Signed-off-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    intel-lab-lkp authored and martinkpetersen committed May 21, 2021
  4. scsi: ufs: Use designated initializers in ufs_pm_lvl_states[]

    The comments in the enum ufs_pm_level definition are redundant. Remove the
    comments from the ufs_pm_level enum and use designated initializers in the
    ufs_pm_lvl_states[] definition instead.
    
    Link: https://lore.kernel.org/r/20210519202058.12634-3-bvanassche@acm.org
    Cc: Stanley Chu <stanley.chu@mediatek.com>
    Cc: Can Guo <cang@codeaurora.org>
    Cc: Bean Huo <beanhuo@micron.com>
    Cc: Jaegeuk Kim <jaegeuk@kernel.org>
    Cc: Asutosh Das <asutoshd@codeaurora.org>
    Signed-off-by: Bart Van Assche <bvanassche@acm.org>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    bvanassche authored and martinkpetersen committed May 21, 2021
  5. scsi: hisi_sas: Propagate errors in interrupt_init_v1_hw()

    After commit 6c11dc0 ("scsi: hisi_sas: Fix IRQ checks") we have the
    error codes returned by platform_get_irq() ready for the propagation
    upsream in interrupt_init_v1_hw() -- that will fix still broken deferred
    probing. Let's propagate the error codes from devm_request_irq() as well
    since I don't see the reason to override them with -ENOENT...
    
    Link: https://lore.kernel.org/r/49ba93a3-d427-7542-d85a-b74fe1a33a73@omp.ru
    Acked-by: John Garry <john.garry@huawei.com>
    Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Sergey Shtylyov authored and martinkpetersen committed May 21, 2021
  6. scsi: bfa: Fix inconsistent indenting

    Eliminate the follow smatch warning:
    
    drivers/scsi/bfa/bfa_svc.c:3176 bfa_fcport_send_enable() warn:
    inconsistent indenting.
    
    Link: https://lore.kernel.org/r/1621590368-72041-1-git-send-email-jiapeng.chong@linux.alibaba.com
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Jiapeng Chong authored and martinkpetersen committed May 21, 2021
  7. scsi: bfa: Fix typo

    Change 'chnage' to 'change'.
    
    Link: https://lore.kernel.org/r/20210521092153.379-1-zuoqilin1@163.com
    Signed-off-by: zuoqilin <zuoqilin@yulong.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    zuoqilin authored and martinkpetersen committed May 21, 2021
  8. scsi: pmcraid: Fix typos

    Change "avaibale" and "avaible" to "available".
    
    Link: https://lore.kernel.org/r/20210521082808.1925-1-zuoqilin1@163.com
    Signed-off-by: zuoqilin <zuoqilin@yulong.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    zuoqilin authored and martinkpetersen committed May 21, 2021
  9. scsi: scsi_transport_fc: Remove double FC_FPORT_DELETED in mask creation

    Remove the double listed FC_FPORT_DELETING from the mask creation.
    
    Commit 260f4ae ("scsi: scsi_transport_fc: return -EBUSY for deleted
    vport") added VC_VPORT_DELETING to the flag masks. This is not necessary as
    FC_FPORT_DEL is defined as VC_FPORT_DELETED | FC_FPORT_DELETING.
    
    Link: https://lore.kernel.org/r/20210520073127.132456-1-dwagner@suse.de
    Cc: Hannes Reinecke <hare@suse.de>
    Signed-off-by: Daniel Wagner <dwagner@suse.de>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    igaw authored and martinkpetersen committed May 21, 2021
  10. scsi: arcmsr: Update driver version to v1.50.00.05-20210429

    Update driver version to v1.50.00.05-20210429.
    
    Link: https://lore.kernel.org/r/d0c6dc6431f0e46db6583dc0d04d7983b420d4da.camel@areca.com.tw
    Signed-off-by: ching Huang <ching2048@areca.com.tw>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    ching Huang authored and martinkpetersen committed May 21, 2021
  11. scsi: arcmsr: Fix doorbell status being updated late on ARC-1886

    It is possible for the IOP to be delayed in updating the doorbell
    status. The doorbell status should not be 0 so loop until the value
    changes.
    
    Link: https://lore.kernel.org/r/afdfdf7eabecf14632492c4987a6b9ac6312a7ad.camel@areca.com.tw
    Signed-off-by: ching Huang <ching2048@areca.com.tw>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    ching Huang authored and martinkpetersen committed May 21, 2021
  12. scsi: qedf: Use vzalloc() instead of vmalloc()/memset(0)

    Use vzalloc() instead of vmalloc() and memset(0) to simpify the code.
    
    Link: https://lore.kernel.org/r/20210518132018.1312995-1-yangyingliang@huawei.com
    Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
    Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Yang Yingliang authored and martinkpetersen committed May 21, 2021
  13. scsi: ufs: ufs-exynos: Move definitions from .h to .c

    In the Linux kernel definitions of data structures should occur in .c
    files. Hence move the exynos7_uic_attr definition from a .h into a .c
    file. Additionally, declare exynos_ufs_drvs static. This patch fixes the
    following two sparse warnings:
    
    drivers/scsi/ufs/ufs-exynos.h:248:28: warning: symbol 'exynos_ufs_drvs' was not declared. Should it be static?
    drivers/scsi/ufs/ufs-exynos.h:250:28: warning: symbol 'exynos7_uic_attr' was not declared. Should it be static?
    
    Link: https://lore.kernel.org/r/20210509213817.4348-1-bvanassche@acm.org
    Cc: Alim Akhtar <alim.akhtar@samsung.com>
    Cc: Kiwoong Kim <kwmad.kim@samsung.com>
    Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
    Signed-off-by: Bart Van Assche <bvanassche@acm.org>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    bvanassche authored and martinkpetersen committed May 21, 2021
Older