21 Feb, 2015

1 commit

  • The cfpkt_iterate() function can return -EPROTO on error, but the
    function is a u16 so the negative value gets truncated to a positive
    unsigned short. This causes a static checker warning.

    The only caller which might care is cffrml_receive(), when it's checking
    the frame checksum. I modified cffrml_receive() so that it never says
    -EPROTO is a valid checksum.

    Also this isn't ever going to be inlined so I removed the "inline".

    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     

24 Sep, 2013

1 commit

  • There are a mix of function prototypes with and without extern
    in the kernel sources. Standardize on not using extern for
    function prototypes.

    Function prototypes don't need to be written with extern.
    extern is assumed by the compiler. Its use is as unnecessary as
    using auto to declare automatic/local variables in a block.

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     

24 Apr, 2013

1 commit


18 Mar, 2013

1 commit

  • caif_shm is an old implementation
    caif_shm will be replaced by caif_virtio

    [ As explained by Linus Walleij: "U5500 used this, but was cancelled
    and the silicon did not reach anyone outside ST-Ericsson. Then for
    the next platforms, we have gone for the leaner & cleaner approach
    of using virtio, rpmesg and rproc." ]

    Signed-off-by: Erwan Yvin
    Acked-by: Linus Walleij
    Acked-by: Sjur Brendeland
    Signed-off-by: David S. Miller

    Erwan Yvin
     

26 Jun, 2012

3 commits

  • Remove use of module parameters on caif hsi device, as
    rtnl configuration parameters are already supported.

    All caif hsi configuration data is put in cfhsi_config,
    and default values in hsi_default_config.

    Signed-off-by: Sjur Brændeland
    Signed-off-by: David S. Miller

    Sjur Brændeland
     
  • Remove use of struct platform_device, and replace it with
    struct cfhsi_ops. Updated variable names in the same
    spirit:
    cfhsi_get_dev to cfhsi_get_ops,
    cfhsi->dev to cfhsi->ops and,
    cfhsi->dev.drv to cfhsi->ops->cb_ops.

    Signed-off-by: Sjur Brændeland
    Signed-off-by: David S. Miller

    Sjur Brændeland
     
  • Add RTNL support for managing the caif hsi interface.
    The HSI HW interface is no longer registering as a device,
    instead we use symbol_get to get hold of the HSI API.

    Signed-off-by: Sjur Brændeland
    Signed-off-by: David S. Miller

    Sjur Brændeland
     

13 Apr, 2012

2 commits

  • Implement aggregation algorithm, combining more data into a single
    HSI transfer. 4 different traffic categories are supported:
    1. TC_PRIO_CONTROL .. TC_PRIO_MAX (CTL)
    2. TC_PRIO_INTERACTIVE (VO)
    3. TC_PRIO_INTERACTIVE_BULK (VI)
    4. TC_PRIO_BESTEFFORT, TC_PRIO_BULK, TC_PRIO_FILLER (BEBK)

    Signed-off-by: Dmitry Tarnyagin
    Signed-off-by: David S. Miller

    Dmitry Tarnyagin
     
  • Set traffic class for CAIF packets, based on socket
    priority, CAIF protocol type, or type of message.

    Traffic class mapping for different packet types:
    - control: TC_PRIO_CONTROL;
    - flow control: TC_PRIO_CONTROL;
    - at: TC_PRIO_CONTROL;
    - rfm: TC_PRIO_INTERACTIVE_BULK;
    - other sockets: equals to socket's TC;
    - network data: no change.

    Signed-off-by: Dmitry Tarnyagin
    Signed-off-by: David S. Miller

    Dmitry Tarnyagin
     

05 Feb, 2012

1 commit


07 Dec, 2011

1 commit


01 Dec, 2011

3 commits


19 Oct, 2011

4 commits


02 Jun, 2011

1 commit

  • This patch introduces the CAIF HSI Protocol Driver for the
    CAIF Link Layer.

    This driver implements a platform driver to accommodate for a
    platform specific HSI devices. A general platform driver is not
    possible as there are no HSI side Kernel API defined.

    Signed-off-by: Sjur Brændeland
    Signed-off-by: David S. Miller

    Dmitry.Tarnyagin
     

23 May, 2011

1 commit


16 May, 2011

8 commits


12 Apr, 2011

1 commit

  • Cleanup of new CAIF code.
    * make local functions static
    * remove code that is never used
    * expand get_caif_conf() since wrapper is no longer needed
    * make args to comparison functions const
    * rename connect_req_to_link_param to keep exported names
    consistent

    Compile tested only.

    Signed-off-by: Stephen Hemminger
    Acked-by: Sjur Brændeland
    Signed-off-by: David S. Miller

    Stephen Hemminger
     

31 Mar, 2011

1 commit


16 Nov, 2010

1 commit


04 Nov, 2010

2 commits


28 Oct, 2010

1 commit


29 Jun, 2010

1 commit

  • This patch introduces the CAIF SPI Protocol Driver for
    CAIF Link Layer.

    This driver implements a platform driver to accommodate for a
    platform specific SPI device. A general platform driver is not
    possible as there are no SPI Slave side Kernel API defined.
    A sample CAIF SPI Platform device can be found in
    .../Documentation/networking/caif/spi_porting.txt

    Signed-off-by: Sjur Braendeland
    Signed-off-by: David S. Miller

    Sjur Braendeland
     

21 Jun, 2010

3 commits


24 May, 2010

1 commit


29 Apr, 2010

1 commit

  • Changes:
    o Function cfcnfg_disconn_adapt_layer is changed to do asynchronous
    disconnect, not waiting for any response from the modem. Due to this
    the function cfcnfg_linkdestroy_rsp does nothing anymore.
    o Because disconnect may take down a connection before a connect response
    is received the function cfcnfg_linkup_rsp is checking if the client is
    still waiting for the response, if not a disconnect request is sent to
    the modem.
    o cfctrl is no longer keeping track of pending disconnect requests.
    o Added function cfctrl_cancel_req, which is used for deleting a pending
    connect request if disconnect is done before connect response is received.
    o Removed unused function cfctrl_insert_req2
    o Added better handling of connect reject from modem.

    Signed-off-by: Sjur Braendeland
    Signed-off-by: David S. Miller

    Sjur Braendeland