Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp60876lql; Fri, 12 Apr 2024 03:56:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxnMryfkKw/gH8M3HIO9rfS+kebsFOVLYijLgbEDzlVxXvjQS/HKK0B/RQ1yVibtzPvv7QpCub8c1dNlIq2QkHXHrrl8eiugNfe0bpQQ== X-Google-Smtp-Source: AGHT+IH2tHFj+xz48rqt9I3j01BXvh/80VKrTQGSO4VTcdAHM9J1spLP/Ps9jmfdJ2d1D5/DPHxf X-Received: by 2002:a50:8e52:0:b0:56c:4db:33f7 with SMTP id 18-20020a508e52000000b0056c04db33f7mr2027085edx.10.1712919384807; Fri, 12 Apr 2024 03:56:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712919384; cv=pass; d=google.com; s=arc-20160816; b=qIn1jFLKPA6uXLpu92s9VZJ27t8n1jpFeHxqfIh7etESgnDsTPnsPEn+pCUedajGcg UXKDEVW6pqcQJkZahOou8pFuBa4cgELPB639MJ+KUSBi7oxNBtloP13HSHLN75/z9Lij NrQYhrbYimKjeoABVJykZV229r6RWFaCQ28nAM6BeQdbSgrk323WrbAUNZbH1Z2eNvnH 7eG0deeABITAFROlZ/c6/vRm3PrE++USi/YqcYozdEnWOLDZoSyRlO6B94+eqSjuqtG6 5c6/jpdh24fDobCL9JSOFLgkcpnNFug66eTCRNsj1790LMR0kkvJ17wfTxRZHH5smTbJ KI6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1Lou0bS4uPC+nMvECmQ63ca/WnvfQtn4Qs8gE8IZX/s=; fh=QAlplFJ8X2lEHw5baRPFhFwp5aGCRJlzF7LtbqI2zk0=; b=gVXfJev9Eeo1WDLyh/g6o/24aATfbZ6aIwZzBsXRzZMmIFix76Pry0AGFKNfK56Tfj wkWkwmChjL0LyloYjzZErxUI11r9fgA+fXnG4h5SuJCPoFWatz2wdnkJdJ8ccWAJgwtU lneWxQxn3agpCVUfL2sFhSpeJIAw3KBVOpR+3bGnIRaXuqNfAek3g3Ey6XHtoYIxeZ7s SWqF/dYZY2cw4hsI+zmF1JDiCEJ307LGrfNScc9SeuJvz3kg7haHS0Wh2+XAt2AaxWtP VC3aYU6xlpKTuBAq8a6OjZs4AuScR8DJ7AyxuXq4T0QP1+WJupYSOGsbSlG8xlE06+gX w2SQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Oyc966U6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-142422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ev21-20020a056402541500b0056c49ebbb14si1649359edb.275.2024.04.12.03.56.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 03:56:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Oyc966U6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-142422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142422-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BE9611F2281B for ; Fri, 12 Apr 2024 09:39:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24BAE51C54; Fri, 12 Apr 2024 09:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Oyc966U6" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 EC511446B6; Fri, 12 Apr 2024 09:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712914742; cv=none; b=TRp4a/8TKGuvU9xljHiVZgHBp6qBBAuhRK2uaU1X31sMqS/okGflYIqmqUi7U0cRzRSJplrSzhQL/ngyBmW8yKpMQrrBI6o3coa3MRPpUiSYE2ryBNp5ISKIFGpZphLDcmX8NEj9yPD+xtqE5MjKOXuvz8is87s6CQSUeTR6LLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712914742; c=relaxed/simple; bh=xhZLSdqjCJGkrq/1WHroNk1xCdiol0gprEN4wXQPrlU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U8V/RWzuTUETQYMMEc9Ol0Mw1RVF9ThKLyey0PNqEhUr7Zyx9jVPx4cr2x71McZ5qq2VvKFFWoxrXbvAUDnjrONjuaIwsD9NvQTpcTf1Lj44MlEsjzbIPUCAn4HJVNDEJtKNo2u6S+DGkF6RA2/ffHEYu0d5YPaAyKC7qGesP8I= 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=Oyc966U6; arc=none smtp.client-ip=192.198.163.12 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=1712914741; x=1744450741; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xhZLSdqjCJGkrq/1WHroNk1xCdiol0gprEN4wXQPrlU=; b=Oyc966U6AQSKPXz8WeHsn8245G4djhYxi2VH5JA6pqriz/6kragD1Pul MR8UIRYJKr5WlRtJvH+DCpblOhx8phlltOPOKfyxZ+cs8P+zzLG5Iox2F dVyMibwEeW5bpSUpelx3bVz8IHL9myFJCI1XazHAz2ctrtFaxSNPuntFt YSD0jdA/h1fZ7pjHGR/AbftfKpIdOcUG+ffi+xADANXq0ubkrVnD6pxOQ 2Na9B9RFM9/06KfFxX+qp/GHFKliUE9Nx05J4WVKL1i5bpinR9mcGDEid iBQYuzWOcM6jBvDd18boDuaVTmGk7ogHkHsVMfWjZlgACFtsWVqq85PA7 A==; X-CSE-ConnectionGUID: 1NobwrQ+SCuf3UOQvonNDw== X-CSE-MsgGUID: z0g6NxYJQ5ax2PUGnINwIA== X-IronPort-AV: E=McAfee;i="6600,9927,11041"; a="12148183" X-IronPort-AV: E=Sophos;i="6.07,195,1708416000"; d="scan'208";a="12148183" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 02:39:00 -0700 X-CSE-ConnectionGUID: TEnw0//TQtG62goI0XrVyw== X-CSE-MsgGUID: XWlRxbLtQnW4iW48NYWBHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,195,1708416000"; d="scan'208";a="25988920" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 02:38:53 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 304D911FA58; Fri, 12 Apr 2024 12:38:51 +0300 (EEST) Date: Fri, 12 Apr 2024 09:38:51 +0000 From: Sakari Ailus To: Andy Shevchenko Cc: Zhi Mao , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Laurent Pinchart , Heiko Stuebner , Hans Verkuil , Hans de Goede , Tomi Valkeinen , Alain Volmat , Paul Elder , Mehdi Djait , Bingbu Cao , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, shengnan.wang@mediatek.com, yaya.chang@mediatek.com, yunkec@chromium.org, 10572168@qq.com Subject: Re: [PATCH 2/2] media: i2c: Add GT97xx VCM driver Message-ID: References: <20240410104002.1197-1-zhi.mao@mediatek.com> <20240410104002.1197-3-zhi.mao@mediatek.com> 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=us-ascii Content-Disposition: inline In-Reply-To: Hi Andy, Zhi, On Wed, Apr 10, 2024 at 07:00:02PM +0300, Andy Shevchenko wrote: > > +static int gt97xx_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) > > +{ > > + return pm_runtime_resume_and_get(sd->dev); > > +} > > + > > +static int gt97xx_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) > > +{ > > + return pm_runtime_put(sd->dev); > > +} > > Hmm... Shouldn't v4l2 take care about these (PM calls)? Ideally yes. We don't have a good mechanism for this at the moment as the lens isn't part of the image pipeline. Non-data links may be used for this in the future but that's not implemented yet. -- Regards, Sakari Ailus