linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Anthony Mallet <anthony.mallet@laas.fr>
Cc: Oliver Neukum <oneukum@suse.com>, linux-usb@vger.kernel.org
Subject: Re: usb cdc-acm TIOCSSERIAL may wrongly report EPERM
Date: Wed, 4 Mar 2020 10:01:20 +0100	[thread overview]
Message-ID: <20200304090120.GA1429273@kroah.com> (raw)
In-Reply-To: <24141.6739.313167.448875@beetle.laas.fr>

On Wed, Feb 19, 2020 at 12:21:55PM +0100, Anthony Mallet wrote:
> On Wednesday 19 Feb 2020, at 10:56, Oliver Neukum wrote:
> > thank you for the detailed report about an unusual bug. Could you
> > test the attached patch?
> 
> I did not actually run it yet, but at first sight it seems that it will
> mishandle the ASYNC_CLOSING_WAIT_NONE case.
> 
> I attach patch 0002 which should handle all cases. I also inverted the
> logic of the CAP_SYS_ADMIN test, so that the delays are changed only
> if the rounded values (in 1/100th of seconds) are actually changed.
> 
> While I was there, I checked what other drivers do (it seems that many
> have the same issue). Something I also noticed is that the units are
> also maybe mishandled: internally the values seem to be in 'jiffies',
> not in msecs. See for instance:
> https://github.com/torvalds/linux/blob/701a9c8092ddf299d7f90ab2d66b19b4526d1186/drivers/tty/serial/serial_core.c#L780
> 
> So I added patch 0001 that uses the jiffies conversion functions. If
> you prefer to discuss this in a separate thread please tell me, I will
> redo just patch 0002 without this change.
> 
> 
> > I have taken the liberty of presuming to add your 'Reported-and-tested-by'.
> 
> Yes, no problem. Thank you.
> I hope my patches follow the required format, I'm not sure about all
> the details.


Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- Your patch was attached, please place it inline so that it can be
  applied directly from the email message itself.

- Your patch does not have a Signed-off-by: line.  Please read the
  kernel file, Documentation/SubmittingPatches and resend it after
  adding that line.  Note, the line needs to be in the body of the
  email, before the patch, not at the bottom of the patch or in the
  email signature.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

      parent reply	other threads:[~2020-03-04  9:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18 16:48 usb cdc-acm TIOCSSERIAL may wrongly report EPERM Anthony Mallet
2020-02-19  9:56 ` Oliver Neukum
2020-02-19 11:21   ` Anthony Mallet
2020-02-20  9:46     ` Oliver Neukum
2020-02-20 10:00       ` Greg KH
2020-02-20 10:27     ` Oliver Neukum
2020-03-04  9:01     ` Greg KH [this message]

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=20200304090120.GA1429273@kroah.com \
    --to=greg@kroah.com \
    --cc=anthony.mallet@laas.fr \
    --cc=linux-usb@vger.kernel.org \
    --cc=oneukum@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).