1. 15 7月, 2015 1 次提交
  2. 19 1月, 2015 1 次提交
  3. 28 10月, 2014 1 次提交
  4. 27 10月, 2014 1 次提交
  5. 20 10月, 2014 1 次提交
  6. 10 5月, 2014 1 次提交
  7. 30 11月, 2013 1 次提交
    • V
      sata_rcar: Add R-Car Gen2 SATA PHY support · e67adb4e
      Valentine Barshak 提交于
      R-Car Gen2 SoCs have a different PHY which is not compatible
      with the older R-Car H1 (R8A7779) version.
      This adds OF/platform device id tables and PHY initialization
      callbacks for the following Gen2 SoCs:
        * R-Car H2: R8A7790;
        * R-Car M2: R8A7791.
      
      PHY initialization method is chosen based on the device id.
      Default PHY settings are applied for Gen2 SoCs, which should
      suit the Gen2 boards available.
      
      While at it, this also adds "sata-r8a7779" compatibility string
      for R8A7779 SATA, while keeping the old one for compatibility.
      Signed-off-by: NValentine Barshak <valentine.barshak@cogentembedded.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      e67adb4e
  8. 30 10月, 2013 1 次提交
  9. 14 8月, 2013 1 次提交
    • J
      drivers/ata/sata_rcar.c: simplify use of devm_ioremap_resource · 4a9b7f9f
      Julia Lawall 提交于
      Remove unneeded error handling on the result of a call to
      platform_get_resource when the value is passed to devm_ioremap_resource.
      
      Move the call to platform_get_resource adjacent to the call to
      devm_ioremap_resource to make the connection between them more clear.
      
      A simplified version of the semantic patch that makes this change is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression pdev,res,n,e,e1;
      expression ret != 0;
      identifier l;
      @@
      
      - res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        ... when != res
      - if (res == NULL) { ... \(goto l;\|return ret;\) }
        ... when != res
      + res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        e = devm_ioremap_resource(e1, res);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      4a9b7f9f
  10. 04 6月, 2013 1 次提交
  11. 02 6月, 2013 1 次提交
    • S
      sata_rcar: fix interrupt handling · 52a2a108
      Sergei Shtylyov 提交于
      The driver's interrupt handling code is too picky in deciding whether it should
      handle an interrupt or not which causes completely unneeded spurious interrupts.
      Thus make sata_rcar_{ata|serr}_interrupt() *void*; add ATA status register read
      to sata_rcar_ata_interrupt() to clear an unexpected ATA interrupt -- it doesn't
      get cleared by writing to the SATAINTSTAT register in the interrupt mode we use.
      
      Also, in sata_rcar_ata_interrupt() we should check SATAINTSTAT register only for
      enabled interrupts and we should clear  only those interrupts  that we have read
      as active first time around, because else we have  a  race and risk clearing  an
      interrupt that  can  occur between read  and write of the  SATAINTSTAT  register
      and never registering it...
      Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: stable@vger.kernel.org
      52a2a108
  12. 28 5月, 2013 3 次提交
  13. 24 5月, 2013 1 次提交
    • J
      ata: use platform_{get,set}_drvdata() · d89995db
      Jingoo Han 提交于
      Use the wrapper functions for getting and setting the driver data using
      platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev,
      so we can directly pass a struct platform_device.
      
      Also, unnecessary dev_set_drvdata() is removed, because the driver core
      clears the driver data to NULL after device_release or on probe failure.
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      d89995db
  14. 22 5月, 2013 1 次提交
    • S
      sata_rcar: clear STOP bit in bmdma_start() method · df7e131f
      Sergei Shtylyov 提交于
      Iff bmdma_setup() has to stop a DMA transfer before starting a new
      one, then the STOP bit in the ATAPI_CONTROL1 register will remain set
      (it's only cleared when setting the START bit to 1) and then
      bmdma_start() method will set both START and STOP bits simultaneously
      which should abort the transfer being just started.  Avoid that by
      explicitly clearing the STOP bit in bmdma_start() method (in this case
      it will be ignored on write).
      Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: stable@vger.kernel.org
      df7e131f
  15. 12 4月, 2013 1 次提交
  16. 21 2月, 2013 1 次提交