From patchwork Thu Jul 2 17:01:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Gupta X-Patchwork-Id: 1321769 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=qIk2bIct; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49yPYT1LVlz9sPF for ; Fri, 3 Jul 2020 03:03:09 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727123AbgGBRDG (ORCPT ); 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-Google-Smtp-Source: ABdhPJzsKs1R5yuKZm5NZySSEZZHZPlNsiGXwAR+dvp1/5lvQkYtz7GeTgWdeKqHCK0mCo0ZRiOznQ== 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 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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(-)