Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp668767pxx; Thu, 29 Oct 2020 11:29:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytJLUAw1DGM14G/4lQQsrXf6vuBynsiwC2euUZqMkfqlk0N2247fO7fQoccCpY26pbo8NV X-Received: by 2002:a17:906:6d89:: with SMTP id h9mr5187893ejt.152.1603996156769; Thu, 29 Oct 2020 11:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603996156; cv=none; d=google.com; s=arc-20160816; b=JZprwV9lnVlSy12VRS0o4EZ1yL/He9NzQVea6pqS8Aw9UDaW30M0lC+d169WtfQ9YQ IX5gIgmuerApZoY4xJG+jwxYs3NnOO4apZ/lL5KBrk9LARkDZH3+Zev2faooTn7zyLY3 B15YTVuA+S3ykK/ey5ePzk/GiS3UfrELuiiAJL82TQYdde3CGlBN9NBiBnHxy8Whz1sU dtDbG+Lxx1okhQxKRMFsmM/y5QrJZh9RKwqF6flUd/lpHVtwz0amZguSuGH9N7rvyOZK dynEwNVkt5IydQ3mnxX/1O9b3Ktvcg2DGvx//Z9gOUQy15BBSdfZ/gx+A8oZXcqDgAB1 ubfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Qrar9dmRm4zwdoSrcFwY/wHsTikC9FDxVpd6kfA/rMU=; b=ho/eJht3+6kl8r2lr6cdg8+7e3kWZTjoqhwq3Rr9lQgvAmwP8WJtxuYTnodYL/Hbey hUE2ZXXq6Zcj8A+W6Q5O9baVWi4FSFuWaORUQRk68QCT77QuEOQ05r/ZyLYdYepT+qM7 WR9oKpsXi35wFi2EKwu2ZpVyQZGZXxfw7JEZZkL24p6DkHBkdn/86Ik5eZJzvRZBSOGe PONmkSXsSNnzHr950C4c5hdfCGKimIt67sqOCrZROPIGiig+p7IVc6XD59vf0y3CCsQ6 oB5LCEf2G72FF9wPlUdj9oTOfoW5DULUzHSqPwbkpM3Hw1VIteupYmtTJq/q4IyAbusk lG3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nC2+zmQ8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si3000448ejy.740.2020.10.29.11.28.45; Thu, 29 Oct 2020 11:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@chromium.org header.s=google header.b=nC2+zmQ8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726097AbgJ2S0M (ORCPT + 99 others); Thu, 29 Oct 2020 14:26:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbgJ2S0K (ORCPT ); Thu, 29 Oct 2020 14:26:10 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2C95C0613CF for ; Thu, 29 Oct 2020 11:26:09 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id a7so4528844lfk.9 for ; Thu, 29 Oct 2020 11:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qrar9dmRm4zwdoSrcFwY/wHsTikC9FDxVpd6kfA/rMU=; b=nC2+zmQ8BbqhTLDDWr43qkKPAGZIIiM2rE/6dNa6mi0K1d6OQl1UMc7FfPoJwxy6ps x6jtM8eI+8jRP2aq0Xv4xlQhGD5c3KvTJS3AkuzG/MBnjWIK7DrpieObKzkmYp5W8vby DspwpJHFYhIGvSsF6tpHBWFC3HDR93XfkClwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qrar9dmRm4zwdoSrcFwY/wHsTikC9FDxVpd6kfA/rMU=; b=kBAawq+iNAchOkaeHSm55BNgDKQBO1HAdjZqMEc9LKJyQdaaIWRoCS8b905+EWoZx7 rmOjTqQiePosxAcdquVAy8CNCMMHGcUYM7vmTmiddqrl04VIV4NIXoqDFNDX3MDnMmsh 5SkJyPWTFOIlkkNpKWXmsGWxivSYgf9qPtqRdI+cm0VRkXam4yT7Gmx7KEIwju3eC45s DWGDm1u+dOVds4wjAyUXg+1CNocS/FKdUcSu2w8i3Ksu8edAj0pq215KB97Gy7s9GRy7 B+Y7h7EMlp6akMlqxSGmrq2t1yGdi6YQZB+GkwuWPDF8H1Su4IlbGAnD+mJFWBVcROcx VgpQ== X-Gm-Message-State: AOAM533vFUIkk+YOZTzgPogebtVhOB1Jf0gBjCSMhKwreugCFgilbPrp We1y9OFTqghsv4bDQexNuUn4f3Rj4LXDSQ== X-Received: by 2002:ac2:4846:: with SMTP id 6mr779073lfy.79.1603995968322; Thu, 29 Oct 2020 11:26:08 -0700 (PDT) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id w9sm413094ljh.95.2020.10.29.11.26.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Oct 2020 11:26:08 -0700 (PDT) Received: by mail-lf1-f43.google.com with SMTP id i6so4587586lfd.1 for ; Thu, 29 Oct 2020 11:26:08 -0700 (PDT) X-Received: by 2002:a19:41d7:: with SMTP id o206mr645895lfa.396.1603995967726; Thu, 29 Oct 2020 11:26:07 -0700 (PDT) MIME-Version: 1.0 References: <20201028142433.18501-1-kitakar@gmail.com> <20201028142433.18501-2-kitakar@gmail.com> In-Reply-To: <20201028142433.18501-2-kitakar@gmail.com> From: Brian Norris Date: Thu, 29 Oct 2020 11:25:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] mwifiex: disable ps_mode explicitly by default instead To: Tsuchiya Yuto Cc: Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , Kalle Valo , "David S. Miller" , Jakub Kicinski , linux-wireless , "" , Linux Kernel , Maximilian Luz , Andy Shevchenko , verdre@v0yd.nl Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Oct 28, 2020 at 7:04 PM Tsuchiya Yuto wrote: > > On Microsoft Surface devices (PCIe-88W8897), the ps_mode causes > connection unstable, especially with 5GHz APs. Then, it eventually causes > fw crash. > > This commit disables ps_mode by default instead of enabling it. > > Required code is extracted from mwifiex_drv_set_power(). > > Signed-off-by: Tsuchiya Yuto You should read up on WIPHY_FLAG_PS_ON_BY_DEFAULT and CONFIG_CFG80211_DEFAULT_PS, and set/respect those appropriately (hint: mwifiex sets WIPHY_FLAG_PS_ON_BY_DEFAULT, and your patch makes this a lie). Also, this seems like a quirk that you haven't properly worked out -- if you're working on a quirk framework in your other series, you should just key into that. For the record, Chrome OS supports plenty of mwifiex systems with 8897 (SDIO only) and 8997 (PCIe), with PS enabled, and you're hurting those. Your problem sounds to be exclusively a problem with the PCIe 8897 firmware. As-is, NAK. Brian