From patchwork Mon Nov 6 12:25:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 13446860 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 43837C4167D for ; Mon, 6 Nov 2023 12:26:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231671AbjKFM0R (ORCPT ); Mon, 6 Nov 2023 07:26:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjKFM0P (ORCPT ); Mon, 6 Nov 2023 07:26:15 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 169A5DB for ; Mon, 6 Nov 2023 04:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699273573; x=1730809573; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7363WUnLroCMiaNvHvPaeIp9QBwMw3oHJNFSlFUkcGs=; b=iW13dJIjctiQHya+bPYAHU8ss9heTlutQazPUwy9hK0ZSGSF4DdhSRYv wFUyaZeIO6GiRrsBpd1vyMC/yXAA66mz8Tjq9jYntFVy7K6G4D06QHZcD gtIDveeF2/3wnIpD90cNSMYHmsTC2wfR/sAaaFT6v52+UeYdbJTgmcXoO QC2S+fKqbRg8MtnaBYTCWYx6k/N13nwywJvvq/MptrfEFBp1rup0qffaL zOvSV6wk5iCJRqck7n+6827FFqR4pgZFmDu4w9fp8KbVTJzjUkUFxp8nh uBn1sLbttJaFaXBat9gi8tJmVbD+SUzQrOj090ePmcisxy08mUxLEfCEc w==; X-IronPort-AV: E=McAfee;i="6600,9927,10885"; a="369469648" X-IronPort-AV: E=Sophos;i="6.03,281,1694761200"; d="scan'208";a="369469648" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 04:26:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10885"; a="879427737" X-IronPort-AV: E=Sophos;i="6.03,281,1694761200"; d="scan'208";a="879427737" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 04:26:09 -0800 Received: from svinhufvud.ger.corp.intel.com (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 391F91202BB; Mon, 6 Nov 2023 14:26:06 +0200 (EET) 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" , Alain Volmat Subject: [PATCH v7 18/31] media: ccs: No need to set streaming to false in power off Date: Mon, 6 Nov 2023 14:25:26 +0200 Message-Id: <20231106122539.1268265-19-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231106122539.1268265-1-sakari.ailus@linux.intel.com> References: <20231106122539.1268265-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 61280d0b80fa..7e6166e70adb 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; }