Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752538AbbE0DCN (ORCPT ); Tue, 26 May 2015 23:02:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36555 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751603AbbE0DCM (ORCPT ); Tue, 26 May 2015 23:02:12 -0400 Date: Tue, 26 May 2015 20:02:12 -0700 From: Greg KH To: "Zhang, Yanmin" Cc: linux-kernel@vger.kernel.org, xinhuix.pan@intel.com, alan@linux.intel.com Subject: Re: [PATCH V2 3/3] n_gsm: wake up ldisc tty before using it Message-ID: <20150527030212.GB9124@kroah.com> References: <556530D9.5060506@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <556530D9.5060506@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1334 Lines: 43 On Wed, May 27, 2015 at 10:50:01AM +0800, Zhang, Yanmin wrote: > Wake up ldisc device before calling its driver to access the device. > > Signed-off-by: Zhang Yanmin > > --- > > drivers/tty/n_gsm.c | 40 +++++++++++++++++++++++++++++++++++++++- > 1 file changed, 39 insertions(+), 1 deletion(-) > > diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c > index 2c34c32..40671fa 100644 > --- a/drivers/tty/n_gsm.c > +++ b/drivers/tty/n_gsm.c > @@ -62,6 +62,7 @@ > #include > #include > #include > +#include > > static int debug; > module_param(debug, int, 0600); > @@ -555,6 +556,27 @@ static int gsm_stuff_frame(const u8 *input, u8 *output, int len) > return olen; > } > > +static int pm_runtime_get_sync_tty(struct tty_struct *tty) > +{ > + int ret = 0; > + > + /*Wakeup parent as tty itself doesn't enable runtime*/ No spaces in your comment? Anyway, this is corrupted and can't be applied, please fix up your email client and try it again... greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/