Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp133410lqe; Thu, 4 Apr 2024 01:47:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXg40Yqs0wjWge+fLA4zRxlU5r8pJn5Tej7N9oKGdMA+tus5c9xzLh/Izx9mv7sLQsArbCPuHdVeHW98AQ6w+skY76x+dH3hCnqw0jUhA== X-Google-Smtp-Source: AGHT+IG8ZT6hPQWlStB6sRZ+romlRPPXQZyvZDkrrvHj4aqYi3d4NfN/DJfFqzbRgjIWASNQNujp X-Received: by 2002:a05:622a:1789:b0:432:e3a9:5e5b with SMTP id s9-20020a05622a178900b00432e3a95e5bmr1715718qtk.17.1712220434653; Thu, 04 Apr 2024 01:47:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712220434; cv=pass; d=google.com; s=arc-20160816; b=GGojZnOoyG7KOUsn2eNfST/XAf9I0H11LxhGlXiBw018tPZCY9YK+o1w6MxVkDxJQt d3kJrFjwENryaUPNN/Dg1J8s7euaYKYll0EQ6NUaovob8zW7MJDhxzE/XRZhOYXF5OD7 bB/ZU9JqfpcfYNQ2Vbiclvlr+GHf4N6CVueLJDR4+1UDTNDhwQv7KulodpmoepWE3dNO +PFbd4MeF9+MdUIXlRHbIUokFd7bcIJpxpNyA9qmpRNn+DOBqJkG3a4yJwLVxDwcrFNB AR/gWqvXD/24ph3hpvWnu/n7jTQWQAVf6hqVyzqIE6kyaVZrlpKEnhQUYYriYsnb2UwD FKrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xjZt/RwlPxRlr98AqzuPPYOn/Y0nIFs5o/zQZfqvW3k=; fh=UEST/Y7feJrlwymQ9M4bu+2mItgcOZ4/zHeD565QR7Y=; b=B7DqQZGul7bkT0lswcop+h4Vqa6ydfaZ5GYEe0iWa3eZhEWne3L83T+vZZJoBWLg24 I9CS+hUSfJKt/YuULtFUMieBBKCvDSLraZGlRhLi273AcqQS3kbMNI+A5JBEKpNEWuYL FLpa3Xq4i2Rqs/tIHeyKDF9/ETmFO4CTBr0QuPsssegn1EuHMjSxlUPUir3AJ50TGKbF sfC5dN1eQcXw9zI4mXMh6jvkRctA5fpzFW+SIMnVTZ1lbuf2EZkFav9qB4nhWUpX3QM5 vARZjsEWUh1HgHngBKFPvNpLd7To/n9md9aV/OWyD1k10TtSTOF9B6bZr0jY2ujo3xK3 DRfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=asXyt6EQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x18-20020ac85f12000000b004315f882b28si15981572qta.2.2024.04.04.01.47.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:47:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=asXyt6EQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2FC891C21054 for ; Thu, 4 Apr 2024 07:28:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2977A5D461; Thu, 4 Apr 2024 07:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="asXyt6EQ" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C25159158; Thu, 4 Apr 2024 07:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712215680; cv=none; b=dOmerWTy8qFM3YwbvDWhPsY3vWgjrtfq2Cp1D2I0+WFI3URUuVRNQy+39HAaEnV9AKp4odu0T8ePO8wmjXhfG9K19hW29+nsJarsVahDCXQDAVcB9bUJ2EPya4XGpSN2ESMpPLKFSRIpadUdxdbzriJehF8fG9BEdexqGinVglI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712215680; c=relaxed/simple; bh=RKQ+b/6tx0j5fcRbGd1+ZSjUZNL7pamhVmxxau7bjRk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B1AVk9S0tX8WOlXod62BmJKJnvtuJl6JBew18lV+7RNEDjsO7QT9kxyzLYlPvuLVY9E1gNxV1Nv673me+jAS9F66EDVe000T8iZCL83yK/YNINnvlAJsfYL02wuc239IodvJMro0Tar8UIc2FMGP8X5EwNqp5KkHKXiH0OxPT5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=asXyt6EQ; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712215679; x=1743751679; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=RKQ+b/6tx0j5fcRbGd1+ZSjUZNL7pamhVmxxau7bjRk=; b=asXyt6EQqJKrNjoNw/DnP1R0Ggm+kIyoggjSe8OzmqOdqgi9jQoTed5B yTAT5+wY/5p2Wq7s5hRWJKgUbTIRXjoG1Dxrutv1KlpwBG1eiDD6qPodq R01UwcMllCIhaxASc8TdAEPHbJn9rf4IGN4rOuqCARlf9AMcullCnZ8NM 5W/5FiNbhd2rspK+qt92aLX2w2Sh8kF89NeSqc+64gHHORrMo7MJyRd7L Bg5Y3s9eP6rCcV9wCSa5ukcb4Ph2Jlbg0i1U3Xq41boTviHqc41hBEf02 glCc1i+a+MXCfbBjyWyUOfb+jYd3YAQXk+LgzxQZvD1GFiX3dnnw2u+/c Q==; X-CSE-ConnectionGUID: 9xeE+pR2QtScVCODI1CcMQ== X-CSE-MsgGUID: O5cOmguMQAOV/syGdiTSiw== X-IronPort-AV: E=McAfee;i="6600,9927,11033"; a="18639036" X-IronPort-AV: E=Sophos;i="6.07,178,1708416000"; d="scan'208";a="18639036" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 00:27:58 -0700 X-CSE-ConnectionGUID: oppg5AWXS++CeE9U/jyXuw== X-CSE-MsgGUID: Ivckoag3Qg6Aicdl0XJzcw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,178,1708416000"; d="scan'208";a="18802468" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 00:27:50 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id A685611F855; Thu, 4 Apr 2024 10:27:47 +0300 (EEST) Date: Thu, 4 Apr 2024 07:27:47 +0000 From: Sakari Ailus To: Bjorn Helgaas Cc: Yong Zhi , Bingbu Cao , Dan Scally , Mauro Carvalho Chehab , Tianshu Qiu , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Hyungwoo Yang , Rajmohan Mani , Vijaykumar Ramya , Samu Onkalo , Jouni =?iso-8859-1?Q?H=F6gander?= , Jouni Ukkonen , Antti Laakso Subject: Re: [PATCH] media: ipu-cio2: Remove unnecessary runtime PM power state setting Message-ID: References: <20240325220325.1452712-1-helgaas@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240325220325.1452712-1-helgaas@kernel.org> Hi Bjorn, On Mon, Mar 25, 2024 at 05:03:25PM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > ipu-cio2 uses generic power management, and pci_pm_runtime_suspend() and > pci_pm_runtime_resume() already take care of setting the PCI device power > state, so the driver doesn't need to do it explicitly. > > Remove explicit setting to D3hot or D0 during runtime suspend and resume. > > Remove #defines that are no longer used. > > Signed-off-by: Bjorn Helgaas > Cc: Hyungwoo Yang > Cc: Rajmohan Mani > Cc: Vijaykumar Ramya > Cc: Samu Onkalo > Cc: Jouni H?gander > Cc: Jouni Ukkonen > Cc: Antti Laakso > --- > This code was initially added by c2a6a07afe4a ("media: intel-ipu3: cio2: > add new MIPI-CSI2 driver"). > > Even at that time, the explicit power state setting should not have been > necessary, so maybe there's a reason for it. I have no way to test this, > so if it *is* needed, please: > > - Add a comment about the reason and > > - Convert it to use pci_set_power_state() so the PCI core knows about the > change and all the required state transition delays are observed. Thanks for the patch. The device seems to work fine with the patch applied so I presume it wasn't necessary to begin with. -- Regards, Sakari Ailus