Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp726372pxa; Wed, 5 Aug 2020 11:13:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD0t7VtJ4Db9klkD93mQTJkAOua+FLXQ11kbM0yw+7A2DxDaizqfG9IOuVRHNRUO+85EqW X-Received: by 2002:a17:907:94ce:: with SMTP id dn14mr462740ejc.351.1596651220653; Wed, 05 Aug 2020 11:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596651220; cv=none; d=google.com; s=arc-20160816; b=x3Xthf6xB61ZeRZrmC7gYxIo8Z/yZBE1W+SIXsMv2fEDrZ82CyCCCYoWqSS1ISVvNQ QqF7k3MOqM3lAXQMm3Q5F4IuQ2DgIoTi+efA8XCkp/hM2XRQu0Lv1eKJ2TJBD9/0yGjA CPpFsqDANhj2sZdA9d8HvmuBOep02FQ7Bl/ZeFAIoqrV1Kl5vM9j/6pIkHadfhfHF9Lf WJR0ZhJfgCpbud9Yzg3GzuAhyHnOdycuRtllFY3GmqjApS9QdIouCb2A0td/YGpW+IrR HYCebafWYkq1v+/Ho5H4j0bmUqbS7SOBjf0cuihNnHaaEdQD/Bw6YcCRbgW3j3yVFysa 5jww== 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=x87wiamKK8IpHrYWyQZkX28BwuSCR2wXWSfYCvqc6Rg=; b=mATtHo+l8alpodm+2ntfd176xvIqm3hKz+V5ojPRu0HIk0fPvdg3N99op+I4pikl5N bPJ2KyRtxHJrrqZKctaHd+X8IIh8BCxqxOY0hAUmNmH5O6BEMtg5uTYm6nx76+VPJqIv XWiILiLwI+mcY9bS2Zd8OgtmJNjqnGLapRv8exUCblFx13WpRayf+UQYVnOIJKK9UYHq U4Mkwb/trm9ovXfRPfftYSlhEYq+a/kVts6U4UMi1M1pfde+azgtdvFqcZgTSLW5pVE0 yJAmAXwkLL6kPZYM9bkV0Qizi2wX1XdMV6GgcyZjmk3sZqMGmmgJdT4zq6qjpWK8xbPZ 4VHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iVu5YmbC; 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 ch10si1715237edb.28.2020.08.05.11.12.39; Wed, 05 Aug 2020 11:13:40 -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=iVu5YmbC; 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 S1729080AbgHESLu (ORCPT + 99 others); Wed, 5 Aug 2020 14:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729115AbgHESKG (ORCPT ); Wed, 5 Aug 2020 14:10:06 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58A44C06179F; Wed, 5 Aug 2020 11:09:13 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id c10so3487255pjn.1; Wed, 05 Aug 2020 11:09:13 -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=x87wiamKK8IpHrYWyQZkX28BwuSCR2wXWSfYCvqc6Rg=; b=iVu5YmbCMVDewJqlVtDIukhKIgmctZpLwDYBjjmVLQM1euBz+LL3Of/pjceORkGcXF c7dONE40HnV+TknJtM2Tzk97+fvTlV+/t1CGUh342m0OcQFJXj3WM0uTeln70cX61qu9 USzcgm0fYccuXZypXeKskZxK8qIzOXDewtV0+HZtVr3fQWdBDKc4iYFVrAF7P6egb0GR bqo4koVQOC1SSbnWDyviBLLNqEch7ix/IqZEB/fP5QPUzcpfpk2X+iBqi75Td6Hc40kk hvRUQjHkYKlCXxoAF9Gy8JOpbx55jwzwCN39OL8vMFLiD6eYyLIlyo3Fz/LV9LgkvtuB 66zQ== 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=x87wiamKK8IpHrYWyQZkX28BwuSCR2wXWSfYCvqc6Rg=; b=BLOuE6sH1xmXoGEOEo025t1RbqW7383coJ+TNm9u/we+TNw4t/JdiAkaXcEuuMrZ2E Ich0cxkLHlJkHXQ90IVagY4ME8IsoDQ7Edxo9eRZ7pC3PzOtp8PddESOANftug9squ9T rh60HEnhcWla13oD6Fkb/uWvUyXeLbeBEqXdsJfatGy83qGm4zmwzfv5scUqGnNeqDqq 4hUQLsp0ZLTSgzPVrgHtw1JMos339v83FSW0lRIaJOq/1yRjlePvvO9K20unKkO9Pms4 4IM9M96pN6pLaviyl4+Q4J9AxQ+7Hf1B7KTBdQ8lWjoRQ80MJGIK+NNdcyp7XWRXSrpd wq+A== X-Gm-Message-State: AOAM532aiIal57tyaPlKsOu6vm2O/rq19/KrXQHJfX7iakWTFfCokAiU CUlKeJILsOVIOAxG3xXBdXo= X-Received: by 2002:a17:90b:4a0a:: with SMTP id kk10mr4515843pjb.30.1596650952734; Wed, 05 Aug 2020 11:09:12 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.152.86]) by smtp.gmail.com with ESMTPSA id t63sm4977510pfb.210.2020.08.05.11.09.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 11:09:12 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Bartlomiej Zolnierkiewicz , Paul Mackerras , Russell King , Andres Salomon , Antonino Daplas , Florian Tobias Schandinat 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 v1 00/12] video: fbdev: use generic power management Date: Wed, 5 Aug 2020 23:37:10 +0530 Message-Id: <20200805180722.244008-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 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