1. 24 5月, 2012 1 次提交
  2. 03 2月, 2012 1 次提交
  3. 02 12月, 2011 1 次提交
  4. 18 10月, 2011 1 次提交
  5. 17 9月, 2011 1 次提交
  6. 27 8月, 2011 1 次提交
  7. 05 5月, 2011 1 次提交
  8. 07 4月, 2011 1 次提交
  9. 31 3月, 2011 1 次提交
  10. 28 3月, 2011 1 次提交
  11. 18 10月, 2010 1 次提交
    • M
      can: mcp251x: Don't use pdata->model for chip selection anymore · f1f8c6cb
      Marc Kleine-Budde 提交于
      Since commit e446630c, i.e. v2.6.35-rc1,
      the mcp251x chip model can be selected via the modalias member in the
      struct spi_board_info. The driver stores the actual model in the
      struct mcp251x_platform_data.
      
      From the driver point of view the platform_data should be read only.
      Since all in-tree users of the mcp251x have already been converted to
      the modalias method, this patch moves the "model" member from the
      struct mcp251x_platform_data to the driver's private data structure.
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      Cc: Christian Pellegrin <chripell@fsfe.org>
      Cc: Marc Zyngier <maz@misterjones.org>
      f1f8c6cb
  12. 23 7月, 2010 1 次提交
  13. 18 5月, 2010 1 次提交
  14. 13 4月, 2010 1 次提交
  15. 31 3月, 2010 1 次提交
  16. 26 2月, 2010 2 次提交
  17. 15 1月, 2010 1 次提交
  18. 12 1月, 2010 1 次提交
  19. 04 1月, 2010 1 次提交
  20. 14 12月, 2009 1 次提交
    • O
      can: Fix data length code handling in rx path · c7cd606f
      Oliver Hartkopp 提交于
      A valid CAN dataframe can have a data length code (DLC) of 0 .. 8 data bytes.
      
      When reading the CAN controllers register the 4-bit value may contain values
      from 0 .. 15 which may exceed the reserved space in the socket buffer!
      
      The ISO 11898-1 Chapter 8.4.2.3 (DLC field) says that register values > 8
      should be reduced to 8 without any error reporting or frame drop.
      
      This patch introduces a new helper macro to cast a given 4-bit data length
      code (dlc) to __u8 and ensure the DLC value to be max. 8 bytes.
      
      The different handlings in the rx path of the CAN netdevice drivers are fixed.
      Signed-off-by: NOliver Hartkopp <oliver@hartkopp.net>
      Signed-off-by: NWolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c7cd606f
  21. 08 11月, 2009 1 次提交
  22. 06 11月, 2009 1 次提交
  23. 20 10月, 2009 1 次提交
    • W
      can: provide library functions for skb allocation · 7b6856a0
      Wolfgang Grandegger 提交于
      This patch makes the private functions alloc_can_skb() and
      alloc_can_err_skb() of the at91_can driver public and adapts all
      drivers to use these. While making the patch I realized, that
      the skb's are *not* setup consistently. It's now done as shown
      below:
      
        skb->protocol = htons(ETH_P_CAN);
        skb->pkt_type = PACKET_BROADCAST;
        skb->ip_summed = CHECKSUM_UNNECESSARY;
        *cf = (struct can_frame *)skb_put(skb, sizeof(struct can_frame));
        memset(*cf, 0, sizeof(struct can_frame));
      
      The frame is zeroed out to avoid uninitialized data to be passed to
      user space. Some drivers or library code did not set "pkt_type" or
      "ip_summed". Also,  "__constant_htons()" should not be used for
      runtime invocations, as pointed out by David Miller.
      Signed-off-by: NWolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7b6856a0
  24. 13 10月, 2009 1 次提交
  25. 08 10月, 2009 1 次提交
  26. 04 9月, 2009 1 次提交
  27. 01 6月, 2009 1 次提交
    • W
      can: sja1000: generic OF platform bus driver · d1a277c5
      Wolfgang Grandegger 提交于
      This patch adds a generic driver for SJA1000 chips on the OpenFirmware
      platform bus found on embedded PowerPC systems. You need a SJA1000 node
      definition in your flattened device tree source (DTS) file similar to:
      
        can@3,100 {
        	compatible = "nxp,sja1000";
        	reg = <3 0x100 0x80>;
        	interrupts = <2 0>;
        	interrupt-parent = <&mpic>;
        	nxp,external-clock-frequency = <16000000>;
        };
      
      See also Documentation/powerpc/dts-bindings/can/sja1000.txt.
      
      CC: devicetree-discuss@ozlabs.org
      Signed-off-by: NWolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d1a277c5
  28. 19 5月, 2009 2 次提交
  29. 30 1月, 2009 1 次提交
  30. 07 1月, 2009 1 次提交
  31. 04 12月, 2008 1 次提交
    • O
      can: Fix CAN_(EFF|RTR)_FLAG handling in can_filter · d253eee2
      Oliver Hartkopp 提交于
      Due to a wrong safety check in af_can.c it was not possible to filter
      for SFF frames with a specific CAN identifier without getting the
      same selected CAN identifier from a received EFF frame also.
      
      This fix has a minimum (but user visible) impact on the CAN filter
      API and therefore the CAN version is set to a new date.
      
      Indeed the 'old' API is still working as-is. But when now setting
      CAN_(EFF|RTR)_FLAG in can_filter.can_mask you might get less traffic
      than before - but still the stuff that you expected to get for your
      defined filter ...
      
      Thanks to Kurt Van Dijck for pointing at this issue and for the review.
      Signed-off-by: NOliver Hartkopp <oliver@hartkopp.net>
      Acked-by: NKurt Van Dijck <kurt.van.dijck@eia.be>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d253eee2
  32. 29 1月, 2008 5 次提交