Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4271878pxu; Mon, 12 Oct 2020 14:28:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT+UXfD1pTa5VqMJz139FVdnYFbKtI+UQj62M5I4g8LgW4MHnttmoAuU6poVXNLwfyIAh3 X-Received: by 2002:a05:6402:31ac:: with SMTP id dj12mr16501366edb.20.1602538088388; Mon, 12 Oct 2020 14:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602538088; cv=none; d=google.com; s=arc-20160816; b=lN2K8G5B3m6yaFUQ0PdHkWlSFDG8zwD5zv2WGfymwQKiENihp/rU/Bowe9wgFf3DuU LIWmjeoZsSEGLOlAQNg8d6oS9FFy8hvZ0OF2TBSxay1Z1JuJ/ZzdmunM+89bKe8ZCSbH 4Mkk16cAISfHwGYvGwPLxa4puTfYeIPpG6477eR55GzNOwHpExrhekvmz4VyaUJLAT6d ovZft/gwJ/PMhreHvNrFcCSTKBtuysp17++B6hvdeMMdl5/QafV7RiX9lFpV17wqTL2+ 6KgZExc8NWVBqdeWuNEw8rfxMHUjtIKefL2FLvRcQFxu7cEx5NPjPleeemZXzpUaAFW8 aS2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ypzb0TWByIdbu0pii9bXFkZPKDDfRiEMMi+0Ql3twM8=; b=Qed/Fsc8lvbb/wEbhZMI4f1C1zYGvnniGUr1j6/p4HmNmojmRG1fqQBGMBrzqPOJR1 DooYApX52TtVMWN+wGC2aWyBeIL4ZgmZpVbogigNZAGZHKCTSjLL9vAbV5uonk70Lusi L9vW3uBSi+2kJvlcRmfoQ4hp0I2JQjPiC40gfzewHAsb6sFYQRionKS6u3lEwfQX/QBG 3oOlO8NZvoWrwRj9Wz4TkexpPzth3pxHEAc+ydmowGDSOw02Gqc+w57hNPGs91XunSum waXXRWL4YQVncmfjG2q7XAE7TMR4hfP3DUONm9EM6GsEMXZgRsHJX342RQJpPrnLLlYT fw1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Uvs/GUYI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj17si13111922ejb.12.2020.10.12.14.27.45; Mon, 12 Oct 2020 14:28:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Uvs/GUYI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730166AbgJLNe3 (ORCPT + 99 others); Mon, 12 Oct 2020 09:34:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:36768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730583AbgJLNeX (ORCPT ); Mon, 12 Oct 2020 09:34:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FF5F221FE; Mon, 12 Oct 2020 13:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602509638; bh=XHhT+BWI5pRqE+V74UmBpgVn+ChE0exEXSay7jL+qHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uvs/GUYIkobip4yzjoldn/PAL5ilLhnprLPld9KBnktCAQMlXHatVqVaeByH6HrqH Tpxzc9dFO/lgaQH3ib9cwxgIGO00Yrw0XI1Z8qChRzr0IkDFgid4wwPOFBURiqfipU /Hozm0SQCYGQ9Rcue4uLRpjeG96V59ex0uB+31qQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olympia Giannou , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 08/54] rndis_host: increase sleep time in the query-response loop Date: Mon, 12 Oct 2020 15:26:30 +0200 Message-Id: <20201012132629.979198020@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132629.585664421@linuxfoundation.org> References: <20201012132629.585664421@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Olympia Giannou [ Upstream commit 4202c9fdf03d79dedaa94b2c4cf574f25793d669 ] Some WinCE devices face connectivity issues via the NDIS interface. They fail to register, resulting in -110 timeout errors and failures during the probe procedure. In this kind of WinCE devices, the Windows-side ndis driver needs quite more time to be loaded and configured, so that the linux rndis host queries to them fail to be responded correctly on time. More specifically, when INIT is called on the WinCE side - no other requests can be served by the Client and this results in a failed QUERY afterwards. The increase of the waiting time on the side of the linux rndis host in the command-response loop leaves the INIT process to complete and respond to a QUERY, which comes afterwards. The WinCE devices with this special "feature" in their ndis driver are satisfied by this fix. Signed-off-by: Olympia Giannou Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/rndis_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c index 4f4f71b2966ba..9ccbdf1431063 100644 --- a/drivers/net/usb/rndis_host.c +++ b/drivers/net/usb/rndis_host.c @@ -213,7 +213,7 @@ int rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen) dev_dbg(&info->control->dev, "rndis response error, code %d\n", retval); } - msleep(20); + msleep(40); } dev_dbg(&info->control->dev, "rndis response timeout\n"); return -ETIMEDOUT; -- 2.25.1