Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2431062imm; Thu, 7 Jun 2018 10:26:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMotSe/5fcMFHDfG2R2rZUPawtpIXyFJADVeOaQDTjjc7Euwd57QqStWXwrqL4dHpKz03/ X-Received: by 2002:a17:902:321:: with SMTP id 30-v6mr2938639pld.122.1528392413023; Thu, 07 Jun 2018 10:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528392412; cv=none; d=google.com; s=arc-20160816; b=Z+K/JxMbtsYuxoR+qQJ+qG5vof3z+//7TkK1uhYxWr1ilTeGerIwHvulu0b627kx8H 0VmKlXBNq1JvRE3XK9I0wJqwcvbSPWuWhnl4N8SlLhtDZFeuRQD66ucsHI41l2lozb8t 01QteXIOtk3c49zDGAb5PUeWU9/K/zAhbJ/EvHVtAQ0ewzR2Lg7jaUw2m+yyx8oVl+Vv VM9LjdAfNkUz89b34jj7KiBLPm7SjNIhzBjpN+2xOJbPPf8L6DmNcnJYaz6xFZ4qqp/6 4HUL1C1ptOIp2y1t+1reyJLOqo8jOq9TuR8XWfsVHOs4tgrKMgfhOjGMQc7mV45JbLPm Z6Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=5KJr0fa8w6r5Wbg2TrMLCvgwpZMNkqGHBmOdVg/nQbA=; b=zh4seL63Ni5XA5bOQ1guiDfbxCxINX66RhFplPEAgKVx6CMT7crD7gISittr7imvHU lg4ZAj8lfeL1DzwqMT16Sv6TYvqFWq3uYB7ryGQjtTPBD2DTWZnQKT0gq0fa4ggjitia lhhh9SqufnZEyLAACAYyab+I/nfwDW7eavTwl2+KTp/7LeSw+ymNRbgiXJaDW0P2xa2L X2pjaDoiaa9aBMudemte4MA9xxwegeg1S1una7mDqVBjh9m5YdhJ+gHlnF5OGlIteTM5 sIJwEGPutbT/xPLwi92B3FsZhFLtjV5Z1HlREQOgHoq1DEImyF7gtYk2pLYD5XNUHzJy EYzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t62-v6si6450951pgb.582.2018.06.07.10.26.22; Thu, 07 Jun 2018 10:26:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933494AbeFGOcn (ORCPT + 99 others); Thu, 7 Jun 2018 10:32:43 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40285 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932911AbeFGOcl (ORCPT ); Thu, 7 Jun 2018 10:32:41 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbo-0005Zp-QN; Thu, 07 Jun 2018 15:09:48 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb2-0002s6-Oe; Thu, 07 Jun 2018 15:09:00 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Greg Kroah-Hartman" , "Oliver Neukum" , "Hans de Goede" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 134/410] USB: cdc-acm: Do not log urb submission errors on disconnect In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit f0386c083c2ce85284dc0b419d7b89c8e567c09f upstream. When disconnected sometimes the cdc-acm driver logs errors like these: [20278.039417] cdc_acm 2-2:2.1: urb 9 failed submission with -19 [20278.042924] cdc_acm 2-2:2.1: urb 10 failed submission with -19 [20278.046449] cdc_acm 2-2:2.1: urb 11 failed submission with -19 [20278.049920] cdc_acm 2-2:2.1: urb 12 failed submission with -19 [20278.053442] cdc_acm 2-2:2.1: urb 13 failed submission with -19 [20278.056915] cdc_acm 2-2:2.1: urb 14 failed submission with -19 [20278.060418] cdc_acm 2-2:2.1: urb 15 failed submission with -19 Silence these by not logging errors when the result is -ENODEV. Signed-off-by: Hans de Goede Acked-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/class/cdc-acm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -378,7 +378,7 @@ static int acm_submit_read_urb(struct ac res = usb_submit_urb(acm->read_urbs[index], mem_flags); if (res) { - if (res != -EPERM) { + if (res != -EPERM && res != -ENODEV) { dev_err(&acm->data->dev, "%s - usb_submit_urb failed: %d\n", __func__, res);