Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1231972ybt; Wed, 1 Jul 2020 23:38:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFZ6GA3ZnX67ZcCeQf8b+GvtYOMt9zd4/TlGrMORYkpTR6Egr+9+BIGYy3VNu1gbsd6uAP X-Received: by 2002:a50:f05d:: with SMTP id u29mr34154598edl.137.1593671925289; Wed, 01 Jul 2020 23:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593671925; cv=none; d=google.com; s=arc-20160816; b=tFzHKE/DTs37MxdPSuKuKCFxHeNPBZPauAi5gln4YCnPSj0EB5aVGMtRJGA9L3nL6h hxSBLsfQdRQUoWNaBlRGo2FJqsrfLSdhIs5f61Z2CDHk6oOrneUTCNlERrBRelUPpTPS 9nD8wKVUHULeyTBL+og+xLTaC4CiB8OZmlzL1ZUTv6gomxuQdew0BrWrs8GU9IQxRjCV BxlMRyO6CQlxJS6Os2Yp3lJT/13EnR27H+wlyHF7P9CQCSK1puO4gIr43xfdWSCVtNyo v48lBOpMhLDAirq9BgQEL2MixgfOMOsYWtJrbD4DW8ple0ebQFeBig2/iIcaDUDcckJi OS5A== 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=XyjnEdFZxF+tDKS9P8wBrY80ec4OJRjyUgQsd0cpcww=; b=wwkcm5rW38bX+/liPdldRYOqw4IKjtDWiMvfbBzI3KGNsLtdhfaC1qPI/ngfEL697Q RsgGdiXUCefrD3L6eRYcX7ab70Vjj2hrvCtty1YofRjyqiHv5dlk8forgLiq+WCAwNcf 09yKAB2FmwgEhNrxLmzjYCntpMhzOqkkUDgTr/1dTAKi1aYM2eDsDc/0Hgrkia6TzyzR bMir+KLejFMSp5CUaplFg0uk7Qz3SWDyRb3faK0Fw4xZ5OJ85x8RfOrnbB9Qc6GAlPVN UGRqfdjEEu/uVwcIOd8Fn5Ti7g0kXITRLET+AaSUpYXiJ1/nZM1dZ9qDDY/9/jAqBxfV WGRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kPsjRRlw; 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 z16si5056102edr.480.2020.07.01.23.38.21; Wed, 01 Jul 2020 23:38:45 -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=kPsjRRlw; 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 S1726756AbgGBGiH (ORCPT + 99 others); Thu, 2 Jul 2020 02:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgGBGiG (ORCPT ); Thu, 2 Jul 2020 02:38:06 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF2F7C08C5C1; Wed, 1 Jul 2020 23:38:06 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id b92so12091305pjc.4; Wed, 01 Jul 2020 23:38:06 -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=XyjnEdFZxF+tDKS9P8wBrY80ec4OJRjyUgQsd0cpcww=; b=kPsjRRlwZxwcP4I/Diji+FaejQzGmwkib0r4PN8AiBzHdwIPOxR7YBeqZfwcrT77Qo 7WgvYpFGKn72xLv4xCfFpP9gAyFfvavwK6jcKKBJjMooeZKK91iq82rl9LHYn2vHM+wu 5O8uJAg4VFi5iyDh0sZBjd1HfqYyjf5HhPsLt0GSL5EkLWjKBvEGHgpCiKWXVOePM319 7h+OcTPC93YVzYZVY2JIBCYt7qB7uNmF5tEeYRN6di8kayaQOb2/UuOyMfhZ3Y3DWaKu uLMEoZUvkqMeDB0ZnNuutkEHIQ4B73NzyQYLwSuAt2AvSSgN6VFf/lLoI3uqP2BHC7Tw k2BA== 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=XyjnEdFZxF+tDKS9P8wBrY80ec4OJRjyUgQsd0cpcww=; b=ScPU4pAxmcJ0DJPTfO8vFS13p47037xIipQ8r0b/OhfCJ0K+YaumXUpHXtGpsiIkmC tYRX0Bp1wcIY56+5RmsGLPT0ROmdNrBahpL1wd5cQcz2jvnBFvvmTs+e5rWVl7WTIyco OXZyY+izdYNnLAp9ia7PkcefBoDgDxsYh+R+OC7D0MuOk3rWVfZkUE+rwjuha1ALHOO2 g2Am8H+uMtiI0hosLLsx74Tv6FfEqvw6lOPt8SqJhN86WYxgr8Bm/ud+EAp+/ntBkNYb B8qjv11gzVmQKzVC+KOEU8ejzkTQ5w6LByjWj0Ivu/PD1bru3GePSuRIohJrc0TLQpVh 5/QA== X-Gm-Message-State: AOAM532b+YgFCeKnicbd41BmDeMNMQl0WyApDsIdj+a3ois479M81iAn PV++xhwA7j4Plrc9f4kV8Dg= X-Received: by 2002:a17:90a:ea84:: with SMTP id h4mr20199016pjz.128.1593671886197; Wed, 01 Jul 2020 23:38:06 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id l12sm7523549pff.212.2020.07.01.23.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 23:38:05 -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 v1 0/2] qlogic: use generic power management Date: Thu, 2 Jul 2020 12:06:30 +0530 Message-Id: <20200702063632.289959-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. 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 | 10 +--- .../net/ethernet/qlogic/qlcnic/qlcnic_main.c | 33 +++-------- 3 files changed, 37 insertions(+), 65 deletions(-) -- 2.27.0