Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214541
b: refs/heads/master
c: 20cbd3e
h: refs/heads/master
i:
  214539: df94dda
v: v3
  • Loading branch information
Gerrit Renker committed Sep 15, 2010
1 parent a662b2a commit 19e3560
Show file tree
Hide file tree
Showing 24 changed files with 283 additions and 373 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a19eb753a591f8b39946b7fda91b25f07454835
refs/heads/master: 20cbd3e120a0c20bebe420e1fed0e816730bb988
11 changes: 5 additions & 6 deletions trunk/drivers/isdn/i4l/isdn_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/isdn.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>
#include "isdn_common.h"
#include "isdn_tty.h"
#ifdef CONFIG_ISDN_AUDIO
Expand All @@ -28,7 +28,6 @@

/* Prototypes */

static DEFINE_MUTEX(modem_info_mutex);
static int isdn_tty_edit_at(const char *, int, modem_info *);
static void isdn_tty_check_esc(const u_char *, u_char, int, int *, u_long *);
static void isdn_tty_modem_reset_regs(modem_info *, int);
Expand Down Expand Up @@ -1355,14 +1354,14 @@ isdn_tty_tiocmget(struct tty_struct *tty, struct file *file)
if (tty->flags & (1 << TTY_IO_ERROR))
return -EIO;

mutex_lock(&modem_info_mutex);
lock_kernel();
#ifdef ISDN_DEBUG_MODEM_IOCTL
printk(KERN_DEBUG "ttyI%d ioctl TIOCMGET\n", info->line);
#endif

control = info->mcr;
status = info->msr;
mutex_unlock(&modem_info_mutex);
unlock_kernel();
return ((control & UART_MCR_RTS) ? TIOCM_RTS : 0)
| ((control & UART_MCR_DTR) ? TIOCM_DTR : 0)
| ((status & UART_MSR_DCD) ? TIOCM_CAR : 0)
Expand All @@ -1386,7 +1385,7 @@ isdn_tty_tiocmset(struct tty_struct *tty, struct file *file,
printk(KERN_DEBUG "ttyI%d ioctl TIOCMxxx: %x %x\n", info->line, set, clear);
#endif

mutex_lock(&modem_info_mutex);
lock_kernel();
if (set & TIOCM_RTS)
info->mcr |= UART_MCR_RTS;
if (set & TIOCM_DTR) {
Expand All @@ -1408,7 +1407,7 @@ isdn_tty_tiocmset(struct tty_struct *tty, struct file *file,
isdn_tty_modem_hup(info, 1);
}
}
mutex_unlock(&modem_info_mutex);
unlock_kernel();
return 0;
}

Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/isdn/mISDN/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/slab.h>
#include <linux/mISDNif.h>
#include <linux/kthread.h>
#include <linux/smp_lock.h>
#include "core.h"

static u_int *debug;
Expand Down Expand Up @@ -204,7 +205,13 @@ mISDNStackd(void *data)
struct mISDNstack *st = data;
int err = 0;

#ifdef CONFIG_SMP
lock_kernel();
#endif
sigfillset(&current->blocked);
#ifdef CONFIG_SMP
unlock_kernel();
#endif
if (*debug & DEBUG_MSG_THREAD)
printk(KERN_DEBUG "mISDNStackd %s started\n",
dev_name(&st->dev->dev));
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/pcbit/edss1.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "callbacks.h"


const char * const isdn_state_table[] = {
char * isdn_state_table[] = {
"Closed",
"Call initiated",
"Overlap sending",
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/pcbit/edss1.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct fsm_timer_entry {
unsigned long timeout; /* in seconds */
};

extern const char * const isdn_state_table[];
extern char * isdn_state_table[];

void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *,
unsigned short event, struct callb_data *);
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/3c515.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,7 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n");

{
static const char * const ram_split[] = {
"5:3", "3:1", "1:1", "3:5"
};
char *ram_split[] = { "5:3", "3:1", "1:1", "3:5" };
__u32 config;
EL3WINDOW(3);
vp->available_media = inw(ioaddr + Wn3_Options);
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/eth16i.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,7 @@ static void eth16i_initialize(struct net_device *dev, int boot)

/* Set interface port type */
if(boot) {
static const char * const porttype[] = {
"BNC", "DIX", "TP", "AUTO", "FROM_EPROM"
};
char *porttype[] = {"BNC", "DIX", "TP", "AUTO", "FROM_EPROM" };

switch(dev->if_port)
{
Expand Down
19 changes: 14 additions & 5 deletions trunk/drivers/net/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -7462,12 +7462,10 @@ static int niu_add_ethtool_tcam_entry(struct niu *np,
if (fsp->flow_type == IP_USER_FLOW) {
int i;
int add_usr_cls = 0;
int ipv6 = 0;
struct ethtool_usrip4_spec *uspec = &fsp->h_u.usr_ip4_spec;
struct ethtool_usrip4_spec *umask = &fsp->m_u.usr_ip4_spec;

if (uspec->ip_ver != ETH_RX_NFC_IP4)
return -EINVAL;

niu_lock_parent(np, flags);

for (i = 0; i < NIU_L3_PROG_CLS; i++) {
Expand Down Expand Up @@ -7496,7 +7494,9 @@ static int niu_add_ethtool_tcam_entry(struct niu *np,
default:
break;
}
ret = tcam_user_ip_class_set(np, class, 0,
if (uspec->ip_ver == ETH_RX_NFC_IP6)
ipv6 = 1;
ret = tcam_user_ip_class_set(np, class, ipv6,
uspec->proto,
uspec->tos,
umask->tos);
Expand Down Expand Up @@ -7553,7 +7553,16 @@ static int niu_add_ethtool_tcam_entry(struct niu *np,
ret = -EINVAL;
goto out;
case IP_USER_FLOW:
niu_get_tcamkey_from_ip4fs(fsp, tp, l2_rdc_table, class);
if (fsp->h_u.usr_ip4_spec.ip_ver == ETH_RX_NFC_IP4) {
niu_get_tcamkey_from_ip4fs(fsp, tp, l2_rdc_table,
class);
} else {
/* Not yet implemented */
netdev_info(np->dev, "niu%d: In %s(): usr flow for IPv6 not implemented\n",
parent->index, __func__);
ret = -EINVAL;
goto out;
}
break;
default:
netdev_info(np->dev, "niu%d: In %s(): Unknown flow type %d\n",
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/pcmcia/3c589_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static int tc589_config(struct pcmcia_device *link)
__be16 *phys_addr;
int ret, i, j, multi = 0, fifo;
unsigned int ioaddr;
static const char * const ram_split[] = {"5:3", "3:1", "1:1", "3:5"};
char *ram_split[] = {"5:3", "3:1", "1:1", "3:5"};
u8 *buf;
size_t len;

Expand Down
Loading

0 comments on commit 19e3560

Please sign in to comment.