Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4555558pxa; Mon, 10 Aug 2020 12:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFxamU+vmhr1LCuWMEpp9yhF9/zT8uqMSDgy9udCnNfvYTSOlKVgPBB9ewz7Xqv1lmgv84 X-Received: by 2002:a50:fd8d:: with SMTP id o13mr22899209edt.313.1597086044044; Mon, 10 Aug 2020 12:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597086044; cv=none; d=google.com; s=arc-20160816; b=zDDNb2TAnYxZ7MU1Qc6+kMZiUfRYTH/8Xj/21dWBh9R6QkW0oua3icegs2SpzBnsvf x7rDP0214wyXLGskCj35VzsnCMRE98fNNU5O3vXSXbc1QRM7PrRLTiAYXUN3dWbHOj5l uRXdN8zSlptK9HPPpudgxNgxcUqY/UoVWztYjU75EJ4pM+Irp2xyFrNALZgJOcM8kaqH QLqG7TR1+SJBAz+cbWmZcdzsRqMhIV987lASLLQr5u4LOFTLB3jLe5G1hcWoB827tD+5 PZmPwO0ZhGGoarhfivdSxOqh1MDc/IidlefMla8wB3wEYMWK7xO7yZ1fht2JHKpE/VQ0 c5BA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=x87wiamKK8IpHrYWyQZkX28BwuSCR2wXWSfYCvqc6Rg=; b=HQ3XsDHYUbqcgcRZghtvS1K1P6faYTyWfvxzz8L2PWee5BMHYMvUxF1TqTONZ4Ysfe fvMgt1Y+eObQm6QCiR68dJEAYbuIZ+8eCXiD2Z+nU6XfzF5LI1BeU+2j7vLJmFQ/oW4t ewMn+nK3jAb/UyhpnsINzuPVvV91l8VDeRmzRoVj2gsmuYgaxaimbxWQNM8pdrHERmEp 6/cM9n6CZehhLRedlO/FEb3BeaRnOSHsuI1zoQR02q9WwMelB5bv5fYTgy+BAYMymKHY adMitfbXdzMo02PAuZjH46ZDbZCBIa1W2dd2ZysVIG1lxsTn2cYsNIwGxJ7MIy+zcThA 3YoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZZsnFz6L; 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 bx11si1604211edb.189.2020.08.10.12.00.21; Mon, 10 Aug 2020 12:00:44 -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=ZZsnFz6L; 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 S1728308AbgHJS7T (ORCPT + 99 others); Mon, 10 Aug 2020 14:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbgHJS7S (ORCPT ); Mon, 10 Aug 2020 14:59:18 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 882C6C061756; Mon, 10 Aug 2020 11:59:18 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id d19so5439039pgl.10; Mon, 10 Aug 2020 11:59:18 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=x87wiamKK8IpHrYWyQZkX28BwuSCR2wXWSfYCvqc6Rg=; b=ZZsnFz6L+wbM1Zgg5QA7lgADPT6oEH8/ADKOklgw32TAKsJT37pzlRTS8P3PEYEU21 0a5tolSF9/i6pWJzA1Ezl7Lmuroho8D9xIgHerRNXT5z2bFEzWjqeFDUNBNJ5j0CozVE WVZCtUqwr5eChlEX3rtzkrtXYQRS+F/KAJJOwggs2PcBOip781/p8XMRT8WEr+s1rII0 nAmGLbJwKfTsy/ySJlzup63SsbjrJ727FRySv3UAg5IWXReYUSy76ylEygkQ1VnZMFE+ cIxdPQafbXsER2xhNcurt51yWutvFr8nD+sGheu+NIer6bZs1UbfeEq8GTYPsucTFlNl cjIw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=x87wiamKK8IpHrYWyQZkX28BwuSCR2wXWSfYCvqc6Rg=; b=mWQFrMTxEJld5NsEeqEeLnaXd0UpJpFqFbAguRkfadGwgc282GIH71Ypr7ItCEW9nU xgIF9hnqN12oTBz8jcmmMoX+Eu9u6uAqeZMlrNKEVSKkcTC0Oq1ey6NxoahBsIq8UnQI vC+nhNzK7RFIZQOboCYKEgbFiiSzm6Ji79c7TnJRZuu4gLrlfkFaDpt4OEOT245aXboi yMjIFdc8LqhoIek5TWSWA/wXG3bJSBwnr+fgVghw9nWg4f168E/hYSYUh6PPzl4GGJ9G 5khE6W8JbyhWzHRrRZVjPqWNn5cEpAXxOyKGtZJraEDkt6ZNn1BU6YTtyqP5+I16/xeA YT6g== X-Gm-Message-State: AOAM530pN/T6+hG7fNriAVl8xfU+aMdOvxz0WQhCtrAjbLS4cQdk2DRS Bx4VO/XQdDwmt39oC6oGooo= X-Received: by 2002:a62:cfc1:: with SMTP id b184mr2255523pfg.262.1597085957970; Mon, 10 Aug 2020 11:59:17 -0700 (PDT) Received: from varodek.localdomain ([103.105.152.86]) by smtp.gmail.com with ESMTPSA id f27sm22683547pfk.217.2020.08.10.11.59.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2020 11:59:17 -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 v2 00/12] video: fbdev: use generic power management Date: Tue, 11 Aug 2020 00:27:11 +0530 Message-Id: <20200810185723.15540-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200810165458.GA292825@ravnborg.org> References: <20200810165458.GA292825@ravnborg.org> 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.27.0