Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3052179ybt; Mon, 29 Jun 2020 14:01:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8s/O4L8aMJgfLkJ6NxjeY4sRP/DIAt3weqQzPEZxuiI0Ve+5z3+chjbxd4Bzg9XQvk/cy X-Received: by 2002:aa7:c4d8:: with SMTP id p24mr17161097edr.323.1593464493749; Mon, 29 Jun 2020 14:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593464493; cv=none; d=google.com; s=arc-20160816; b=Zu2Z5fyGZxeCTjSx+Cminw9fRN040e2mZO4yu/VMmytRTqM8cqXbdKUkY/lrjZxCx6 WOFnSzCxHIThU1/+Dmed1OxGbT4WgcZTTjlXI8j+d0nN5TWWJtp76AamY9ierygOxMSJ N4t8+jchv28ehfbF1P/G46pwyIgTzimYTL2gZ7L8WGmRuba7kvBDdYLhuFfnJ2+44AFd yfyunCW8Njo1zJUv2BWmLjxl5J8GNGE/F+vYiSCEffZCqwfNRi14s4NDBf5P/6z11sRG cOHDY1FYQxmfJYa7PGsHJWZ+4rxO72dIDWj902fLe7SzPL7NwWwayHydRwHA0P41hxPt z5+Q== 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=gDM4k1Yk8LW7xlU6yNIJsCHS3QIR5uvUtDlbeW1QFKk=; b=TayzWkkUdSkmoAkTZtqyDWnu6bfIf5vBB+IBDkc1ogzNexIKIftp2Gqwaaz7ASMCHB UPBuHxtLx5yZ4e6u6TcQCo7Cb9cMROI3aap2XabnV9fRlVxH8iZiqNfAaD6NbrnB36MV u5S1aVbYjcuBHr0Nqo8uPexK4tv2cYGXeU4EgjPSUmuy0i51T/cLwP4Aeud4tmDj5JHp Segld8Yo+UaWrAFKN3zZ2lSbSrNidoYaD3D7Vvi8WvkhbY5OawHWUsy8kvS78JcQlpyE J6ZEsQJYtaVm+DjKxAWhh+BXjtN5YlA9E1gMHN5LgU6s4/ERGcOZZVMpp4bpAjTK3VXk 1ICg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X8RCISIZ; 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 k8si347384ejc.257.2020.06.29.14.01.10; Mon, 29 Jun 2020 14:01:33 -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=X8RCISIZ; 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 S2389907AbgF2U6x (ORCPT + 99 others); Mon, 29 Jun 2020 16:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730969AbgF2TNC (ORCPT ); Mon, 29 Jun 2020 15:13:02 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B38BC0A891E; Mon, 29 Jun 2020 00:37:20 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x3so2007746pfo.9; Mon, 29 Jun 2020 00:37:20 -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=gDM4k1Yk8LW7xlU6yNIJsCHS3QIR5uvUtDlbeW1QFKk=; b=X8RCISIZnXYpunasoPJqDhNH3rQ0XiSvdy4nAbk41pWq/dz/IPVZkg7PzZFRa4X1xn 2YpDmquvcakzAJvUjME2R+RjFbDUOq9YJeT8rjloM3HOL5a532uXPTt3dHwNj9mDtxDE /rr7V6qOJWdkIs7xHye+ZDDVtmnOsdmoRMhBAY5Ll2d3KNJ6vxOXRcwIpI/ZM2B8s8e5 EFAo4K2iEPmbe3Zg26yk6ckABJk299EGhZxOMt+9spTkdaphyQMC8ffmnIa2dvd6pC5w vz36LE8CtA5QSCMHB7d3B1H2h8nqKu3qQnShqek5l9zhH7FMXqpb+4uo9XFAE17E3zRm ZoJw== 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=gDM4k1Yk8LW7xlU6yNIJsCHS3QIR5uvUtDlbeW1QFKk=; b=ecKykODT0J/xY1MRekonSaUdzf0zCjepa4quyBnufQJCGle+YBGe3OrKhYriyq5cfu HErPg1ddzpGmtbi0hXi1xULCXIvlvPr4zwauB1skHzxMFaX4CyRGSSC94nrNfoX8EuIy Z/Boiz6q2Gj8qLlZqUJim5ijK+rt2Ef2er54sE4u0ZC+IPXsJh4E5nzS+pXEwQdyg2L3 cCfHUso9+tvVHXyMWIpotjgajZNL8HOVzTl3UcPuL3tEQVvRN/Q/fzdmij0qJwEXS+XJ f/ja5aMfDx2ZJg70lW9suwNcK53dp7o6wPEEGQDMti+NPo+pyDXdhOuL920JBzAU8VEH QPzQ== X-Gm-Message-State: AOAM531oowVC4Shqb4zwjOtbhUSKpKSjzKUcR4lhW70BlENgwQ4zK1i7 ux292YPk6Ntpbi3gg7iY638= X-Received: by 2002:a63:4861:: with SMTP id x33mr8936376pgk.448.1593416239679; Mon, 29 Jun 2020 00:37:19 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.153.57]) by smtp.gmail.com with ESMTPSA id q10sm34673004pfk.86.2020.06.29.00.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 00:37:19 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , Mauro Carvalho Chehab Cc: Vaibhav Gupta , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v1 0/6] [media] pci: use generic power management Date: Mon, 29 Jun 2020 13:05:58 +0530 Message-Id: <20200629073604.205478-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 from amd ethernet drivers. The callbacks performing suspend() and resume() operations are still calling pci_save_state(), pci_set_power_state(), etc. and handling the power management themselves, which is not recommended. The conversion requires the removal of the those function calls and change the callback definition accordingly and make use of dev_pm_ops structure. All patches are compile-tested only. Vaibhav Gupta (6): [media] sta2x11: use generic power management [media] cx23885: use generic power management [media] cx25821: use generic power management [media] cx88: use generic power management [media] meye: use generic power management [media] tw68: use generic power management drivers/media/pci/cx23885/cx23885-core.c | 16 +++--- drivers/media/pci/cx25821/cx25821-core.c | 8 ++- 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, 60 insertions(+), 124 deletions(-) -- 2.27.0