Received: by 10.223.176.5 with SMTP id f5csp1058038wra; Fri, 2 Feb 2018 10:26:31 -0800 (PST) X-Google-Smtp-Source: AH8x226KL1d9vRJ7vSejyE1fVQrsTWgFEFlBQmJ8I5jkK4wsG+MX2wrfaGaPhEsX03Pwjlr7K6fU X-Received: by 10.101.80.69 with SMTP id k5mr21317362pgo.449.1517595991329; Fri, 02 Feb 2018 10:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517595991; cv=none; d=google.com; s=arc-20160816; b=Y6AEiCeh/OqB8YURBW03XiaSJJ4HTzAXQaBIPBsSx8+F5QzRLDWny4FNBKY9We4aTl 4TzAxbWCfaZz4fZssDwbsfgua6cPZ+n6rRh8wcsKo4cbr5wiXfhgAiRb4G6JIHOtz8J2 nx0D7ZIKSePK2QVtvMDfm+az7vLLXe+70pwUvxfUP8t8ueJpT5ZEiAByFIDGX2EYKFxy dfZQIPIK6R/kl4aCY3iXJeSj5oj30o3AS+aTYzrlYjdyH7P+kXPQnCgiILZqNmDGTImo qZdZoep8kRq2lXt0vB+D4oPDYAOFKI5/D3j9BWrDXCOf7Q7G7O5osbHIooNfntn4pX9+ Deww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=cm3t7wtCMBpCPDkR8GsfcMo8pu10Q4wo+tUKkicZFrw=; b=yVwOXt1y57YS2PTfUtUYcDVGxn/t2IM0ggJA33NsGUiap7MZ8aJeFHDbMrgwNCTffR OWMx3XCYVIKYwbPeBI0g0iaFrkG48ZQqZN8mGjNqBLB2hiRK/yqskogh9tb8r6JMr023 H04ZC2fPiPNEgmkZuCd37j4vzyjtVctYkT4xXlgOrfIYw1i9FdbeBXJzKEiouEBd3b6l xjv7nlXEl0bchJ0mGEQJlGmuGJgNkXwE+IKaLH6mxVcHvbtYY26dJ0B2/xcWjoBF46IV WuFHIu4ZSFcFibrsO5wSzrOle+5vGTuqTjE2nxOtTkZkBk6vpXNqkaV2dR4D8rZNj9xw Gq0Q== 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 w18si1776375pge.563.2018.02.02.10.26.16; Fri, 02 Feb 2018 10:26:31 -0800 (PST) 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 S1754709AbeBBSZc (ORCPT + 99 others); Fri, 2 Feb 2018 13:25:32 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35294 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751972AbeBBRB6 (ORCPT ); Fri, 2 Feb 2018 12:01:58 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BEF8FDFF; Fri, 2 Feb 2018 17:01:57 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Oliver Neukum Subject: [PATCH 4.4 57/67] USB: cdc-acm: Do not log urb submission errors on disconnect Date: Fri, 2 Feb 2018 17:58:26 +0100 Message-Id: <20180202140821.585669569@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140815.091718203@linuxfoundation.org> References: <20180202140815.091718203@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable 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 --- 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 @@ -377,7 +377,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);