1. 11 7月, 2017 1 次提交
    • A
      ata: fix gemini Kconfig dependencies · accd0473
      Arnd Bergmann 提交于
      We cannot build the new ftide010 code without also building the faraday
      sata bridge driver:
      
      drivers/ata/pata_ftide010.o: In function `pata_ftide010_probe':
      pata_ftide010.c:(.text+0x2b8): undefined reference to `gemini_sata_bridge_get'
      pata_ftide010.c:(.text+0x32c): undefined reference to `gemini_sata_get_muxmode'
      pata_ftide010.c:(.text+0x358): undefined reference to `gemini_sata_bridge_enabled'
      drivers/ata/pata_ftide010.o: In function `pata_ftide010_gemini_port_stop':
      pata_ftide010.c:(.text+0x520): undefined reference to `gemini_sata_stop_bridge'
      drivers/ata/pata_ftide010.o: In function `pata_ftide010_gemini_port_start':
      pata_ftide010.c:(.text+0x5bc): undefined reference to `gemini_sata_start_bridge'
      
      This adjusts the Kconfig dependencies accordingly.
      
      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>
      accd0473
  2. 29 6月, 2017 2 次提交
  3. 28 6月, 2017 1 次提交
    • R
      ACPI / PM: Consolidate device wakeup settings code · 4d183d04
      Rafael J. Wysocki 提交于
      Currently, there are two separate ways of handling device wakeup
      settings in the ACPI core, depending on whether this is runtime
      wakeup or system wakeup (from sleep states).  However, after the
      previous commit eliminating the run_wake ACPI device wakeup flag,
      there is no difference between the two any more at the ACPI level,
      so they can be combined.
      
      For this reason, introduce acpi_pm_set_device_wakeup() to replace both
      acpi_pm_device_run_wake() and acpi_pm_device_sleep_wake() and make it
      check the ACPI device object's wakeup.valid flag to determine whether
      or not the device can be set up to generate wakeup signals.
      
      Also notice that zpodd_enable/disable_run_wake() only call
      device_set_run_wake() because acpi_pm_device_run_wake() called
      device_run_wake(), which is not done by acpi_pm_set_device_wakeup(),
      so drop the now redundant device_set_run_wake() calls from there.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: NBjorn Helgaas <bhelgaas@google.com>
      4d183d04
  4. 27 6月, 2017 3 次提交
  5. 23 6月, 2017 3 次提交
  6. 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
  7. 21 6月, 2017 1 次提交
  8. 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
  9. 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
  10. 06 6月, 2017 5 次提交
  11. 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
  12. 01 6月, 2017 1 次提交
  13. 30 5月, 2017 6 次提交
  14. 24 5月, 2017 1 次提交
  15. 16 5月, 2017 8 次提交