1. 29 Jun, 2017 2 commits
  2. 27 Jun, 2017 2 commits
  3. 26 Jun, 2017 1 commit
  4. 22 Jun, 2017 3 commits
  5. 21 Jun, 2017 1 commit
    • Arnd Bergmann's avatar
      ata: ftide010: fix resource printing · d0318fb3
      Arnd Bergmann authored
      The new driver uses an incorrect format string for resource_size_t:
      
      drivers/ata/pata_ftide010.c: In function 'pata_ftide010_probe':
      drivers/ata/pata_ftide010.c:520:17: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=]
      
      The nicest way to print the address is to pretty-print the resource
      using %pR.
      
      Fixes: be4e456e ("ata: Add driver for Faraday Technology FTIDE010")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      d0318fb3
  6. 20 Jun, 2017 1 commit
  7. 19 Jun, 2017 2 commits
    • Arvind Yadav's avatar
      ata: sata_rcar: make of_device_ids const. · a5893870
      Arvind Yadav authored
      of_device_ids are not supposed to change at runtime. All functions
      working with of_device_ids provided by <linux/of.h> work with const
      of_device_ids. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
         3946	   2296	      0	   6242	   1862	drivers/ata/sata_rcar.o
      
      File size after constify sata_rcar_match.
         text	   data	    bss	    dec	    hex	filename
         5554	    696	      0	   6250	   186a	drivers/ata/sata_rcar.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      a5893870
    • Arvind Yadav's avatar
      ata: pata_octeon_cf: make of_device_ids const. · 79af3ae6
      Arvind Yadav authored
      of_device_ids are not supposed to change at runtime. All functions
      working with of_device_ids provided by <linux/of.h> work with const
      of_device_ids. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
          465	    696	      4	   1165	    48d	drivers/ata/pata_octeon_cf.o
      
      File size after constify octeon_cf_match.
         text	   data	    bss	    dec	    hex	filename
          865	    280	      4	   1149	    47d	drivers/ata/pata_octeon_cf.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      79af3ae6
  8. 12 Jun, 2017 6 commits
    • Joe Perches's avatar
      libata: Convert bare printks to pr_cont · 6ef56325
      Joe Perches authored
      Linus Torvalds changed the behavior of printks without KERN_<LEVEL>.
      
      Convert the continuation prints to use pr_cont.
      
      At the same time, convert the existing printks with KERN_<LEVEL> to
      pr_<level>
      
      Miscellanea:
      
      o Coalesce a multiline format
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      6ef56325
    • Minwoo Im's avatar
      libahci: wrong comments in ahci_do_softreset() · 08fc4756
      Minwoo Im authored
      AHCI 1.3.1 Spec says that software shall build two H2D register
      FISes in the command list to send a software reset.
      The comments in ahci_do_softreset() is currently D2H instead of H2D.
      Signed-off-by: default avatarMinwoo Im <dn3108@gmail.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      08fc4756
    • Bhumika Goyal's avatar
      ata: declare ata_port_info structures as const · f356b082
      Bhumika Goyal authored
      ata_port_info structures are either copied to other objects or their
      references are stored in objects of type const. So, ata_port_info
      structures having similar usage pattern can be made const.
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      f356b082
    • Linus Walleij's avatar
      ata: Add driver for Faraday Technology FTIDE010 · be4e456e
      Linus Walleij authored
      This adds a driver for the Faraday Technology FTIDE010
      PATA IP block.
      
      When used with the Storlink/Storm/Cortina Systems Gemini
      SoC, the PATA interface is accompanied by a PATA<->SATA
      bridge, so while the device appear as a PATA controller,
      it attaches physically to SATA disks, and also has a
      designated memory area with registers to set up the bridge.
      
      The Gemini SATA bridge is separated into its own driver
      file to make things modular and make it possible to reuse
      the PATA driver as stand-alone on other systems than the
      Gemini.
      
      dmesg excerpt from the D-Link DIR-685 storage router:
      gemini-sata-bridge 46000000.sata: SATA ID 00000e00, PHY ID: 01000100
      gemini-sata-bridge 46000000.sata: set up the Gemini IDE/SATA nexus
      ftide010 63000000.ata: set up Gemini PATA0
      ftide010 63000000.ata: device ID 00000500, irq 26, io base 0x63000000
      ftide010 63000000.ata: SATA0 (master) start
      gemini-sata-bridge 46000000.sata: SATA0 PHY ready
      scsi host0: pata-ftide010
      ata1: PATA max UDMA/133 irq 26
      ata1.00: ATA-8: INTEL SSDSA2CW120G3, 4PC10302, max UDMA/133
      ata1.00: 234441648 sectors, multi 1: LBA48 NCQ (depth 0/32)
      ata1.00: configured for UDMA/133
      scsi 0:0:0:0: Direct-Access     ATA      INTEL SSDSA2CW12 0302 PQ: 0 ANSI: 5
      ata1.00: Enabling discard_zeroes_data
      sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB)
      sd 0:0:0:0: [sda] Write Protect is off
      sd 0:0:0:0: [sda] Write cache: enabled, read cache:
                        enabled, doesn't support DPO or FUA
      ata1.00: Enabling discard_zeroes_data
      ata1.00: Enabling discard_zeroes_data
      sd 0:0:0:0: [sda] Attached SCSI disk
      
      After this I can flawlessly mount and read/write copy etc files
      from /dev/sda[n].
      
      Cc: John Feng-Hsin Chiang <john453@faraday-tech.com>
      Cc: Greentime Hu <green.hu@gmail.com>
      Acked-by: default avatarHans Ulli Kroll <ulli.kroll@googlemail.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Acked-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      be4e456e
    • Linus Walleij's avatar
      ata: Add DT bindings for the Gemini SATA bridge · 3420fdfa
      Linus Walleij authored
      This adds device tree bindings for the Cortina Systems Gemini
      PATA to SATA bridge.
      
      Cc: devicetree@vger.kernel.org
      Cc: John Feng-Hsin Chiang <john453@faraday-tech.com>
      Cc: Greentime Hu <green.hu@gmail.com>
      Acked-by: default avatarHans Ulli Kroll <ulli.kroll@googlemail.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      3420fdfa
    • Linus Walleij's avatar
      ata: Add DT bindings for Faraday Technology FTIDE010 · af36ddc9
      Linus Walleij authored
      This adds device tree bindings for the Faraday Technology
      FTIDE010 found in the Storlink/Storm/Cortina Systems Gemini SoC.
      
      I am not 100% sure that this part is from Faraday Technology but
      a lot points in that direction:
      
      - A later IDE interface called FTIDE020 exist and share some
        properties.
      
      - The SATA bridge has the same Built In Self Test (BIST) that the
        Faraday FTSATA100 seems to have, and it has version number 0100
        in the device ID register, so this is very likely a FTSATA100
        bundled with the FTIDE010.
      
      Cc: devicetree@vger.kernel.org
      Cc: John Feng-Hsin Chiang <john453@faraday-tech.com>
      Cc: Greentime Hu <green.hu@gmail.com>
      Acked-by: default avatarHans Ulli Kroll <ulli.kroll@googlemail.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      af36ddc9
  9. 05 Jun, 2017 5 commits
  10. 02 Jun, 2017 1 commit
    • Yuantian Tang's avatar
      ahci: qoriq: add ls1088a platforms support · 0cee73f7
      Yuantian Tang authored
      Ls1088a is new introduced arm-based soc with sata support with
      following features:
      
      * Complies with the serial ATA 3.0 specification
        and the AHCI 1.3.1 specification
      * Contains a high-speed descriptor-based DMA controller
      * Supports the following:
      * Speeds of 1.5 Gb/s (first-generation SATA),
        3 Gb/s (second-generation SATA), and 6 Gb/s (third-generation SATA)
      * FIS-based switching
      * Native command queuing (NCQ) commands
      * Port multiplier operation
      * Asynchronous notification
      * SATA Vendor BIST mode
      Signed-off-by: default avatarTang Yuantian <andy.tang@nxp.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      0cee73f7
  11. 30 May, 2017 6 commits
  12. 16 May, 2017 3 commits
  13. 15 May, 2017 7 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · a95cfad9
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Track alignment in BPF verifier so that legitimate programs won't be
          rejected on !CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS architectures.
      
       2) Make tail calls work properly in arm64 BPF JIT, from Deniel
          Borkmann.
      
       3) Make the configuration and semantics Generic XDP make more sense and
          don't allow both generic XDP and a driver specific instance to be
          active at the same time. Also from Daniel.
      
       4) Don't crash on resume in xen-netfront, from Vitaly Kuznetsov.
      
       5) Fix use-after-free in VRF driver, from Gao Feng.
      
       6) Use netdev_alloc_skb_ip_align() to avoid unaligned IP headers in
          qca_spi driver, from Stefan Wahren.
      
       7) Always run cleanup routines in BPF samples when we get SIGTERM, from
          Andy Gospodarek.
      
       8) The mdio phy code should bring PHYs out of reset using the shared
          GPIO lines before invoking bus->reset(). From Florian Fainelli.
      
       9) Some USB descriptor access endian fixes in various drivers from
          Johan Hovold.
      
      10) Handle PAUSE advertisements properly in mlx5 driver, from Gal
          Pressman.
      
      11) Fix reversed test in mlx5e_setup_tc(), from Saeed Mahameed.
      
      12) Cure netdev leak in AF_PACKET when using timestamping via control
          messages. From Douglas Caetano dos Santos.
      
      13) netcp doesn't support HWTSTAMP_FILTER_ALl, reject it. From Miroslav
          Lichvar.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (52 commits)
        ldmvsw: stop the clean timer at beginning of remove
        ldmvsw: unregistering netdev before disable hardware
        net: netcp: fix check of requested timestamping filter
        ipv6: avoid dad-failures for addresses with NODAD
        qed: Fix uninitialized data in aRFS infrastructure
        mdio: mux: fix device_node_continue.cocci warnings
        net/packet: fix missing net_device reference release
        net/mlx4_core: Use min3 to select number of MSI-X vectors
        macvlan: Fix performance issues with vlan tagged packets
        net: stmmac: use correct pointer when printing normal descriptor ring
        net/mlx5: Use underlay QPN from the root name space
        net/mlx5e: IPoIB, Only support regular RQ for now
        net/mlx5e: Fix setup TC ndo
        net/mlx5e: Fix ethtool pause support and advertise reporting
        net/mlx5e: Use the correct pause values for ethtool advertising
        vmxnet3: ensure that adapter is in proper state during force_close
        sfc: revert changes to NIC revision numbers
        net: ch9200: add missing USB-descriptor endianness conversions
        net: irda: irda-usb: fix firmware name on big-endian hosts
        net: dsa: mv88e6xxx: add default case to switch
        ...
      a95cfad9
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 · 1319a285
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "A set of minor cifs fixes"
      
      * 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
        [CIFS] Minor cleanup of xattr query function
        fs: cifs: transport: Use time_after for time comparison
        SMB2: Fix share type handling
        cifs: cifsacl: Use a temporary ops variable to reduce code length
        Don't delay freeing mids when blocked on slow socket write of request
        CIFS: silence lockdep splat in cifs_relock_file()
      1319a285
    • David S. Miller's avatar
      Merge branch 'ldmsw-fixes' · 66f4bc81
      David S. Miller authored
      Shannon Nelson says:
      
      ====================
      ldmvsw: port removal stability
      
      Under heavy reboot stress testing we found a couple of timing issues
      when removing the device that could cause the kernel great heartburn,
      addressed by these two patches.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      66f4bc81
    • Shannon Nelson's avatar
      ldmvsw: stop the clean timer at beginning of remove · 8b671f90
      Shannon Nelson authored
      Stop the clean timer earlier to be sure there's no asynchronous
      interference while stopping the port.
      
      Orabug: 25748241
      Signed-off-by: default avatarShannon Nelson <shannon.nelson@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8b671f90
    • Thomas Tai's avatar
      ldmvsw: unregistering netdev before disable hardware · b18e5e86
      Thomas Tai authored
      When running LDom binding/unbinding test, kernel may panic
      in ldmvsw_open(). It is more likely that because we're removing
      the ldc connection before unregistering the netdev in vsw_port_remove(),
      we set up a window of time where one process could be removing the
      device while another trying to UP the device. This also sometimes causes
      vio handshake error due to opening a device without closing it completely.
      We should unregister the netdev before we disable the "hardware".
      
      Orabug: 25980913, 25925306
      Signed-off-by: default avatarThomas Tai <thomas.tai@oracle.com>
      Signed-off-by: default avatarShannon Nelson <shannon.nelson@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b18e5e86
    • Miroslav Lichvar's avatar
      net: netcp: fix check of requested timestamping filter · ca9df7ed
      Miroslav Lichvar authored
      The driver doesn't support timestamping of all received packets and
      should return error when trying to enable the HWTSTAMP_FILTER_ALL
      filter.
      
      Cc: WingMan Kwok <w-kwok2@ti.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarMiroslav Lichvar <mlichvar@redhat.com>
      Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ca9df7ed
    • David S. Miller's avatar
      Merge tag 'mlx5-fixes-2017-05-12-V2' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 42a928ce
      David S. Miller authored
      Saeed Mahameed says:
      
      ====================
      Mellanox, mlx5 fixes 2017-05-12
      
      This series contains some mlx5 fixes for net.
      Please pull and let me know if there's any problem.
      
      For -stable:
      ("net/mlx5e: Fix ethtool pause support and advertise reporting") kernels >= 4.8
      ("net/mlx5e: Use the correct pause values for ethtool advertising") kernels >= 4.8
      
      v1->v2:
       Dropped statistics spinlock patch, it needs some extra work.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      42a928ce