From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84475C433DF for ; Fri, 17 Jul 2020 04:58:18 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 48E88206BE for ; Fri, 17 Jul 2020 04:58:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ABckm4Cp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 48E88206BE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2188386277; Fri, 17 Jul 2020 04:58:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lp6vKI-KnInH; Fri, 17 Jul 2020 04:58:17 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9F44786283; Fri, 17 Jul 2020 04:58:17 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 80C87C07FF; Fri, 17 Jul 2020 04:58:17 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 97E3BC0733 for ; Fri, 17 Jul 2020 04:58:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7E43D203E9 for ; Fri, 17 Jul 2020 04:58:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MdErbQLa+keV for ; Fri, 17 Jul 2020 04:58:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by silver.osuosl.org (Postfix) with ESMTPS id B947A203E4 for ; Fri, 17 Jul 2020 04:58:15 +0000 (UTC) Received: by mail-pj1-f65.google.com with SMTP id ls15so5960482pjb.1 for ; Thu, 16 Jul 2020 21:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/oRewgFvGaQNev9gG1TOwBh1zMOVWvkQU1IczbGLRlU=; b=ABckm4CpOvOAqCXeBoOfCRPNvFAJZ1k5Q6gt189Y4Jj35kUkZY9yVoVjIS/aGTs6hs zDtFsDNyoOQBBgOnbkm2jJuMtPFZ1Inl/usiDSDEqA1bvmln+9PO2mkYkihgHzd1iT1Y spIav2nhi7UrMn1MoITUnQ6b2WbjnG0ndojUfCm0Sv7hmtSVVvD40mzBbIUa2wDHvYaW p9wqURCA+BrZA5/h39vhFHIa5QR7Um0ao5dOIYgBWSH5pAKtl3M0JM+WUCioGkc51lms n8sIHWOU3t/9IaPI9qpnjxd1ICheZHVslJB8IKs7b5o1CRe9alAC3rud/HEmgP+En/EI udcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/oRewgFvGaQNev9gG1TOwBh1zMOVWvkQU1IczbGLRlU=; b=df5ZwFqfYwaW9Ra+3+6WvPL2kSJsMmPIvJCViF2YAcuindH61UXbIJt1o+TmdbNmY2 2LXyQYSKfBuDYRt8Uttww4KK5Db4kGk3TQWFt6KvWcSOuLvfmKmAg++5cmUKm/4Z1kac xKo4WkxEkKcqdq/Uf3T9H5eCmjoE1XllSJluIt1ut/IOOj7s34SDP5ghlOLceJR1P+BH s805wf13tfCWpDPpyemrbmiHdPrmgSo+CBjNQOOt9wjJbOGJ6IgsklllX3Wvd81U4Zyi JyyJ5VBQSXWO+cNY5Ky1Dd1czTDZdFhZXBXrEBWywD0DPOhhXUQE2ldMn4uKh0Oc02RJ VeAw== X-Gm-Message-State: AOAM530sUlwd3bijokslsIwTpKi8+WcsdUC5BWYBFrVAua8xMRz9jTc8 uRmLVrKN6PzshI25iVveNPM= X-Google-Smtp-Source: ABdhPJwlUOr9sLF55zh5BAYeD7nEIBP9B8lwtG4fd7pQmfdqi60iR1n2G7y3RrbmuZf18vKaMpHfCA== X-Received: by 2002:a17:902:9890:: with SMTP id s16mr3666000plp.112.1594961895145; Thu, 16 Jul 2020 21:58:15 -0700 (PDT) Received: from gmail.com ([103.105.153.67]) by smtp.gmail.com with ESMTPSA id m3sm6498708pfk.171.2020.07.16.21.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 21:58:14 -0700 (PDT) Date: Fri, 17 Jul 2020 10:26:48 +0530 From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Mauro Carvalho Chehab Message-ID: <20200717045648.GA121727@gmail.com> References: <20200717035608.97254-1-vaibhavgupta40@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200717035608.97254-1-vaibhavgupta40@gmail.com> Cc: linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [PATCH v2 0/6] [media] pci: use generic power management X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" On Fri, Jul 17, 2020 at 09:26:02AM +0530, Vaibhav Gupta wrote: > Linux Kernel Mentee: Remove Legacy Power Management. > > The purpose of this patch series is to upgrade power management in media > 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. > > v2: v1 possibly broke cx23885 and cx25821. v1 didn't break anything in real as patch was not applied. But it could have. > > All patches are compile-tested only. > > Test tools: > - Compiler: gcc (GCC) 10.1.0 > - allmodconfig build: make -j$(nproc) W=1 all > > Vaibhav Gupta (6): > sta2x11: use generic power management > cx23885: use generic power management > cx25821: use generic power management > cx88: use generic power management > meye: use generic power management > tw68: use generic power management > > drivers/media/pci/cx23885/cx23885-core.c | 3 -- > drivers/media/pci/cx25821/cx25821-core.c | 3 -- > drivers/media/pci/cx88/cx88-video.c | 52 +++++-------------- > drivers/media/pci/meye/meye.c | 15 ++---- > drivers/media/pci/sta2x11/sta2x11_vip.c | 63 ++++++------------------ > drivers/media/pci/tw68/tw68-core.c | 30 +++++------ > 6 files changed, 44 insertions(+), 122 deletions(-) > > -- > 2.27.0 > _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees