Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1457465pxa; Sun, 2 Aug 2020 08:20:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxlgdDrUOr1EM0GcmC1hxMvC/ju6Fxjxm0R0Itxdumh7xTWTevrFHINhUdujd1CZiq5NyL X-Received: by 2002:a05:6402:1d32:: with SMTP id dh18mr12024201edb.14.1596381603935; Sun, 02 Aug 2020 08:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596381603; cv=none; d=google.com; s=arc-20160816; b=HU9sjjyC1t9i8beB4mkXcbzR5gij3GIFNW87ORxtD0/die+1FJrd8Rc7LCoVLZ/0JW 3pBHxhVpzbs//9uSp4JFef/IHeA94oHe/F+LCwI8kpxeWltcBR8VXETb9ge/7q6uZY1h FaQThjioWPPVHSvmTm00HWtg63/EB1wwKAIkXWBANQxekqJltu06wTxzX8ZSjlEbnhjy gk48WIhUdUbpaxRyDJJzzX0quFg0NmRzrSKVV+TvZliu42y+rb/5C3bAHdiNFKLBvLPG BNvl6voqk5WkE7rtORmWsfii21IO//px8caysO4+Y3hg+yt6oST96w7l7kd7aVGDvozQ BteA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature; bh=lF5CK9APGgA84oCW0O2cjEHYiYVBHxTZBI+qtWD5O9Q=; b=BnlVg+KyPOCi7fCxunmQpS8RGneqL8q1i+57OYgMTwtEZWZv/mOHKRCpeIGwGukXDa AHA0fm7NazrOv/i1etrnlv7iAkO2ppPrULXSXhxA/6qYB4a+SX5P72tcvsB8Q7RYqEua VRxAs6CwxqGKrB2JvQzaXmUJNtIoWvuQP6nVk50dNX+hC+Id7ZUNJmfI8SfQGN/H13qs 3dPWrlOEMo0U5rnUeuipVZiRDsRVWttsrb9UwQ4ZCDpHHtFQFGQjxbW8FmCvm7UzdCbl 3SM4b7toND4Gu1KLYNx8+qBXTjj3VoBxHbgWmlJbKedDct0OE1UA1rWvjHwhnK/Z+Va4 vDGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=U38o+Kbp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si9098081edq.355.2020.08.02.08.19.42; Sun, 02 Aug 2020 08:20:03 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=U38o+Kbp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726906AbgHBPSv (ORCPT + 99 others); Sun, 2 Aug 2020 11:18:51 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:41713 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726347AbgHBPSv (ORCPT ); Sun, 2 Aug 2020 11:18:51 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1596381531; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=lF5CK9APGgA84oCW0O2cjEHYiYVBHxTZBI+qtWD5O9Q=; b=U38o+KbpvJOA+hYLPTJd+8kADpotYtT7eGyzyvVJ6EWJwtJfP3+m90HeJCvjggEQSbO02Yl5 iJiGE4VOH//+Wzwy9TW7QA38Z/hT0OBe3kGdVgE9XIYlIl84C/7guM/xc6yaJt44EB3kzQ94 rOBXPsQemIxpMWcaF1gRoHkIGic= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n09.prod.us-east-1.postgun.com with SMTP id 5f26d949798b102968010181 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 02 Aug 2020 15:18:33 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 65606C433CA; Sun, 2 Aug 2020 15:18:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=2.0 tests=ALL_TRUSTED,MISSING_DATE, MISSING_MID,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 569C5C433C6; Sun, 2 Aug 2020 15:18:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 569C5C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v1] hostap: use generic power management From: Kalle Valo In-Reply-To: <20200721150547.371763-1-vaibhavgupta40@gmail.com> References: <20200721150547.371763-1-vaibhavgupta40@gmail.com> To: Vaibhav Gupta Cc: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , "David S. Miller" , Jouni Malinen , Vaibhav Gupta , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.5.2 Message-Id: <20200802151832.65606C433CA@smtp.codeaurora.org> Date: Sun, 2 Aug 2020 15:18:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vaibhav Gupta wrote: > Drivers using legacy power management .suspen()/.resume() callbacks > have to manage PCI states and device's PM states themselves. They also > need to take care of standard configuration registers. > > Switch to generic power management framework using a single > "struct dev_pm_ops" variable to take the unnecessary load from the driver. > This also avoids the need for the driver to directly call most of the PCI > helper functions and device power state control functions as through > the generic framework, PCI Core takes care of the necessary operations, > and drivers are required to do only device-specific jobs. > > Signed-off-by: Vaibhav Gupta Patch applied to wireless-drivers-next.git, thanks. 99aaa1aafa5c hostap: use generic power management -- https://patchwork.kernel.org/patch/11675851/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches