Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2689129ybt; Mon, 22 Jun 2020 04:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc20KiK7MMkO5xu3khrTxNjem48i089ZkhMG8fFAdTkE9kVcfC3VSuD8q46W8OO1IoMx9z X-Received: by 2002:a50:f149:: with SMTP id z9mr2296377edl.167.1592826486390; Mon, 22 Jun 2020 04:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592826486; cv=none; d=google.com; s=arc-20160816; b=t1Xk+ftn8BZE/Yg/fzwkddRCZ/mj7rh1lCVWt8OXxZYRes+s0aS+aO0YMi096XNZtq mf3yjOfWmP2xAFGvb6XpiL/HdTaqcXivMwDlmPivBvMJkQNAn6M5OjiRU5vrj8xyHbzX Pz+UGtY+rRcEpIqj2NlZVZI1wqw/AH0xdNeIDa6Hcb5G46XHnUYlL3IsC+xDwXlSHawS BGt+qbzNtimnn7kakVYfjnmEvA6+tZFN1Wr9ljB4XpfKMLwHp3jR4Aj1/Ty+izEwRyqg e78qV/OKFTd96yzgBKQ2cLFHYe0l+XacTPiKIZ2D7GtwuQUW1qBYNWxWLdkxUS92Cv5b v1xA== 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=ZPn01r6wkXnMIHGh/thIPTlSxs28rdWp4NIXuzwx0oQ=; b=HnDAxGfrJ4d0be/xV1ktmVxvW7tOHO2NXrOK3pZqrG21kbDwYYNiyYmzqGcTA2K/kH sGCWrYNAAUDsGMza/VkBeAujT5uEbK0WNcZGoJ439gBkjM3i+XN8LbZu7k8W28uY/Rdo WeI8Udkpf/gBxbtcgwF6ru2Z+yGTsOuQg0O9N2gSQQMr46d/hVgJth6oQ9nfQVYC3TJK O5Ra5Q2ThvoCoG9e9pKOcTLASWl2Vp/AeSlCRQDJXWnBwSNkQfiqr7AdeK6Bzq9UK2OT 3X429YtLnqgln9CB71i0fRyG+wvM5TPfaYsptgIxQla42KV6iTdiGYJHMsnbOl5Lf6rX YmSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FTA7ISWL; 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 cm1si8994666edb.235.2020.06.22.04.47.43; Mon, 22 Jun 2020 04:48:06 -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=FTA7ISWL; 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 S1727887AbgFVLoG (ORCPT + 99 others); Mon, 22 Jun 2020 07:44:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727806AbgFVLoE (ORCPT ); Mon, 22 Jun 2020 07:44:04 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2059BC061794; Mon, 22 Jun 2020 04:44:04 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id q22so5181821pgk.2; Mon, 22 Jun 2020 04:44:04 -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=ZPn01r6wkXnMIHGh/thIPTlSxs28rdWp4NIXuzwx0oQ=; b=FTA7ISWLI4A9wg3ouOgx4YNdJh6le0da9LW3IxYp8AUgvV84ghq39qDPNlErkkjgkS 6n7yR++UXq0RhCO0bGYxDcWQroLp4MJjinLXikt6ktxSaHE/xdx5pw/9+UsYUCPzzmFX T6OMMHt1MG63b9lVgOhZOhTtk32Q5L9/wy1Exz6sY/Qyatk2ZF19UdaVS/buFpsSwc7k aXe2ikHii5w35iVohD4NaSMTeNPAlrs8BVKDEu9exIIN8KCozhA/23oWq/xoD8NMLQ84 3IeJMkoPknDdeGaM0E04h/LLzw9sYnbt7+O7iONBdNFqdMti8nPM0+NtuJlulUrRX1sM vGuw== 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=ZPn01r6wkXnMIHGh/thIPTlSxs28rdWp4NIXuzwx0oQ=; b=amQfkCQm789lwhXUWBjEHLwWxmdl72oNUTVCi9RXgbdhgCiojzOtUjwCeKHKk78D33 fERu5M9Vy/OILP+4rb11sSq4RvqY5W8mqDdnU/FK7c1P8D7CbbwtvKEy23EEN48BV/QT NPTRPXzwsz/Boh26WapaJN3yhzyhgqkbDLxpGgI2tBEtTghmNjq09ni+/bNXgaSNYuNe u7K1xpTPUuPp21txK4j9toi3HMxk5zwMUfLFpNsuCDmdEa6kKxitw1wcyd4q2cDzVB90 rSBS8nQsSdKVhvN2VyaskmeaQLVUmVw/nuN1w2MFEE3way3WjVTxNo9iN1Z8C4x1qEIv yJpw== X-Gm-Message-State: AOAM5328MWziSqhcijB+ZiMf3vDGQieYlgS/q4nzREtNmTV/l0nVYtLx uzY0RQGUlinU1Aj3igaHIWg= X-Received: by 2002:a62:ee08:: with SMTP id e8mr18838245pfi.93.1592826243593; Mon, 22 Jun 2020 04:44:03 -0700 (PDT) Received: from varodek.localdomain ([2401:4900:b8b:123e:d7ae:5602:b3d:9c0]) by smtp.gmail.com with ESMTPSA id j17sm14081032pjy.22.2020.06.22.04.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 04:44:02 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, "David S. Miller" , Jakub Kicinski , Vaibhav Gupta Cc: Vaibhav Gupta , linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, netdev@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/5] ethernet: dec: tulip: use generic power management Date: Mon, 22 Jun 2020 17:12:23 +0530 Message-Id: <20200622114228.60027-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 and invocation of PCI helper functions, from tulip ethernet drivers. With legacy PM, drivers themselves are responsible for handling the device's power states. And they do this with the help of PCI helper functions like pci_enable/disable_device(), pci_set/restore_state(), pci_set_powr_state(), etc. which is not recommended. In generic PM, all the required tasks are handled by PCI core and drivers need to perform device-specific operations only. All patches are compile-tested only. Vaibhav Gupta (5): tulip: dmfe: use generic power management tulip: windbond-840: use generic power management tulip: de2104x: use generic power management tulip: tulip_core: use generic power management tulip: uli526x: use generic power management drivers/net/ethernet/dec/tulip/de2104x.c | 25 +++------- drivers/net/ethernet/dec/tulip/dmfe.c | 49 ++++--------------- drivers/net/ethernet/dec/tulip/tulip_core.c | 51 +++++--------------- drivers/net/ethernet/dec/tulip/uli526x.c | 48 +++--------------- drivers/net/ethernet/dec/tulip/winbond-840.c | 26 +++------- 5 files changed, 45 insertions(+), 154 deletions(-) -- 2.27.0