13 Jan, 2021

1 commit

  • commit 96ebc9c871d8a28fb22aa758dd9188a4732df482 upstream.

    Here's another variant PNY Pro Elite USB 3.1 Gen 2 portable SSD that
    hangs and doesn't respond to ATA_1x pass-through commands. If it doesn't
    support these commands, it should respond properly to the host. Add it
    to the unusual uas list to be able to move forward with other
    operations.

    Cc: stable@vger.kernel.org
    Reviewed-by: Hans de Goede
    Acked-by: Oliver Neukum
    Signed-off-by: Thinh Nguyen
    Link: https://lore.kernel.org/r/2edc7af892d0913bf06f5b35e49ec463f03d5ed8.1609819418.git.Thinh.Nguyen@synopsys.com
    Signed-off-by: Greg Kroah-Hartman

    Thinh Nguyen
     

21 Dec, 2020

1 commit

  • commit 8010622c86ca5bb44bc98492f5968726fc7c7a21 upstream.

    UAS does not share the pessimistic assumption storage is making that
    devices cannot deal with WRITE_SAME. A few devices supported by UAS,
    are reported to not deal well with WRITE_SAME. Those need a quirk.

    Add it to the device that needs it.

    Reported-by: David C. Partridge
    Signed-off-by: Oliver Neukum
    Cc: stable
    Link: https://lore.kernel.org/r/20201209152639.9195-1-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     

04 Dec, 2020

3 commits

  • This reverts commit 0154012f8018bba4d9971d1007c12ffd48539ddb as Hans
    reports it causes problems on some systems. Until a "real" fix for this
    can be found, revert this change to get normal functionality back.

    Link: https://lore.kernel.org/r/70ca74c2-4a80-e25b-eca9-a63a75516673@redhat.com
    Cc: Tom Yan
    Cc: Alan Stern
    Tested-by: Hans de Goede
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit 558033c2828f832ab3b68c6f8b8710e0de6faef0 as Hans
    reports it causes problems on some systems. Until a "real" fix for this
    can be found, revert this change to get normal functionality back.

    Link: https://lore.kernel.org/r/70ca74c2-4a80-e25b-eca9-a63a75516673@redhat.com
    Cc: Tom Yan
    Cc: Alan Stern
    Tested-by: Hans de Goede
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit 5df7ef7d32fec1d6d1c34dbec019b461a12ce870 as Hans
    reports it causes problems on some systems. Until a "real" fix for this
    can be found, revert this change to get normal functionality back.

    Link: https://lore.kernel.org/r/70ca74c2-4a80-e25b-eca9-a63a75516673@redhat.com
    Cc: Tom Yan
    Cc: Alan Stern
    Tested-by: Hans de Goede
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

16 Sep, 2020

2 commits

  • The SCSI layer has introduced a new macro for recording the result
    of a command. Use it.

    Signed-off-by: Oliver Neukum
    Link: https://lore.kernel.org/r/20200916094026.30085-3-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • The SCSI layer can go into an ugly loop if you ignore that a device is
    gone. You need to report an error in the command rather than in the
    return value of the queue method.

    We need to specifically check for ENODEV. The issue goes back to the
    introduction of the driver.

    Fixes: 115bb1ffa54c3 ("USB: Add UAS driver")
    Signed-off-by: Oliver Neukum
    Link: https://lore.kernel.org/r/20200916094026.30085-2-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     

04 Sep, 2020

3 commits

  • There's no reason for uas to use a smaller value of max_sectors than
    usb-storage.

    Signed-off-by: Tom Yan
    Reviewed-by: Alan Stern
    Link: https://lore.kernel.org/r/20200903181725.2931-3-tom.ty89@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Tom Yan
     
  • Use scsi_add_host_with_dma() instead of scsi_add_host().

    When the scsi request queue is initialized/allocated, hw_max_sectors is clamped
    to the dma max mapping size. Therefore, the correct device that should be used
    for the clamping needs to be set.

    The same clamping is still needed in uas as hw_max_sectors could be changed
    there. The original clamping would be invalidated in such cases.

    Signed-off-by: Tom Yan
    Reviewed-by: Alan Stern
    Link: https://lore.kernel.org/r/20200903181725.2931-2-tom.ty89@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Tom Yan
     
  • Use scsi_add_host_with_dma() instead of scsi_add_host().

    When the scsi request queue is initialized/allocated, hw_max_sectors is clamped
    to the dma max mapping size. Therefore, the correct device that should be used
    for the clamping needs to be set.

    The same clamping is still needed in usb-storage as hw_max_sectors could be
    changed there. The original clamping would be invalidated in such cases.

    Signed-off-by: Tom Yan
    Reviewed-by: Alan Stern
    Link: https://lore.kernel.org/r/20200903181725.2931-1-tom.ty89@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Tom Yan
     

