From patchwork Tue Oct 3 12:08:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 729434 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BA30E75453 for ; Tue, 3 Oct 2023 12:08:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232173AbjJCMIj (ORCPT ); Tue, 3 Oct 2023 08:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbjJCMIj (ORCPT ); Tue, 3 Oct 2023 08:08:39 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF1FB0 for ; Tue, 3 Oct 2023 05:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696334916; x=1727870916; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bF/BcJQaDDRuRcpdS4pVMfaIZJcjCXS5pYDwceWseeA=; b=O/ze4aQ0wojwcYTaswT3zCs/R7xZexJ0ExBmA/Nblo5B5uZ8nwgnI/Sr 4znwqZ3fWRiivUQx9frp1/gBZA0AT3i17LQsz10CSvdIIHT33Hr2MDIL2 4SwS1009MFJdGoFCvpZzOf1CCWL6rdPc30U3PkPcH3IiMM1NBzRmNKHVs kB3l7AknyZA24gM1DkmtUWx0/aprZJu4yKpxiXn4iaZBtvaP2pFSSORqv IXOrDfuc9IasSq1oxQGnWassRawfHlQNEScRyFtxTsdLYnasPW83/NRsk 6fBI7X/h6c3iZVUMSjQiIbU1K19rPMB0aJZcq7A3EHPAgKsGxaLzQM9LC Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="385681553" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="385681553" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 05:08:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="780285934" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="780285934" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 05:08:33 -0700 Received: from svinhufvud.ger.corp.intel.com (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 2916F120A2E; Tue, 3 Oct 2023 15:08:30 +0300 (EEST) From: Sakari Ailus To: linux-media@vger.kernel.org Cc: Laurent Pinchart , tomi.valkeinen@ideasonboard.com, bingbu.cao@intel.com, hongju.wang@intel.com, hverkuil@xs4all.nl, Andrey Konovalov , Jacopo Mondi , Dmitry Perchanov , "Ng, Khai Wen" Subject: [PATCH v6 21/28] media: ccs: No need to set streaming to false in power off Date: Tue, 3 Oct 2023 15:08:06 +0300 Message-Id: <20231003120813.77726-12-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231003115237.76828-1-sakari.ailus@linux.intel.com> References: <20231003115237.76828-1-sakari.ailus@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Streaming will have been stopped by the sensor is powered off, and so sensor->streaming is also false already. Do not set it as part of the runtime suspend callback. Signed-off-by: Sakari Ailus --- drivers/media/i2c/ccs/ccs-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c index 2abfd5932e02..0c518145b2c8 100644 --- a/drivers/media/i2c/ccs/ccs-core.c +++ b/drivers/media/i2c/ccs/ccs-core.c @@ -1700,7 +1700,6 @@ static int ccs_power_off(struct device *dev) usleep_range(5000, 5000); regulator_bulk_disable(ARRAY_SIZE(ccs_regulators), sensor->regulators); - sensor->streaming = false; return 0; }