1. 04 6月, 2012 1 次提交
    • A
      can: c_can: fix "BUG! echo_skb is occupied!" during transmit · 617cacce
      AnilKumar Ch 提交于
      This patch fixes an issue with transmit routine, which causes
      "can_put_echo_skb: BUG! echo_skb is occupied!" message when
      using "cansequence -p" on D_CAN controller.
      
      In c_can driver, while transmitting packets tx_echo flag holds
      the no of can frames put for transmission into the hardware.
      
      As the comment above c_can_do_tx() indicates, if we find any packet
      which is not transmitted then we should stop looking for more.
      In the current implementation this is not taken care of causing the
      said message.
      
      Also, fix the condition used to find if the packet is transmitted
      or not. Current code skips the first tx message object and ends up
      checking one extra invalid object.
      
      While at it, fix the comment on top of c_can_do_tx() to use the
      terminology "packet" instead of "package" since it is more
      standard.
      
      Cc: stable@kernel.org # 2.6.39+
      Signed-off-by: NAnilKumar Ch <anilkumar@ti.com>
      Acked-by: NWolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      617cacce
  2. 12 5月, 2012 1 次提交
  3. 18 4月, 2012 1 次提交
  4. 17 4月, 2012 2 次提交
  5. 02 4月, 2012 1 次提交
  6. 29 3月, 2012 1 次提交
  7. 07 3月, 2012 1 次提交
  8. 04 3月, 2012 6 次提交
  9. 20 2月, 2012 1 次提交
  10. 03 2月, 2012 16 次提交
  11. 01 2月, 2012 1 次提交
  12. 31 1月, 2012 1 次提交
  13. 28 12月, 2011 1 次提交
  14. 20 12月, 2011 1 次提交
  15. 02 12月, 2011 3 次提交
  16. 01 12月, 2011 1 次提交
  17. 30 11月, 2011 1 次提交
    • W
      can: cc770: legacy CC770 ISA bus driver · 7e02e543
      Wolfgang Grandegger 提交于
      This patch adds support for legacy Bosch CC770 and Intel AN82527 CAN
      controllers on the ISA or PC-104 bus. The I/O port or memory address
      and the IRQ number must be specified via module parameters:
      
        insmod cc770_isa.ko port=0x310,0x380 irq=7,11
      
      for ISA devices using I/O ports or:
      
        insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11
      
      for memory mapped ISA devices.
      
      Indirect access via address and data port is supported as well:
      
        insmod cc770_isa.ko port=0x310,0x380 indirect=1 irq=7,11
      
      Furthermore, the following mode parameter can be defined:
      
        clk: External oscillator clock frequency (default=16000000 [16 MHz])
        cir: CPU interface register (default=0x40 [CPU_DSC])
        ocr, Bus configuration register (default=0x00)
        cor, Clockout register (default=0x00)
      
      Note: for clk, cir, bcr and cor, the first argument re-defines the
      default for all other devices, e.g.:
      
        insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11 clk=24000000
      
      is equivalent to
      
        insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11 clk=24000000,24000000
      Signed-off-by: NWolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7e02e543