31 Aug, 2020

2 commits

  • We want the USB fixes in here as well.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Pull USB fixes from Greg KH:
    "Let's try this again... Here are some USB fixes for 5.9-rc3.

    This differs from the previous pull request for this release in that
    the usb gadget patch now does not break some systems, and actually
    does what it was intended to do. Many thanks to Marek Szyprowski for
    quickly noticing and testing the patch from Andy Shevchenko to resolve
    this issue.

    Additionally, some more new USB quirks have been added to get some new
    devices to work properly based on user reports.

    Other than that, the patches are all here, and they contain:

    - usb gadget driver fixes

    - xhci driver fixes

    - typec fixes

    - new quirks and ids

    - fixes for USB patches that went into 5.9-rc1.

    All of these have been tested in linux-next with no reported issues"

    * tag 'usb-5.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (33 commits)
    usb: storage: Add unusual_uas entry for Sony PSZ drives
    USB: Ignore UAS for JMicron JMS567 ATA/ATAPI Bridge
    usb: host: ohci-exynos: Fix error handling in exynos_ohci_probe()
    USB: gadget: u_f: Unbreak offset calculation in VLAs
    USB: quirks: Ignore duplicate endpoint on Sound Devices MixPre-D
    usb: typec: tcpm: Fix Fix source hard reset response for TDA 2.3.1.1 and TDA 2.3.1.2 failures
    USB: PHY: JZ4770: Fix static checker warning.
    USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb()
    USB: gadget: u_f: add overflow checks to VLA macros
    xhci: Always restore EP_SOFT_CLEAR_TOGGLE even if ep reset failed
    xhci: Do warm-reset when both CAS and XDEV_RESUME are set
    usb: host: xhci: fix ep context print mismatch in debugfs
    usb: uas: Add quirk for PNY Pro Elite
    tools: usb: move to tools buildsystem
    USB: Fix device driver race
    USB: Also match device drivers using the ->match vfunc
    usb: host: xhci-tegra: fix tegra_xusb_get_phy()
    usb: host: xhci-tegra: otg usb2/usb3 port init
    usb: hcd: Fix use after free in usb_hcd_pci_remove()
    usb: typec: ucsi: Hold con->lock for the entire duration of ucsi_register_port()
    ...

    Linus Torvalds
     

28 Aug, 2020

1 commit

  • The PSZ-HA* family of USB disk drives from Sony can't handle the
    REPORT OPCODES command when using the UAS protocol. This patch adds
    an appropriate quirks entry.

    Reported-and-tested-by: Till Dörges
    Signed-off-by: Alan Stern
    CC:
    Link: https://lore.kernel.org/r/20200826143229.GB400430@rowland.harvard.edu
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

27 Aug, 2020

1 commit

  • This device does not support UAS properly and a similar entry already
    exists in drivers/usb/storage/unusual_uas.h. Without this patch,
    storage_probe() defers the handling of this device to UAS, which cannot
    handle it either.

    Tested-by: Brice Goglin
    Fixes: bc3bdb12bbb3 ("usb-storage: Disable UAS on JMicron SATA enclosure")
    Acked-by: Alan Stern
    CC:
    Signed-off-by: Cyril Roelandt
    Link: https://lore.kernel.org/r/20200825212231.46309-1-tipecaml@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Cyril Roelandt
     

24 Aug, 2020

