Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3066008ybt; Mon, 29 Jun 2020 14:23:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuA1pqnvOQv2svx5Dv/uCok+oipOufLyr3GU+Zgu006pARJgFPUTNlQZFCo+bY6aGXkgBt X-Received: by 2002:a17:907:94ca:: with SMTP id dn10mr15197471ejc.348.1593465780711; Mon, 29 Jun 2020 14:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593465780; cv=none; d=google.com; s=arc-20160816; b=hZbjE8yyNCPH3hiyUCrrFFmXr9GZY1ydtLpw7txU+4GI3abOrQn2fl4J3Osekiyn3m 0GHMLmd2ocDKXKisjz1eBohi+lvv2DMSRGl8+R1hZT2fS6fuXPtcBooGNJiElrLQf20c lnj/vvzgNzzg2n5MsUG6IqGp/DtJvd07+QCRsDERj1mgEcsDjqyMsJoBYNjDwhz/nFGs TrJ4ua/5sWzCvcIqVEc4NxqNV+KoaYiIAneL2YezrrLKwFfAhFyeDXmFpCPP4VPGnGr1 IAK0sGn53eXEEoU7OMWUl8FmxlEpW9ho2i2RkEFE+HPMnmM9wCcL6vUhK0m4hhwzoWWk xG7g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=G0sYP00DyHcgSiz/UpCj0vFSMqhUdJtVPzxSy22jFRs=; b=BM+r8ZNC35pz7WGJ/SBsiIAE4lZLyPqN59/V2dU6ArPPeGuLW9rPiMn27q1PYQxpLX Z5kE6VZcf0Fcghjtz1H9ZVyA2POI43hcKd/7MVqXEGedY85N/QUSKyX8wvGuXv2OSH9h bHXBAxVj31Seicp7HXJiGZOk0zFXy9pRjTSBpKFo5VkYzadtb/FLJCB4tZTV5MmPcE0r 7mqVTPlqI8ZALR0d3R6z+Ut6sHxQPpWThYUeaDkN5Kp89xzJDjldFhwzN9YJW9Zj51W7 hFxwVBwOcBcMLq7G8NNOv8Q/JEyHLoi1Iznqh/81AxDPtTWJ+irXzSL2nZf9O0yQmwOv R1Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="X8/CAFiD"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i16si327505eds.541.2020.06.29.14.22.37; Mon, 29 Jun 2020 14:23:00 -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=@gmail.com header.s=20161025 header.b="X8/CAFiD"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390940AbgF2VVV (ORCPT + 99 others); Mon, 29 Jun 2020 17:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729762AbgF2Swn (ORCPT ); Mon, 29 Jun 2020 14:52:43 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E75C031C53; Mon, 29 Jun 2020 10:36:13 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id k71so4843467pje.0; Mon, 29 Jun 2020 10:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G0sYP00DyHcgSiz/UpCj0vFSMqhUdJtVPzxSy22jFRs=; b=X8/CAFiDKcy1LRoopU/VXQqrF/ZXGGSBw4D5FArGbTOu2n4JamyvFgiWlugGFsqSWM /9xVgVu+f/ncxxEz0VlzZr31y1FxZzC8Jc+sF648c86tQga2eom8sl6/lfJxOcC2zbt3 nfj2/wL562qfy3sqaGoUnWITVNcwjvE/Df3g3LcC+6PyutlOA9UrYFg+s4HWkAao31gd sjRuHnBD8imlkO9/NQEO6ZY6sbgFNfk5G7L7A3OtSQhS5yHQ7ZRroV6u+Zz/9N2L7ACz SpWvD/+s2hgECa2/k9Apgoa1nwhlGvHGZNScfJzhTUsFEHyivbspJCM5V40cttfUNNBU ti3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G0sYP00DyHcgSiz/UpCj0vFSMqhUdJtVPzxSy22jFRs=; b=Cv8md3T3U6bAAFwBDFW/aoTHCQEgBk9+dmmJjSO3rUL4uWF0sHOE+irZcUVwl5sNG+ p5eUWxkLE68mXQVC/vf4G2tGdiEy6NL3WViZSHOUdhizm1eeQUjHS7pdBVFn38xVbe/X M4d28H0eit8i+WLaFh2T1Xe5UI+VUtE6g5xpZdHkcID6CdUJSn4LQwKONFw9mF8JEGYd KX31kHP0CWZKnJX5F//DW3p1YbTWebUiziS2eNcOKNA2lij0jx5pcpmouJyN4MiBt9aR UzWTmh9SBN/3P3b1K1ieLGAP2o4lUer8NPoIJrA7Cxs5jMJyU25OAiNCiilW9RWQDMPR 9x3Q== X-Gm-Message-State: AOAM531ub9V0scIXKbvkB73yJci0lITm9RB40McHcGdWADMhzW8YJZH4 qVhUqHv7DxJxeR5iAyrRcwU= X-Received: by 2002:a17:90a:ac14:: with SMTP id o20mr11765030pjq.185.1593452173081; Mon, 29 Jun 2020 10:36:13 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id k23sm331461pgb.92.2020.06.29.10.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 10:36:12 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Greg Kroah-Hartman Cc: Vaibhav Gupta , netdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v2 0/4] drivers/staging: use generic power management Date: Mon, 29 Jun 2020 23:04:55 +0530 Message-Id: <20200629173459.262075-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to remove legacy power management callbacks from amd ethernet drivers. The callbacks performing suspend() and resume() operations are still calling pci_save_state(), pci_set_power_state(), etc. and handling the power management themselves, which is not recommended. The conversion requires the removal of the those function calls and change the callback definition accordingly and make use of dev_pm_ops structure. All patches are compile-tested only. v2: An error was reported by kbuild in v1. pci_set_master() function call in drivers/staging/qlge/qlge_main.c, inside qlge_resume(), was passing argument which got deprecated after upgrade to generic PM. The error is fixed in v2. Vaibhav Gupta (4): qlge/qlge_main.c: use generic power management staging/rtl8192e: use generic power management rts5208/rtsx.c: use generic power management vt6655/device_main.c: use generic power management drivers/staging/qlge/qlge_main.c | 38 ++++++-------------- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 5 +-- drivers/staging/rtl8192e/rtl8192e/rtl_pm.c | 26 ++++---------- drivers/staging/rtl8192e/rtl8192e/rtl_pm.h | 4 +-- drivers/staging/rts5208/rtsx.c | 30 +++++----------- drivers/staging/vt6655/device_main.c | 25 ++++--------- 6 files changed, 37 insertions(+), 91 deletions(-) -- 2.27.0