summaryrefslogtreecommitdiffstats
path: root/drivers/net/caif/caif_serial.c
Commit message (Collapse)AuthorAgeFilesLines
* caif: Use link layer MTU instead of fixed MTUSjur Braendeland2010-06-201-1/+0
| | | | | | | | | Previously CAIF supported maximum transfer size of ~4050. The transfer size is now calculated dynamically based on the link layers mtu size. Signed-off-by: Sjur Braendeland@stericsson.com Signed-off-by: David S. Miller <davem@davemloft.net>
* caif: add newlines after declarations in caif_serial.cDan Carpenter2010-06-021-0/+9
| | | | | | | | I added newlines after the declarations in caif_serial.c. This is normal kernel style, although I can't see anywhere it's documented. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* caif: remove unneeded variable from caif_net_open()Dan Carpenter2010-06-021-2/+0
| | | | | | | | We don't use the "ser" variable so I've removed it. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* caif: Ldisc add permission check and mem-alloc error checkSjur Braendeland2010-04-281-1/+4
| | | | | | | | | | Changes: o Added permission checks for installing. CAP_SYS_ADMIN and CAP_SYS_TTY_CONFIG can install the ldisc. o Check if allocation of skb was successful. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* caif: tty's are kref objects so take a referenceAlan Cox2010-04-071-1/+2
| | | | | | | I don't think this can be abused in this case but do things properly. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* caif: check write operationsAlan Cox2010-04-071-0/+4
| | | | | | | | write is optional for a tty device. Check that we have a write op rather than calling NULL. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net-caif-driver: add CAIF serial driver (ldisc)Sjur Braendeland2010-03-301-0/+441
Add CAIF Serial driver. This driver is implemented as a line discipline. caif_serial uses the following module parameters: ser_use_stx - specifies if STart of frame eXtension is in use. ser_loop - sets the interface in loopback mode. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
OpenPOWER on IntegriCloud