1 commit

  • Replace the existing /* fall through */ comments and its variants with
    the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
    fall-through markings when it is the case.

    [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

    Signed-off-by: Gustavo A. R. Silva

    Gustavo A. R. Silva
     

19 Aug, 2020

1 commit

  • PNY Pro Elite USB 3.1 Gen 2 device (SSD) doesn't respond to ATA_12
    pass-through command (i.e. it just hangs). If it doesn't support this
    command, it should respond properly to the host. Let's just add a quirk
    to be able to move forward with other operations.

    Cc: stable@vger.kernel.org
    Signed-off-by: Thinh Nguyen
    Link: https://lore.kernel.org/r/2b0585228b003eedcc82db84697b31477df152e0.1597803605.git.thinhn@synopsys.com
    Signed-off-by: Greg Kroah-Hartman

    Thinh Nguyen
     

18 Aug, 2020

1 commit


06 Aug, 2020

1 commit

  • Pull USB/Thunderbolt updates from Greg KH:
    "Here is the large set of USB and Thunderbolt patches for 5.9-rc1.

    Nothing really magic/major in here, just lots of little changes and
    updates:

    - clean up language usages in USB core and some drivers

    - Thunderbolt driver updates and additions

    - USB Gadget driver updates

    - dwc3 driver updates (like always...)

    - build with "W=1" warning fixups

    - mtu3 driver updates

    - usb-serial driver updates and device ids

    - typec additions and updates for new hardware

    - xhci debug code updates for future platforms

    - cdns3 driver updates

    - lots of other minor driver updates and fixes and cleanups

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'usb-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (330 commits)
    usb: common: usb-conn-gpio: Register charger
    usb: mtu3: simplify mtu3_req_complete()
    usb: mtu3: clear dual mode of u3port when disable device
    usb: mtu3: use MTU3_EP_WEDGE flag
    usb: mtu3: remove useless member @busy in mtu3_ep struct
    usb: mtu3: remove repeated error log
    usb: mtu3: add ->udc_set_speed()
    usb: mtu3: introduce a funtion to check maximum speed
    usb: mtu3: clear interrupts status when disable interrupts
    usb: mtu3: reinitialize CSR registers
    usb: mtu3: fix macro for maximum number of packets
    usb: mtu3: remove unnecessary pointer checks
    usb: xhci: Fix ASMedia ASM1142 DMA addressing
    usb: xhci: define IDs for various ASMedia host controllers
    usb: musb: convert to devm_platform_ioremap_resource_byname
    usb: gadget: tegra-xudc: convert to devm_platform_ioremap_resource_byname
    usb: gadget: r8a66597: convert to devm_platform_ioremap_resource_byname
    usb: dwc3: convert to devm_platform_ioremap_resource_byname
    usb: cdns3: convert to devm_platform_ioremap_resource_byname
    usb: phy: am335x: convert to devm_platform_ioremap_resource_byname
    ...

    Linus Torvalds
     

17 Jul, 2020

1 commit

  • Using uninitialized_var() is dangerous as it papers over real bugs[1]
    (or can in the future), and suppresses unrelated compiler warnings
    (e.g. "unused variable"). If the compiler thinks it is uninitialized,
    either simply initialize the variable or make compiler changes.

    In preparation for removing[2] the[3] macro[4], remove all remaining
    needless uses with the following script:

    git grep '\buninitialized_var\b' | cut -d: -f1 | sort -u | \
    xargs perl -pi -e \
    's/\buninitialized_var\(([^\)]+)\)/\1/g;
    s:\s*/\* (GCC be quiet|to make compiler happy) \*/$::g;'

    drivers/video/fbdev/riva/riva_hw.c was manually tweaked to avoid
    pathological white-space.

    No outstanding warnings were found building allmodconfig with GCC 9.3.0
    for x86_64, i386, arm64, arm, powerpc, powerpc64le, s390x, mips, sparc64,
    alpha, and m68k.

    [1] https://lore.kernel.org/lkml/20200603174714.192027-1-glider@google.com/
    [2] https://lore.kernel.org/lkml/CA+55aFw+Vbj0i=1TGqCR5vQkCzWJ0QxK6CernOU6eedsudAixw@mail.gmail.com/
    [3] https://lore.kernel.org/lkml/CA+55aFwgbgqhbp1fkxvRKEpzyR5J8n1vKT1VZdz9knmPuXhOeg@mail.gmail.com/
    [4] https://lore.kernel.org/lkml/CA+55aFz2500WfbKXAx8s67wrm9=yVJu65TpLgN_ybYNv0VEOKA@mail.gmail.com/

    Reviewed-by: Leon Romanovsky # drivers/infiniband and mlx4/mlx5
    Acked-by: Jason Gunthorpe # IB
    Acked-by: Kalle Valo # wireless drivers
    Reviewed-by: Chao Yu # erofs
    Signed-off-by: Kees Cook

    Kees Cook
     

10 Jul, 2020

1 commit

  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    If not .svg:
    For each line:
    If doesn't contain `\bxmlns\b`:
    For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
    If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Link: https://lore.kernel.org/r/20200708184903.17350-1-grandmaster@al2klimov.de
    Signed-off-by: Greg Kroah-Hartman

    Alexander A. Klimov
     

09 Jul, 2020

1 commit

  • The return value of alauda_get_media_status() hasn't been checked
    since the driver's inception back in 2005. If nothing have gone
    wrong/been detected until this point, it's probably safe to just
    remove the variable.

    Fixes the following W=1 kernel build warning(s):

    drivers/usb/storage/alauda.c: In function ‘alauda_check_media’:
    drivers/usb/storage/alauda.c:456:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
    456 | int rc;
    | ^~

    Cc: Alan Stern
    Cc: Daniel Drake
    Cc: usb-storage@lists.one-eyed-alien.net
    Signed-off-by: Lee Jones
    Link: https://lore.kernel.org/r/20200703174148.2749969-20-lee.jones@linaro.org
    Signed-off-by: Greg Kroah-Hartman

    Lee Jones
     

19 Jun, 2020

2 commits


14 Jun, 2020

1 commit

  • Since commit 84af7a6194e4 ("checkpatch: kconfig: prefer 'help' over
    '---help---'"), the number of '---help---' has been gradually
    decreasing, but there are still more than 2400 instances.

    This commit finishes the conversion. While I touched the lines,
    I also fixed the indentation.

    There are a variety of indentation styles found.

    a) 4 spaces + '---help---'
    b) 7 spaces + '---help---'
    c) 8 spaces + '---help---'
    d) 1 space + 1 tab + '---help---'
    e) 1 tab + '---help---' (correct indentation)
    f) 1 tab + 1 space + '---help---'
    g) 1 tab + 2 spaces + '---help---'

    In order to convert all of them to 1 tab + 'help', I ran the
    following commend:

    $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

