1. 05 10月, 2015 2 次提交
    • G
      serial: sh-sci: Correct SCIF_ERROR_CLEAR for plain SCIF · 5da0f468
      Geert Uytterhoeven 提交于
      SCIF_ERROR_CLEAR includes SCIFA_ORER, which exists only on SCIFA/SCIFB
      and SCIF on sh7705/sh7720/sh7721.
      
      To fix this:
        1. Remove SCIFA_ORER from the definition of SCIF_ERROR_CLEAR,
        2. During initialization, store the error clear mask to use,
           incorporating the overrun bit only if it applies to the SCxSR
           register.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5da0f468
    • G
      serial: sh-sci: Replace buggy big #ifdef by runtime logic · a1b5b43f
      Geert Uytterhoeven 提交于
      The #ifdef logic to clear SCxSR bits using RMW on SCIFA/SCIFB and SCIF
      variants with some SCIFA features (sh7705/SH7720/sh7721) has several
      drawbacks:
        - It wasn't updated for newer R-Mobile variants (APE6),
        - It doesn't correctly handle SoCs with both SCIF and SCIFA/B (e.g.
          R-Car Gen2, but also legacy sh7723/sh7724),
        - It doesn't play well with ARM multi-platform kernels: on R-Car Gen2,
          SCIF/SCIFA/SCIFB/HSCIF were handled differently, depending on
          whether r8a7740 or sh73a0 support was enabled or not,
      
      Replace the #ifdef logic by runtime logic to fix this.
      
      SCIFA/SCIFB and SCIF on sh7705/sh7720/sh7721 use RMW to clear error
      bits, other variants use plain stores, as before.
      
      Note that this changes behavior for SCIFA on sh7723/sh7724 (these SoCs
      have both SCIF and SCIFA), which didn't use RMW before.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a1b5b43f
  2. 23 6月, 2015 2 次提交
  3. 11 5月, 2015 5 次提交
  4. 27 3月, 2015 2 次提交
  5. 03 2月, 2015 3 次提交
  6. 26 11月, 2014 1 次提交
  7. 20 10月, 2014 1 次提交
  8. 16 10月, 2014 1 次提交
  9. 18 7月, 2014 3 次提交
  10. 10 7月, 2014 1 次提交
  11. 25 4月, 2014 2 次提交
  12. 19 3月, 2014 1 次提交
  13. 18 3月, 2014 5 次提交
  14. 01 3月, 2014 1 次提交
  15. 14 2月, 2014 1 次提交
  16. 24 12月, 2013 9 次提交