Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1639746ybt; Thu, 2 Jul 2020 10:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7norLe33Du4is36ExhakAsbd962Z1PaQR6PRxy46M0IcJRAD29Ql2NA5T1YAOO8o0+AJv X-Received: by 2002:a17:906:1151:: with SMTP id i17mr29915064eja.535.1593709539267; Thu, 02 Jul 2020 10:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593709539; cv=none; d=google.com; s=arc-20160816; b=ceFaCGsJpYyU5QgXv434OeC0Cli+S+w0mv17NBHF0gdiRxB30pb4iCWxUVlsmX9C6l puMzFeHqkIy+WWQphlScXY8k0yfVcSrJv7v1We4CSINoTZVmySnL2vive03ovFwIfyAc Jcn1j0wC2isyzng9C5+gN9hnvxDfjCQltv/uPusyMMeLkUhPS/6E2uay9SoUdgb00fLK Y1yD6dPs3cEAswABTel6UtAn6bsHqa1HalHsEyPyD+5bhb8Yi58jY27fJXTty5JwEQU0 rSyEFVaZ8O40VOdYJXpRWAAEIfDivTK80v3C/J4U+mmanXvDHAmjDHFlgejpzfQEmlAS tflA== 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=sdX4HaTp9icl96MrCuNrfjEqzJvThTeDSS/Lnbk9eSI=; b=iHvzFiD0x2xQ1+ZkRQn4MAzssiFH71yxHWalYwqSSs4cOM1r/ts3icBX46K3KPNC0f 5oo2BpoTWbNmzmlNsPrfYBV2RvfUVXCCqWNJLeZMI/WDm3JGVuKu0fgH8a7N4USWZt3u RyQPsTA+A85Qj257FxMsRSSyTWTKNrqB+vx3p3ZNzm69AY9O9vMK/CzwdYvXRmP/eLJv 2mAC8zYVvR6jg63PrYbJF/KwQRItZ8TzwHuJHmMgilLPeq6RkkX/pJdI6cjwp23WphKG rHFLOLnfwNV/modNjMA4TUZZoa4hpJ2kjE7woJsZ610VMsfJWitOECvfFFcGt7EiqOSZ cpLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qIk2bIct; 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 p7si6132501ejo.392.2020.07.02.10.05.16; Thu, 02 Jul 2020 10:05:39 -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=qIk2bIct; 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 S1727124AbgGBRDG (ORCPT + 99 others); Thu, 2 Jul 2020 13:03:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbgGBRDF (ORCPT ); Thu, 2 Jul 2020 13:03:05 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE62DC08C5C1; Thu, 2 Jul 2020 10:03:05 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id a14so8219229pfi.2; Thu, 02 Jul 2020 10:03:05 -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=sdX4HaTp9icl96MrCuNrfjEqzJvThTeDSS/Lnbk9eSI=; b=qIk2bIctJuCw/nX0bYoysOksrp7u5CkoSzEjixR3X+RCXSGs7q5D1/l6rUJdVlSgSI TKQZE6MLK9wmKW5WLX0W+Zyn+ZIqbr3KB0Aw44bz0u7qbT++5115Uc9A4zByiAd2GKve 3t/P4oa/c8FUJJCqE3KiD7eegicbFbRUSTl77earMKh33vDPuq/nj9dPSvfp/Jr0WnqJ sKWcFckkLmmJ0TstROceDpwp8n4xfjLL2b1vfBRdWDiF0Bxmag5t0C/icsv40WKdV084 OxXGWUiA4bkbv3mPmQ7dRO817I87lhgLzIFoFMOzpmNjc6oqR9ZZfCHQhNxforOJdj1a Pz+A== 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=sdX4HaTp9icl96MrCuNrfjEqzJvThTeDSS/Lnbk9eSI=; b=ucZkh+oClaA7iWIsLaPNfMJ6UCuckJYqoDmwK7FfkdKRkTDMJZQRktjD+DAlkjPMHB 60Dy2dDJT2R2xnOYMirVJOa2WwKLJZffzZDLFSJeyN7XqcPrZyY1r7KWKq4xFic1+T1V S/WjDnIdCYvYkoH8NPxyW060mR6+xByb89bVHFIF+WN6K9yI7Edd+5z+x//XY4YwTSFV R4b66x3JQtonU8jxWdUTf5hcqTZ39PWoFiHlx5ZuDjbQURBDI2b2ESLI+k1vIeCvJiGB Fp0nsVDmizu8hIl4/1f3zi9HVnYHr8+Oz6sxYKjoY/fME//0eBYakpHwjuqMlZSExXnp P6Kg== X-Gm-Message-State: AOAM532O8cia7ShEyXumvLm6h5vUqzHgsnsz8y/4VG588AQv9V9Rzp+K svIxWiLlYuFf8vShtBeC6sk= X-Received: by 2002:a65:43cb:: with SMTP id n11mr24992540pgp.160.1593709385187; Thu, 02 Jul 2020 10:03:05 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id j21sm9230429pfa.133.2020.07.02.10.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 10:03:04 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , "David S. Miller" , Jakub Kicinski , Manish Chopra , Rahul Verma , GR-Linux-NIC-Dev@marvell.com, Shahed Shaikh Cc: Vaibhav Gupta , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v2 0/2] qlogic: use generic power management Date: Thu, 2 Jul 2020 22:31:41 +0530 Message-Id: <20200702170143.27201-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 qlogic 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: Fix unused variable warning in v1. Vaibhav Gupta (2): netxen_nic: use generic power management qlcninc: use generic power management .../ethernet/qlogic/netxen/netxen_nic_main.c | 59 +++++++++---------- .../net/ethernet/qlogic/qlcnic/qlcnic_hw.c | 11 +--- .../net/ethernet/qlogic/qlcnic/qlcnic_main.c | 33 +++-------- 3 files changed, 37 insertions(+), 66 deletions(-) -- 2.27.0