13 May, 2020

1 commit

  • scsi_get_host_dev() will create a virtual device such that either
    the target id is ignored from scanning (if 'this_id' is set to
    something which can be reached during scanning) or if the driver
    needs a scsi device for the HBA to send commands to.
    Neither is true for sierra-ms; 'this_id' remains at the default
    value '-1' and the created device is never ever used within
    the driver.
    So kill it.

    Signed-off-by: Hannes Reinecke
    Acked-by: Alan Stern
    Link: https://lore.kernel.org/r/20200505143019.57418-1-hare@suse.de
    Signed-off-by: Greg Kroah-Hartman

    Hannes Reinecke
     

11 May, 2020

1 commit


30 Apr, 2020

1 commit

  • This device needs US_FL_NO_REPORT_OPCODES to avoid going
    through prolonged error handling on enumeration.

    Signed-off-by: Oliver Neukum
    Reported-by: Julian Groß
    Cc: stable
    Link: https://lore.kernel.org/r/20200429155218.7308-1-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     

27 Apr, 2020

1 commit


23 Apr, 2020

2 commits

  • This patch corrects the SPDX License Identifier style in
    header files related to USB Storage driver configuration.
    For C header files Documentation/process/license-rules.rst
    mandates C-like comments (opposed to C source files where
    C++ style should be used).

    Changes made by using a script provided by Joe Perches here:
    https://lkml.org/lkml/2019/2/7/46.

    Suggested-by: Joe Perches
    Signed-off-by: Nishad Kamdar
    Link: https://lore.kernel.org/r/20200419131653.GA6611@nishad
    Signed-off-by: Greg Kroah-Hartman

    Nishad Kamdar
     
  • Cyril Roelandt reports that his JMicron JMS566 USB-SATA bridge fails
    to handle WRITE commands with the FUA bit set, even though it claims
    to support FUA. (Oddly enough, a later version of the same bridge,
    version 2.03 as opposed to 1.14, doesn't claim to support FUA. Also
    oddly, the bridge _does_ support FUA when using the UAS transport
    instead of the Bulk-Only transport -- but this device was blacklisted
    for uas in commit bc3bdb12bbb3 ("usb-storage: Disable UAS on JMicron
    SATA enclosure") for apparently unrelated reasons.)

    This patch adds a usb-storage unusual_devs entry with the BROKEN_FUA
    flag. This allows the bridge to work properly with usb-storage.

    Reported-and-tested-by: Cyril Roelandt
    Signed-off-by: Alan Stern
    CC:

    Link: https://lore.kernel.org/r/Pine.LNX.4.44L0.2004221613110.11262-100000@iolanthe.rowland.org
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

16 Apr, 2020

2 commits

  • A SCSI error handler and block runtime PM must not allocate
    memory with GFP_KERNEL. Furthermore they must not wait for
    tasks allocating memory with GFP_KERNEL.
    That means that they cannot share a workqueue with arbitrary tasks.

    Fix this for UAS using a private workqueue.

    Signed-off-by: Oliver Neukum
    Fixes: f9dc024a2da1f ("uas: pre_reset and suspend: Fix a few races")
    Cc: stable
    Link: https://lore.kernel.org/r/20200415141750.811-2-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • Once a device is gone, the internal state does not matter anymore.
    There is no need to spam the logs.

    Signed-off-by: Oliver Neukum
    Cc: stable
    Fixes: 326349f824619 ("uas: add dead request list")
    Link: https://lore.kernel.org/r/20200415141750.811-1-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     

10 Mar, 2020

1 commit


04 Mar, 2020

1 commit

  • Current driver has 240 (USB2.0) and 2048 (USB3.0) as max_sectors,
    e.g., /sys/bus/scsi/devices/0:0:0:0/max_sectors

    If data access times out, driver error handling will issue a port
    reset.
    Sometimes Samsung Fit (090C:1000) flash disk will not respond to
    later Set Address or Get Descriptor command.

    Adding this quirk to limit max_sectors to 64 sectors to avoid issue
    occurring.

    Signed-off-by: Jim Lin
    Acked-by: Alan Stern
    Cc: stable
    Link: https://lore.kernel.org/r/1583158895-31342-1-git-send-email-jilin@nvidia.com
    Signed-off-by: Greg Kroah-Hartman

    Jim Lin
     

24 Feb, 2020

1 commit


19 Feb, 2020

1 commit

  • Make structs const to reduce data size ~20KB.

    Change function arguments and prototypes as necessary to compile.

    $ size (x86-64 defconfig pre)
    text data bss dec hex filename
    12281 10948 480 23709 5c9d ./drivers/usb/storage/usb.o
    111 10528 8 10647 2997 ./drivers/usb/storage/usual-tables.o

    $ size (x86-64 defconfig post)
    text data bss dec hex filename
    22809 420 480 23709 5c9d drivers/usb/storage/usb.o
    10551 0 0 10551 2937 drivers/usb/storage/usual-tables.o

    Signed-off-by: Joe Perches
    Acked-by: Alan Stern
    Link: https://lore.kernel.org/r/cf13bd2d790ae3afbf5da55ea7bed12e00c5119d.camel@perches.com
    Signed-off-by: Greg Kroah-Hartman

    Joe Perches
     

11 Feb, 2020

1 commit

  • When a uas disk is plugged into an external hub, uas_probe()
    will be called by the hub thread to do the probe. It will
    first create a SCSI host and then do the scan for this host.
    During the scan, it will probe the LUN using SCSI INQUERY command
    which will be packed in the URB and submitted to uas disk.

    There might be a chance that this external hub with uas disk
    attached is unplugged during the scan. In this case, uas driver
    will fail to submit the URB (due to the NOTATTACHED state of uas
    device) and try to put this SCSI command back to request queue
    waiting for next chance to run.

    In normal case, this cycle will terminate when hub thread gets
    disconnection event and calls into uas_disconnect() accordingly.
    But in this case, uas_disconnect() will not be called because
    hub thread of external hub gets stuck waiting for the completion
    of this SCSI command. A deadlock happened.

    In this fix, uas will call scsi_scan_host() asynchronously to
    avoid the blocking of hub thread.

    Signed-off-by: EJ Hsu
    Acked-by: Oliver Neukum
    Cc: stable
    Link: https://lore.kernel.org/r/20200130092506.102760-1-ejh@nvidia.com
    Signed-off-by: Greg Kroah-Hartman

    EJ Hsu
     

11 Dec, 2019

1 commit

  • Fix commit 7b81cb6bddd2 ("usb: add a HCD_DMA flag instead of
    guestimating DMA capabilities") where local memory USB drivers
    erroneously allocate DMA memory instead of pool memory, causing

    OHCI Unrecoverable Error, disabled
    HC died; cleaning up

    The order between hcd_uses_dma() and hcd->localmem_pool is now
    arranged as in hcd_buffer_alloc() and hcd_buffer_free(), with the
    test for hcd->localmem_pool placed first.

    As an alternative, one might consider adjusting hcd_uses_dma() with

    static inline bool hcd_uses_dma(struct usb_hcd *hcd)
    {
    - return IS_ENABLED(CONFIG_HAS_DMA) && (hcd->driver->flags & HCD_DMA);
    + return IS_ENABLED(CONFIG_HAS_DMA) &&
    + (hcd->driver->flags & HCD_DMA) &&
    + (hcd->localmem_pool == NULL);
    }

    One can also consider unsetting HCD_DMA for local memory pool drivers.

    Fixes: 7b81cb6bddd2 ("usb: add a HCD_DMA flag instead of guestimating DMA capabilities")
    Cc: stable
    Signed-off-by: Fredrik Noring
    Link: https://lore.kernel.org/r/20191210172905.GA52526@sx9
    Signed-off-by: Greg Kroah-Hartman

    Fredrik Noring
     

03 Dec, 2019

1 commit

  • Pull SCSI updates from James Bottomley:
    "This is mostly update of the usual drivers: aacraid, ufs, zfcp,
    NCR5380, lpfc, qla2xxx, smartpqi, hisi_sas, target, mpt3sas, pm80xx
    plus a whole load of minor updates and fixes.

    The major core changes are Al Viro's reworking of sg's handling of
    copy to/from user, Ming Lei's removal of the host busy counter to
    avoid contention in the multiqueue case and Damien Le Moal's fixing of
    residual tracking across error handling"

    * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (251 commits)
    scsi: bnx2fc: timeout calculation invalid for bnx2fc_eh_abort()
    scsi: target: core: Fix a pr_debug() argument
    scsi: iscsi: Don't send data to unbound connection
    scsi: target: iscsi: Wait for all commands to finish before freeing a session
    scsi: target: core: Release SPC-2 reservations when closing a session
    scsi: target: core: Document target_cmd_size_check()
    scsi: bnx2i: fix potential use after free
    Revert "scsi: qla2xxx: Fix memory leak when sending I/O fails"
    scsi: NCR5380: Add disconnect_mask module parameter
    scsi: NCR5380: Unconditionally clear ICR after do_abort()
    scsi: NCR5380: Call scsi_set_resid() on command completion
    scsi: scsi_debug: num_tgts must be >= 0
    scsi: lpfc: use hdwq assigned cpu for allocation
    scsi: arcmsr: fix indentation issues
    scsi: qla4xxx: fix double free bug
    scsi: pm80xx: Modified the logic to collect fatal dump
    scsi: pm80xx: Tie the interrupt name to the module instance
    scsi: pm80xx: Controller fatal error through sysfs
    scsi: pm80xx: Do not request 12G sas speeds
    scsi: pm80xx: Cleanup command when a reset times out
    ...

    Linus Torvalds
     

18 Nov, 2019

1 commit