Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp897999imu; Tue, 11 Dec 2018 09:14:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/XuqX/c9HkrMO9qLihZVcLHeJOfZhwpnqCAqi4oNrbiQ/z8HBQtoKaP/FArJcZhzNy/E972 X-Received: by 2002:a17:902:bf0c:: with SMTP id bi12mr16958311plb.0.1544548461210; Tue, 11 Dec 2018 09:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544548461; cv=none; d=google.com; s=arc-20160816; b=hdvS6VckWfYxgW7GvwRpLjItULVyD0yQq3KHS/8NTEgb/P5ysmvkYLkJCzHVTLQK1b Rt9WGC0UiqkO3FtEECKss/I/uZqRx+MS0niJ1pfjH6SUgXRij64R86v8SzK3u7fAyAZU dVvtju+MHtJ4tfS+TdIso5ElVuXAMcGS4AivTJ+ZVhBldy4tJLkk3c7Uz3AQQ0sVprp/ UKx9uUvPetUOfqtXGqpYForjyFP4qT789fe6es0PDl39hX0q0I3WBFIIjGdok6ufWAAz gFn/vTmTwwF7qn10cOswRyseobSbF84sHuobGeagcAfZdwXkLmKJm4Nq2Xca3zmBmB/n vDJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GOnZiKgDMTjx4Df6ElUjGncSXsqVXeDdjunvIoXBfA4=; b=uNm57UtlYEvRBImbC1dwPzHBkHqgs1jGKeq/Ix48a9fKTwMqw8Jb4bMbYO4e8RiuYm uCmic+PZklMoZhugmskuJOF4jWY1/e3hDU6ICmIk1BaAu+P793QuYHI441JhUzMoPHcW a+gaxPRDTUR7ClVLviBbDB+Cq9VRenTwSLLYkFtHYH+FRQRRy2f7pcuMyaAHo4r+fw02 MRiY94brcJlh8nUyCHdJdo+GPZ6z+JhCVJ0joFTB8X3D3PA8uH9Aso4r3smjhD8O8kTn Yiqg/MpJW8gY8flE8+Aajmr8xtcwI7unIKM6C/NPqWv68n2CkCI2r8Qq6+A9er3EgISY 2MYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UrpAVkuy; 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 c22si11849013pgb.254.2018.12.11.09.14.06; Tue, 11 Dec 2018 09:14:21 -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; dkim=pass header.i=@kernel.org header.s=default header.b=UrpAVkuy; 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 S1727246AbeLKPm3 (ORCPT + 99 others); Tue, 11 Dec 2018 10:42:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:58834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727157AbeLKPm3 (ORCPT ); Tue, 11 Dec 2018 10:42:29 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 D530020672; Tue, 11 Dec 2018 15:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544542948; bh=L5F6tSQ6qDPunY/pcqoyPD0FZJPtkQcHtDgvjeHg2WA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrpAVkuyI/Kouoxkzd8iOShlpQ+j0uEpHTiuKhZnmtRSAJOvhryJStswGWdP5cv72 lWQsk7npgO/pPiGVxDf9vZM+/6bFtwt5y5a4SyvfLj+AIGPjaApWTwA5vAFUqgxFCA 5GVhIQWI4SlnrRCm7T/nF+4AgzWYNmIbDQRkpnr4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sasha Levin Subject: [PATCH 3.18 01/54] Revert "wlcore: Add missing PM call for wlcore_cmd_wait_for_event_or_timeout()" Date: Tue, 11 Dec 2018 16:40:49 +0100 Message-Id: <20181211151546.074391484@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151546.010073210@linuxfoundation.org> References: <20181211151546.010073210@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ This reverts commit cbc56a12da05d5333a9020c4d7854ad7d0b5a31d which was upstream commit 4ec7cece87b3ed21ffcd407c62fb2f151a366bc1. >From Dietmar May's report on the stable mailing list (https://www.spinics.net/lists/stable/msg272201.html): > I've run into some problems which appear due to (a) recent patch(es) on > the wlcore wifi driver. > > 4.4.160 - commit 3fdd34643ffc378b5924941fad40352c04610294 > 4.9.131 - commit afeeecc764436f31d4447575bb9007732333818c > > Earlier versions (4.9.130 and 4.4.159 - tested back to 4.4.49) do not > exhibit this problem. It is still present in 4.9.141. > > master as of 4.20.0-rc4 does not exhibit this problem. > > Basically, during client association when in AP mode (running hostapd), > handshake may or may not complete following a noticeable delay. If > successful, then the driver fails consistently in warn_slowpath_null > during disassociation. If unsuccessful, the wifi client attempts multiple > times, sometimes failing repeatedly. I've had clients unable to connect > for 3-5 minutes during testing, with the syslog filled with dozens of > backtraces. syslog details are below. > > I'm working on an embedded device with a TI 3352 ARM processor and a > murata wl1271 module in sdio mode. We're running a fully patched ubuntu > 18.04 ARM build, with a kernel built from kernel.org's stable/linux repo . > Relevant parts of the kernel config are included below. > > The commit message states: > > > /I've only seen this few times with the runtime PM patches enabled so > > this one is probably not needed before that. This seems to work > > currently based on the current PM implementation timer. Let's apply > > this separately though in case others are hitting this issue./ > We're not doing anything explicit with power management. The device is an > IoT edge gateway with battery backup, normally running on wall power. The > battery is currently used solely to shut down the system cleanly to avoid > filesystem corruption. > > The device tree is configured to keep power in suspend; but the device > should never suspend, so in our case, there is no need to call > wl1271_ps_elp_wakeup() or wl1271_ps_elp_sleep(), as occurs in the patch. Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ti/wlcore/cmd.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/net/wireless/ti/wlcore/cmd.c +++ b/drivers/net/wireless/ti/wlcore/cmd.c @@ -35,7 +35,6 @@ #include "wl12xx_80211.h" #include "cmd.h" #include "event.h" -#include "ps.h" #include "tx.h" #include "hw_ops.h" @@ -188,10 +187,6 @@ int wlcore_cmd_wait_for_event_or_timeout timeout_time = jiffies + msecs_to_jiffies(WL1271_EVENT_TIMEOUT); - ret = wl1271_ps_elp_wakeup(wl); - if (ret < 0) - return ret; - do { if (time_after(jiffies, timeout_time)) { wl1271_debug(DEBUG_CMD, "timeout waiting for event %d", @@ -223,7 +218,6 @@ int wlcore_cmd_wait_for_event_or_timeout } while (!event); out: - wl1271_ps_elp_sleep(wl); kfree(events_vector); return ret; }