Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11339095ybi; Thu, 25 Jul 2019 14:32:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGt6l9aes5phyOQz+pwvzMpiceuRRiEShZ7EKUggIthtjW1ghVZUD9ukNYtE59EfW2nio6 X-Received: by 2002:a17:90a:8a17:: with SMTP id w23mr92526854pjn.139.1564090356915; Thu, 25 Jul 2019 14:32:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564090356; cv=pass; d=google.com; s=arc-20160816; b=La4xroB5NhwjCHp2gNnDg/YsC2EpYhs43EV+Bjtk6KaWaqvK0FauKPvlIAJtJbyqOG nFOEj5UhjCLAyB5I8SULeV2aH2xYHPU0CS1BoeW27STWIZ5/Cvdn18u3u3ybSJiW/lsr Fn0Ie3DDYJxcDjYe4iwNY8AzV415mIEVP0EQ1g0+i75KuU3k0n5my8fAcItKRR/npI01 f0jVY2v1fSmtHr+UHXReCwfKyrZd4NgiLH8huJ5sa6UrBZkkAn497QufQ7QaLDkxqb6k QywtFc+q+X0xspk+P2eU14Xf9GpPR7Rrs07gT8uI8E1aqBLFyi1VekOIuD0x5p1FYTrm W+CA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :ironport-sdr; bh=Wgy0l+Vl92lqCLinfJs95q0omNdQJifh8yhIz/mw76M=; b=J0SzmiXI2DlJo5oTMsKBVMXroJcJ55UARdXmW7G37Etn95RGa521Xso38JsoWThMOI ADZm7P8stm63wSok7QniJxfNIjfWNqddTVMU6IF8BKsyYWYtY1wRjwd2N/NYcV1AQqti KI+IFGxNzuEcBnxfD/vHjVvFhpaBgCdq073L/eJnpEW/XYKIrDoEe88XnJEvSNQ09GdF ls+FwAXNpWsMmsPtmXRzOGGfJdsxivEYCWdP4LoFxXF253XSFW63x8MFaOQhczrnl6tE EP3wgzSK1s0ZBJF/zMAZYpVon8d5ikiLNHlCZBX1NwYWtbw+dgtbnPFx+MoNK7/naf7H UWbQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=hnkcpX7R; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l28si25718828pgm.311.2019.07.25.14.32.23; Thu, 25 Jul 2019 14:32:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=hnkcpX7R; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbfGYVbk (ORCPT + 99 others); Thu, 25 Jul 2019 17:31:40 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:41144 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbfGYVbj (ORCPT ); Thu, 25 Jul 2019 17:31:39 -0400 Received-SPF: Pass (esa4.microchip.iphmx.com: domain of Adham.Abozaeid@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Adham.Abozaeid@microchip.com"; x-sender="Adham.Abozaeid@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa4.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Adham.Abozaeid@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa4.microchip.iphmx.com; spf=Pass smtp.mailfrom=Adham.Abozaeid@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dkim=pass (signature verified) header.i=@microchiptechnology.onmicrosoft.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: vfx4sY7Gtt3oDSyVoneonG3gSiX7Npdg1kuvcsRA1CyAed/iPOCnhfqKIJRg5t4Zvn/BEfD9jj dpFeLZeD5ptuZVA4PsIZWszIO+yt+FNJgTjj6DKg+gpY5kSWlwUoJrUpsjSBwMK8Aed9eay5Fv jIiZCb2GCJ/0/1CebSjc2D2m6jwfUjbosJybetKuBkFIVyvU5sVwD248j8pYNJU9+1lM1IKDCF NYL8P1QMSeHBUhq10QmLBPO4yfs9iT+NVQWfHLx1oDvMpGVgULP2N2Kiowgv3QOKkx5I2UknmF 0J0= X-IronPort-AV: E=Sophos;i="5.64,308,1559545200"; d="scan'208";a="42013696" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Jul 2019 14:31:38 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.87.152) by chn-vm-ex04.mchp-main.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 25 Jul 2019 14:31:38 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 25 Jul 2019 14:31:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=icWm37SKWFGa+F1UMAN4kgtDnOxFdPJ+sxTG1o/+cN9sR+WArA1NJq39GIXQBlS8NrsaSRHAAaMl/qKPoLVtnHbMxWDw3TWUMt/ohCawkTXYj33KQrvizYzZcj4wcQd/qTBvxVI+xuqg0/qqKU0Dg87cH56Qto6MQy7ia+lgUja7+fz2JJuyrJlRlOWSDFRkyaWMYan5SQNSmdcgR4kCCtefW8qXSxwVvn8MkOhbt6nLOsM09npCQLU8QmazoraKYWqQnoRgIal/iUU8trqkmuQG8K+Kt3ZCw7jtCocEYDf+LUTDnm28XsvIhCVu2WSBH1afo0+xy3U5mnpCtbATag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wgy0l+Vl92lqCLinfJs95q0omNdQJifh8yhIz/mw76M=; b=e/vQHLFgNLYMf0CY0EZZ744l5nLo1Aa6VHUC1wf0WZj7SmwgnN0VWs7EmToJ1sB0HXR5DxHV360MK/Nsuv1xhsph5DgOm4O3UFyZi30J3+kp/Zvd7aIh6QekuSdQN48iKpN3P9Qx4nliYzQCYkGsk4qGoQe0q9Uj5hDN4iTarc27yKRsxRzFwtkTkRzTp+c/BjcJfmvwwcRyEbfmyX/1qygs+0dc+Uhxf7A5t+2zTZWD9FgrIfBFlkC76Hrtfxm6os12mbE+EbvNYUOl6l27U2ddXXjAdBSYNRPohXg5xzDFOPZjPGF40XdLtUZSm38BagasFoQyDaJAm3wyoKNtTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=microchip.com;dmarc=pass action=none header.from=microchip.com;dkim=pass header.d=microchip.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wgy0l+Vl92lqCLinfJs95q0omNdQJifh8yhIz/mw76M=; b=hnkcpX7RZNCpXiaGpIauVIzwt0+ci6g12540+ul1LfXSdmrJwyDWXjmEDjAT3Tnhq165en5g8qdeH+edWTtKd00+IU6B32qseDvO0PxCy7U3Ic+pFBDToVhP5OXuiR5CIRo+RCY9qlfcczxsKYYeaa7EcBBh/d0lafWBEvtr25k= Received: from MWHPR11MB1373.namprd11.prod.outlook.com (10.169.234.141) by MWHPR11MB1984.namprd11.prod.outlook.com (10.175.54.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.13; Thu, 25 Jul 2019 21:31:36 +0000 Received: from MWHPR11MB1373.namprd11.prod.outlook.com ([fe80::5836:a39e:ab17:983b]) by MWHPR11MB1373.namprd11.prod.outlook.com ([fe80::5836:a39e:ab17:983b%7]) with mapi id 15.20.2115.005; Thu, 25 Jul 2019 21:31:36 +0000 From: To: CC: , , , , Subject: [PATCH 5/6] staging: wilc1000: apply power management regardless of open interfaces Thread-Topic: [PATCH 5/6] staging: wilc1000: apply power management regardless of open interfaces Thread-Index: AQHVQzBWJp/Kmut4o0O53F6bDP3YHA== Date: Thu, 25 Jul 2019 21:31:36 +0000 Message-ID: <20190725213125.2810-6-adham.abozaeid@microchip.com> References: <20190725213125.2810-1-adham.abozaeid@microchip.com> In-Reply-To: <20190725213125.2810-1-adham.abozaeid@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [198.175.253.81] x-clientproxiedby: MWHPR04CA0040.namprd04.prod.outlook.com (2603:10b6:300:ee::26) To MWHPR11MB1373.namprd11.prod.outlook.com (2603:10b6:300:25::13) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 27835f88-952c-4a37-782b-08d7114778d9 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:MWHPR11MB1984; x-ms-traffictypediagnostic: MWHPR11MB1984: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:167; x-forefront-prvs: 0109D382B0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(396003)(346002)(376002)(189003)(199004)(11346002)(2616005)(476003)(102836004)(386003)(446003)(486006)(6916009)(2351001)(6506007)(66946007)(186003)(99286004)(2501003)(76176011)(26005)(316002)(52116002)(5660300002)(66446008)(256004)(305945005)(6486002)(25786009)(64756008)(66556008)(66476007)(53936002)(1076003)(107886003)(71200400001)(86362001)(71190400001)(4326008)(68736007)(478600001)(8936002)(6116002)(6512007)(14454004)(50226002)(4744005)(8676002)(5640700003)(81166006)(81156014)(3846002)(2906002)(6436002)(66066001)(54906003)(7736002)(36756003)(26953001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR11MB1984;H:MWHPR11MB1373.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yGrtt4IlNrxTHU2jE5yb1xvAte6GVEOrbmpjxCMM1NPCbyUyX/b/mHQSaj1g/9CyChteEVpxbzzCDgBFtMxGkxM/bgEUGoLVw+Zl8lN7rjjTLEOMGkIMyg921reaE7/NtIm9/KEZNcqUwqYcLuZ4cLuhYmiiPN8uaJ+P+2M5Lr1AdE4XAghL8F1aK8Z4bsgQ3qZlAzFBc6q7GAXws7ZXT/y1RzaMy4Mquvk9d/b5otpOajF5/YkuPX7/YTp3OegZF2WGmvI7D1TqPrreL22yRkZWDL4vysZRX7W0eUR26rLpe3UkEYdQdVmw47rEGYib2C+eIJkAAIm8fjDOlwdcu9UPLTT11xTJDmCfakwmugWYHE8aECfiDkUfEIUQDd+cZabzMpjoX7z+8JN6AuAHbALD7spDOXY4ahozQ6NLYGU= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 27835f88-952c-4a37-782b-08d7114778d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2019 21:31:36.6745 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: adham.abozaeid@microchip.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1984 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Adham Abozaeid Don't ignore power management if 2 interfaces are open Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_hif.c b/drivers/staging/wilc1000= /wilc_hif.c index 16ff610c6a5b..75a6931aa147 100644 --- a/drivers/staging/wilc1000/wilc_hif.c +++ b/drivers/staging/wilc1000/wilc_hif.c @@ -2010,9 +2010,6 @@ int wilc_set_power_mgmt(struct wilc_vif *vif, bool en= abled, u32 timeout) int result; s8 power_mode; =20 - if (wilc_wlan_get_num_conn_ifcs(vif->wilc) =3D=3D 2 && enabled) - return 0; - if (enabled) power_mode =3D WILC_FW_MIN_FAST_PS; else --=20 2.17.1