Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp686624pxa; Wed, 19 Aug 2020 12:02:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpQ7N8+TJ0sxUe1miBXp2s3lccp4zazjrSoC7MYittfBKtk5wroRM46PpSsloLalNWdLDF X-Received: by 2002:aa7:cccb:: with SMTP id y11mr16778061edt.15.1597863729827; Wed, 19 Aug 2020 12:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597863729; cv=none; d=google.com; s=arc-20160816; b=YhzzgLC6L+h0IwtDXsN9fXzzEVhB9b0/NofstWzXawzfTTYJdo7mvDPed5t86AbtI9 MZbsGRLbj4KLN/y39ehQ2Gfr8rM0Z/7i9UcV+PJHP1O6Dknaah/PxQY0NNKPHGnHTfEv zCT3Tuj9trF1GKyAsO44otZHGmHD/Zie3nqiEo0aNdhAWs3aiWEgHlgPzvSbvp72p0M9 FsN+3cXnQlrOgc/Vq6tIUv8vby5/jEX+DO5LKFK57TGa49heZKZ0aNn4l6L98ntsn4l2 J1T4Nf+9nkAxA+TrFUYtWYkHER89wCFVTa+iqnVmxw34u1VT91taspyA0+xg9zesRNar 0LGA== 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=teSA+VF9m0g0fiG8uR8fbDhA8YjsqGp+oSZrp5d7n9U=; b=eZuRfQVf0Nz762DvzEMnnTUHe9DWl6wuvbWAb27fj63LjosAhnccPN05B1ZUAIcyhX uaEvazqz2fga4NZBy2oh2ZM6j3L1J7mJSKwuo8WuxqsfCp6bHqT+Lift7r9ZR8rEkf6e ceAYl9P6VptfIwHxJpLWgZqUr97UEvDJKYgB32Sx8stKOISJiPhhbESBo872J5F8KmaK lfUbLDVL+mIL0vSO33ddD7GtC4++kFwuc3nICg2bF5ddNNf2X6d0qEA7GPi0MbNcmsjj QD9dUi6TnvaWtxAm1yUWS8YbE7DQMi5/EapY4T7ILCQAmh963oiH1fNfMbLntsMsul9l z1UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ddg2juEO; 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 gr8si15818613ejb.601.2020.08.19.12.01.45; Wed, 19 Aug 2020 12:02:09 -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=Ddg2juEO; 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 S1726640AbgHSS7A (ORCPT + 99 others); Wed, 19 Aug 2020 14:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgHSS67 (ORCPT ); Wed, 19 Aug 2020 14:58:59 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BBFBC061757; Wed, 19 Aug 2020 11:58:59 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id q93so166510pjq.0; Wed, 19 Aug 2020 11:58:59 -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=teSA+VF9m0g0fiG8uR8fbDhA8YjsqGp+oSZrp5d7n9U=; b=Ddg2juEOoCmHUuQArhnsFSay6iY0S9DecklI+21FdyRNq5jSHiDoGK2hZWZBN6dXxf uSJdgdBW2SbPPdcGEqOMILtPKUxDod5d+CniKZp2b9MMNxkLNIZ9CK9XHrf9XlMwFH9O BeXKAXjBjqp0U9QnBE5dElE/lfDh3muuiVY6RpzO/DhO6iUxwXPd5OAYGwEccOmKeUok AvH+PzbcQtdlJZ5v7PYUomw2GhVLghruNZsxqBFTdfvF4HpNxBpH79FXQtn/7ZQ+Sj7r hymuwHpjetoojCk3aJJ83r3Okn2hZlhsU7kOFsAeMPrODkHd/n01iMWK8C4/fxGbXpjO +Psg== 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=teSA+VF9m0g0fiG8uR8fbDhA8YjsqGp+oSZrp5d7n9U=; b=GUQF0HCOYaP+HoWoNwTmU2LkEgW/MswrM5dd4/KY6SYWE4IoG4CAhWZG/MYQkQpyFt bxFjym0qBJo/DIVgpSq2wUqZvxP66cG81eJo1wO0oz26vkHntWZdg/VlCYhySGFbyfui pd1e6oOspJqOEuDTjsnCLE/iVeeChqEVoQzbILgt7slHU8DqvhT+NUD8HitVLtNP2g9/ tgU+DaK/fOXb3hDBEUidsUd2mPS3RRcy7H6IyUBfMB2rup2fh0lRk7BKObdlKLhdeiM4 g70xiT/Jh5eM3xiyHR2bqTxoHzWeujS8Bf52IuwryBCLop8tCfQYsiJN8SC/+hqy2Tqf +E5A== X-Gm-Message-State: AOAM532PcQO5jF0H4BeHfp3rVIumRJO5keKOlVIv1zeN40bPnvrqKTw4 sR+dBRqPcum/Ana2jSuEX8w= X-Received: by 2002:a17:90b:4c0c:: with SMTP id na12mr4980552pjb.24.1597863538514; Wed, 19 Aug 2020 11:58:58 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.152.86]) by smtp.gmail.com with ESMTPSA id o134sm29149305pfg.200.2020.08.19.11.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 11:58:58 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Bartlomiej Zolnierkiewicz , Sam Ravnborg , Paul Mackerras , Russell King , Andres Salomon , Antonino Daplas Cc: Vaibhav Gupta , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-geode@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan Subject: [PATCH v3 00/12] video: fbdev: use generic power management Date: Thu, 20 Aug 2020 00:26:42 +0530 Message-Id: <20200819185654.151170-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.28.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 upgrade power management in video fbdev drivers. This has been done by upgrading .suspend() and .resume() callbacks. The upgrade makes sure that the involvement of PCI Core does not change the order of operations executed in a driver. Thus, does not change its behavior. In general, drivers with legacy PM, .suspend() and .resume() make use of PCI helper functions like pci_enable/disable_device_mem(), pci_set_power_state(), pci_save/restore_state(), pci_enable/disable_device(), etc. to complete their job. The conversion requires the removal of those function calls, change the callbacks' definition accordingly and make use of dev_pm_ops structure. All patches are compile-tested only. Test tools: - Compiler: gcc (GCC) 10.1.0 - allmodconfig build: make -j$(nproc) W=1 all Vaibhav Gupta (12): fbdev: gxfb: use generic power management fbdev: lxfb: use generic power management fbdev: via-core: use generic power management fbdev: aty: use generic power management fbdev: aty128fb: use generic power management fbdev: nvidia: use generic power management fbdev: savagefb: use generic power management fbdev: cyber2000fb: use generic power management fbdev: i740fb: use generic power management fbdev: vt8623fb: use generic power management fbdev: s3fb: use generic power management fbdev: arkfb: use generic power management drivers/video/fbdev/arkfb.c | 41 ++++++------- drivers/video/fbdev/aty/aty128fb.c | 51 ++++++++++------ drivers/video/fbdev/aty/atyfb_base.c | 50 ++++++++++----- drivers/video/fbdev/cyber2000fb.c | 13 ++-- drivers/video/fbdev/geode/gxfb.h | 5 -- drivers/video/fbdev/geode/gxfb_core.c | 36 ++++++----- drivers/video/fbdev/geode/lxfb.h | 5 -- drivers/video/fbdev/geode/lxfb_core.c | 37 +++++------ drivers/video/fbdev/geode/lxfb_ops.c | 4 -- drivers/video/fbdev/geode/suspend_gx.c | 4 -- drivers/video/fbdev/i740fb.c | 40 +++++------- drivers/video/fbdev/nvidia/nvidia.c | 64 +++++++++++--------- drivers/video/fbdev/s3fb.c | 39 +++++------- drivers/video/fbdev/savage/savagefb_driver.c | 52 ++++++++++------ drivers/video/fbdev/via/via-core.c | 39 +++++------- drivers/video/fbdev/vt8623fb.c | 41 ++++++------- include/linux/via-core.h | 2 - 17 files changed, 267 insertions(+), 256 deletions(-) -- 2.28.0