1. 17 7月, 2012 1 次提交
  2. 03 7月, 2012 1 次提交
    • H
      can: flexcan: add hardware controller version support · 30c1e672
      Hui Wang 提交于
      At least in the i.MX series, the flexcan contrller divides into ver_3
      and ver_10, current driver is for ver_3 controller.
      
      i.MX6 has ver_10 controller, it has more reigsters than ver_3 has.
      The rxfgmask (Rx FIFO Global Mask) register is one of the new added.
      Its reset value is 0xffffffff, this means ID Filter Table must be
      checked when receive a packet, but the driver is designed to accept
      everything during the chip start, we need to clear this register to
      follow this design.
      
      Use the data entry of the struct of_device_id to point chip specific
      info, we can set hardware version for each platform.
      
      Cc: linux-can@vger.kernel.org
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: Wolfgang Grandegger <wg@grandegger.com>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NHui Wang <jason77.wang@gmail.com>
      [mkl: add id_table support]
      Tested-by: NHui Wang <jason77.wang@gmail.com>
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      30c1e672
  3. 02 7月, 2012 1 次提交
  4. 27 6月, 2012 1 次提交
  5. 24 5月, 2012 1 次提交
  6. 12 5月, 2012 1 次提交
  7. 03 2月, 2012 3 次提交
  8. 28 12月, 2011 1 次提交
  9. 29 11月, 2011 1 次提交
  10. 18 8月, 2011 4 次提交
  11. 02 6月, 2011 1 次提交
    • J
      drivers/net/can/flexcan.c: add missing clk_put · 2e4ceec4
      Julia Lawall 提交于
      The failed_get label is used after the call to clk_get has succeeded, so it
      should be moved up above the call to clk_put.
      
      The failed_req labels doesn't do anything different than failed_get, so
      delete it.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r exists@
      expression e1,e2;
      statement S;
      @@
      
      e1 = clk_get@p1(...);
      ... when != e1 = e2
          when != clk_put(e1)
          when any
      if (...) { ... when != clk_put(e1)
                     when != if (...) { ... clk_put(e1) ... }
      * return@p3 ...;
       } else S
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e4ceec4
  12. 27 10月, 2010 1 次提交
  13. 23 7月, 2010 1 次提交