1. 23 6月, 2017 1 次提交
  2. 22 6月, 2017 1 次提交
    • A
      ata: ftide010: fix resource printing · d0318fb3
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      d0318fb3
  3. 21 6月, 2017 1 次提交
  4. 20 6月, 2017 2 次提交
    • A
      ata: sata_rcar: make of_device_ids const. · a5893870
      Arvind Yadav 提交于
      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: NArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      a5893870
    • A
      ata: pata_octeon_cf: make of_device_ids const. · 79af3ae6
      Arvind Yadav 提交于
      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: NArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      79af3ae6
  5. 13 6月, 2017 4 次提交
    • J
      libata: Convert bare printks to pr_cont · 6ef56325
      Joe Perches 提交于
      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: NJoe Perches <joe@perches.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      6ef56325
    • M
      libahci: wrong comments in ahci_do_softreset() · 08fc4756
      Minwoo Im 提交于
      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: NMinwoo Im <dn3108@gmail.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      08fc4756
    • B
      ata: declare ata_port_info structures as const · f356b082
      Bhumika Goyal 提交于
      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: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      f356b082
    • L
      ata: Add driver for Faraday Technology FTIDE010 · be4e456e
      Linus Walleij 提交于
      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: NHans Ulli Kroll <ulli.kroll@googlemail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      be4e456e
  6. 06 6月, 2017 5 次提交
  7. 02 6月, 2017 1 次提交
    • Y
      ahci: qoriq: add ls1088a platforms support · 0cee73f7
      Yuantian Tang 提交于
      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: NTang Yuantian <andy.tang@nxp.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      0cee73f7
  8. 30 5月, 2017 6 次提交
  9. 16 5月, 2017 3 次提交
  10. 29 4月, 2017 2 次提交
  11. 11 4月, 2017 1 次提交
    • O
      sata_via: Enable hotplug only on VT6421 · 3cf86452
      Ondrej Zary 提交于
      Commit 57e5568f ("sata_via: Implement hotplug for VT6421") adds
      hotplug IRQ handler for VT6421 but enables hotplug on all chips. This
      is a bug because it causes "irq xx: nobody cared" error on VT6420 when
      hot-(un)plugging a drive:
      
      [  381.839948] irq 20: nobody cared (try booting with the "irqpoll" option)
      [  381.840014] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.10.0-rc5+ #148
      [  381.840066] Hardware name:          P4VM800/P4VM800, BIOS P1.60 05/29/2006
      [  381.840117] Call Trace:
      [  381.840167]  <IRQ>
      [  381.840225]  ? dump_stack+0x44/0x58
      [  381.840278]  ? __report_bad_irq+0x14/0x97
      [  381.840327]  ? handle_edge_irq+0xa5/0xa5
      [  381.840376]  ? note_interrupt+0x155/0x1cf
      [  381.840426]  ? handle_edge_irq+0xa5/0xa5
      [  381.840474]  ? handle_irq_event_percpu+0x32/0x38
      [  381.840524]  ? handle_irq_event+0x1f/0x38
      [  381.840573]  ? handle_fasteoi_irq+0x69/0xb8
      [  381.840625]  ? handle_irq+0x4f/0x5d
      [  381.840672]  </IRQ>
      [  381.840726]  ? do_IRQ+0x2e/0x8b
      [  381.840782]  ? common_interrupt+0x2c/0x34
      [  381.840836]  ? mwait_idle+0x60/0x82
      [  381.840892]  ? arch_cpu_idle+0x6/0x7
      [  381.840949]  ? do_idle+0x96/0x18e
      [  381.841002]  ? cpu_startup_entry+0x16/0x1a
      [  381.841057]  ? start_kernel+0x319/0x31c
      [  381.841111]  ? startup_32_smp+0x166/0x168
      [  381.841165] handlers:
      [  381.841219] [<c12a7263>] ata_bmdma_interrupt
      [  381.841274] Disabling IRQ #20
      
      Seems that VT6420 can do hotplug too (there's no documentation) but the
      comments say that SCR register access (required for detecting hotplug
      events) can cause problems on these chips.
      
      For now, just keep hotplug disabled on anything other than VT6421.
      Signed-off-by: NOndrej Zary <linux@rainbow-software.org>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      3cf86452
  12. 30 3月, 2017 3 次提交
  13. 28 3月, 2017 1 次提交
  14. 24 3月, 2017 1 次提交
  15. 17 3月, 2017 1 次提交
  16. 14 3月, 2017 2 次提交
  17. 10 3月, 2017 1 次提交
  18. 08 3月, 2017 1 次提交
  19. 07 3月, 2017 3 次提交