1. 20 Jul, 2012 3 commits
    • Ira W. Snyder's avatar
      can: janz-ican3: remove dead code · 8456a919
      Ira W. Snyder authored
      The code which used this variable was removed during review, before the
      driver was added to mainline Linux. It is now dead code, and can be
      removed.
      Signed-off-by: default avatarIra W. Snyder <iws@ovro.caltech.edu>
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      8456a919
    • Steffen Trumtrar's avatar
      can: flexcan: add 2nd clock to support imx53 and newer · 3d42a379
      Steffen Trumtrar authored
      This patch adds support for a second clock to the flexcan driver. On
      modern freescale ARM cores like the imx53 and imx6q two clocks ("ipg"
      and "per") must be enabled in order to access the CAN core.
      
      In the original driver, the clock was requested without specifying the
      connection id, further all mainline ARM archs with flexcan support
      (imx28, imx25, imx35) register their flexcan clock without a
      connection id, too.
      
      This patch first renames the existing clk variable to clk_ipg and
      converts it to devm for easier error handling. The connection id "ipg"
      is added to the devm_clk_get() call. Then a second clock "per" is
      requested. As all archs don't specify a connection id, both clk_get
      return the same clock. This ensures compatibility to existing flexcan
      support and adds support for imx53 at the same time.
      
      After this patch hits mainline, the archs may give their existing
      flexcan clock the "ipg" connection id and implement a dummy "per"
      clock.
      
      This patch has been tested on imx28 (unmodified clk tree) and on imx53
      with a seperate "ipg" and "per" clock.
      
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Signed-off-by: default avatarSteffen Trumtrar <s.trumtrar@pengutronix.de>
      Acked-by: default avatarHui Wang <jason77.wang@gmail.com>
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      3d42a379
    • Marc Kleine-Budde's avatar
      can: mark bittiming_const pointer in struct can_priv as const · 194b9a4c
      Marc Kleine-Budde authored
      This patch marks the bittiming_const pointer as in the struct can_pric as
      "const". This allows us to mark the struct can_bittiming_const in the CAN
      drivers as "const", too.
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      194b9a4c
  2. 19 Jul, 2012 37 commits