public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Greg KH <greg@kroah•com>, Arnd Bergmann <arnd@arndb•de>
Cc: linux-next@vger•kernel.org, linux-kernel@vger•kernel.org,
	Alexey Khoroshilov <khoroshilov@ispras•ru>,
	Jiri Slaby <jslaby@suse•cz>, Joe Perches <joe@perches•com>
Subject: linux-next: manual merge of the char-misc tree with the tty tree
Date: Mon, 11 Feb 2013 16:37:14 +1100	[thread overview]
Message-ID: <20130211163714.289cb3288ed5098c7b493af3@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 4124 bytes --]

Hi all,

Today's linux-next merge of the char-misc tree got a conflict in
drivers/char/pcmcia/synclink_cs.c between commits 2e124b4a390c ("TTY:
switch tty_flip_buffer_push") and 9fe8074b82ed ("TTY: synclink: Convert + to
| for bit operations") from the tty tree and commit 3d55399391c8 ("pcmcia: synclink_cs: cleanup checkpatch warnings") from the char-misc tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au

diff --cc drivers/char/pcmcia/synclink_cs.c
index d0c9852,29f6bec..0000000
--- a/drivers/char/pcmcia/synclink_cs.c
+++ b/drivers/char/pcmcia/synclink_cs.c
@@@ -765,8 -771,11 +771,8 @@@ static void bh_handler(struct work_stru
  	struct tty_struct *tty;
  	int action;
  
 -	if (!info)
 -		return;
 -
  	if (debug_level >= DEBUG_LEVEL_BH)
- 		printk( "%s(%d):bh_handler(%s) entry\n",
+ 		printk("%s(%d):bh_handler(%s) entry\n",
  			__FILE__,__LINE__,info->device_name);
  
  	info->bh_running = true;
@@@ -889,8 -898,16 +896,8 @@@ static void rx_ready_async(MGSLPC_INFO 
  	unsigned char data, status, flag;
  	int fifo_count;
  	int work = 0;
-  	struct mgsl_icount *icount = &info->icount;
+ 	struct mgsl_icount *icount = &info->icount;
  
 -	if (!tty) {
 -		/* tty is not available anymore */
 -		issue_command(info, CHA, CMD_RXRESET);
 -		if (debug_level >= DEBUG_LEVEL_ISR)
 -			printk("%s(%d):rx_ready_async(tty=NULL)\n", __FILE__, __LINE__);
 -		return;
 -	}
 -
  	if (tcd) {
  		/* early termination, get FIFO count from RBCL register */
  		fifo_count = (unsigned char)(read_reg(info, CHA+RBCL) & 0x1f);
@@@ -1342,8 -1359,8 +1349,8 @@@ static void shutdown(MGSLPC_INFO * info
  	/* TODO:disable interrupts instead of reset to preserve signal states */
  	reset_device(info);
  
-  	if (!tty || tty->termios.c_cflag & HUPCL) {
+ 	if (!tty || tty->termios.c_cflag & HUPCL) {
 -		info->serial_signals &= ~(SerialSignal_DTR + SerialSignal_RTS);
 +		info->serial_signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
  		set_signals(info);
  	}
  
@@@ -1405,12 -1422,12 +1412,12 @@@ static void mgslpc_change_params(MGSLPC
  
  	cflag = tty->termios.c_cflag;
  
 -	/* if B0 rate (hangup) specified then negate DTR and RTS */
 -	/* otherwise assert DTR and RTS */
 +	/* if B0 rate (hangup) specified then negate RTS and DTR */
 +	/* otherwise assert RTS and DTR */
-  	if (cflag & CBAUD)
+ 	if (cflag & CBAUD)
 -		info->serial_signals |= SerialSignal_RTS + SerialSignal_DTR;
 +		info->serial_signals |= SerialSignal_RTS | SerialSignal_DTR;
  	else
 -		info->serial_signals &= ~(SerialSignal_RTS + SerialSignal_DTR);
 +		info->serial_signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
  
  	/* byte size and parity */
  
@@@ -2301,10 -2318,10 +2308,10 @@@ static void mgslpc_set_termios(struct t
  	/* Handle transition to B0 status */
  	if (old_termios->c_cflag & CBAUD &&
  	    !(tty->termios.c_cflag & CBAUD)) {
 -		info->serial_signals &= ~(SerialSignal_RTS + SerialSignal_DTR);
 +		info->serial_signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
- 		spin_lock_irqsave(&info->lock,flags);
- 	 	set_signals(info);
- 		spin_unlock_irqrestore(&info->lock,flags);
+ 		spin_lock_irqsave(&info->lock, flags);
+ 		set_signals(info);
+ 		spin_unlock_irqrestore(&info->lock, flags);
  	}
  
  	/* Handle transition away from B0 status */
@@@ -2462,13 -2479,13 +2469,13 @@@ static void dtr_rts(struct tty_port *po
  	MGSLPC_INFO *info = container_of(port, MGSLPC_INFO, port);
  	unsigned long flags;
  
- 	spin_lock_irqsave(&info->lock,flags);
+ 	spin_lock_irqsave(&info->lock, flags);
  	if (onoff)
 -		info->serial_signals |= SerialSignal_RTS + SerialSignal_DTR;
 +		info->serial_signals |= SerialSignal_RTS | SerialSignal_DTR;
  	else
 -		info->serial_signals &= ~SerialSignal_RTS + SerialSignal_DTR;
 +		info->serial_signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
  	set_signals(info);
- 	spin_unlock_irqrestore(&info->lock,flags);
+ 	spin_unlock_irqrestore(&info->lock, flags);
  }
  
  

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2013-02-11  5:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-11  5:37 Stephen Rothwell [this message]
2013-02-11 14:37 ` linux-next: manual merge of the char-misc tree with the tty tree Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2021-01-29  4:53 Stephen Rothwell
2021-01-29  7:34 ` Greg KH
2021-02-14 22:03 ` Stephen Rothwell
2013-01-17  2:54 Stephen Rothwell
2013-01-17  9:40 ` Samuel Iglesias Gonsalvez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130211163714.289cb3288ed5098c7b493af3@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=arnd@arndb$(echo .)de \
    --cc=greg@kroah$(echo .)com \
    --cc=joe@perches$(echo .)com \
    --cc=jslaby@suse$(echo .)cz \
    --cc=khoroshilov@ispras$(echo .)ru \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox