Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3444400pxk; Mon, 28 Sep 2020 18:42:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGJ8mP8i88HPzoP563WtREe1WFSmwuqtgTMwveGhl5dnrWxM53gdGbvUgfx+ep8JbVLW28 X-Received: by 2002:a50:a418:: with SMTP id u24mr768922edb.193.1601343734538; Mon, 28 Sep 2020 18:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601343734; cv=none; d=google.com; s=arc-20160816; b=kzrmBRYv7hEdREhyRTpEx4U9zQs3aVLtea8o6BfHdhHNxFIpm327bZco3gKEcsD1a3 ROC0Fy+gq0RVt7aSe3oTP5VlFLf97bb2X9wzCl8PHNvvycTc14TOPh2QbRTvr0N2cOTZ RsFZUKkZ+klDBFLD0VqfgZaXWBCHDcdy1CkKHTsNasdAkqujqRdzrsgbvoldxSnwwYFn a77DfQ/roMpBJvF6gS4BmrieCS/SoHpgnJscG1T77KbFS9AypumzRIQoDXIc3JB29ivN nCbhrQxUIhBCa9uGnyKyIX73hekHAvMm5QxBLqkNEfdkcGlyC8x94mf7cfoJGMKuQoBT UNQQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aa8bR9NpItgeIjl2itZGNkadWXFG97KQBd3xzT+HA1o=; b=UrKk5MqpMT6jFjBSAmgJOqWyXjcwdq7BN3dTmAAvOiQf8Da6v/pN0GJks5xUlM8stT Ufg8pnjN9I20U3RkSqYyKV8kKiSl8hyuikrEVbUFu9LCymk5G1rhxiHqwJF83NibMg2r 0InJqtsRRhTBGqKLK5Q95H8Tgo3b46elKSF07+otr256kXaKP+NkU3Djlpwhq8F3gggR QzOUeYxz0eEkfpPZ4lYn3+oR7z0uGtW+5ZKmG7KdWDCS1XJx78TDBh2XLlK/bVqOXWAY d+tXkLqtVPeg+bdx8NGx9Lt0elFhru6iUwAZ/DfdfJ4um9kxFDueBOvTAU0+RCZt6mGv CuvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qjp4i2nz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si1764564edq.257.2020.09.28.18.41.47; Mon, 28 Sep 2020 18:42:14 -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=Qjp4i2nz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727906AbgI2Bgc (ORCPT + 99 others); Mon, 28 Sep 2020 21:36:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:39730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727386AbgI2Ban (ORCPT ); Mon, 28 Sep 2020 21:30:43 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBDBD21734; Tue, 29 Sep 2020 01:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601343042; bh=jCAJpA4MoOkk1Y3avzyE2lD63xoo8nkUKvGvEriN85g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qjp4i2nzbPPmi3dKUIuhXdeshi2KZmNcqZEs7/HaPhbr5OuyGb7/D1ewiOh6Xax7D cjHbzhOnL9oIy+/7fG3e1i/G4bx+HOST/GhzfM5XkBCtxCWOjNvAV8XEiPXutGo7IS NZxtAG7WLvh7RWo70S4C+mElE8scetxtYSovJoqI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Olympia Giannou , Olympia Giannou , "David S . Miller" , Sasha Levin , linux-usb@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.8 11/29] rndis_host: increase sleep time in the query-response loop Date: Mon, 28 Sep 2020 21:30:08 -0400 Message-Id: <20200929013027.2406344-11-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200929013027.2406344-1-sashal@kernel.org> References: <20200929013027.2406344-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 bd9c07888ebb4..6fa7a009a24a4 100644 --- a/drivers/net/usb/rndis_host.c +++ b/drivers/net/usb/rndis_host.c @@ -201,7 +201,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