Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp772211rwb; Thu, 22 Sep 2022 06:18:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7g5JklDLnqiP2ow5HwczoxJxXurqEcJxdP6jpfiD8ukn4nEFJNAveZ4e+0KHNqgNUFWSgN X-Received: by 2002:a17:907:1c03:b0:77b:9d77:c5 with SMTP id nc3-20020a1709071c0300b0077b9d7700c5mr2790030ejc.225.1663852680789; Thu, 22 Sep 2022 06:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663852680; cv=none; d=google.com; s=arc-20160816; b=bXIdC6GFoSHjoFHlh+ceAfyknpMRBGlk8y80Oi98k7y7CApBtYyE2sKxZwh42fCJP9 eD1DBa4HFeEllzJ8/aYVkVnDmkNV1gzgmCciEu/ZgS7j4GClKlWoTMHulCmmIXZ0Iioc vULrO82uLAChSXF8jw5wIPSuCJ1LjcCs9nnW385ERr9LCiirgH3j/7NiKDMbwWkWc7vx bNlwXPvciNg2p3CFQmt7XuqfJZV5P/sbpnZxTceQlU6tYFnO4T8pRZpli0hNhkGCsqIP WHWTuDcOOSpfnKtecV0zDtjq4FaS5VExTk7QLWudF+9PsOWPiMufwCwE0OUDuuqi6af+ GnYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PrwxAGung5Rb8ktMn76NGs0JUPweYITG2NsNqrxTKKI=; b=Bo21IKhRT8X+PMSz2y+6GT5jbonSNgUYsRd264GlURN/kycQLuqVqNig0P0oGY10z5 zfCrPc2fkMLhWAx8E0Iwn33jDMtEFqTSrPeCP3phPoQQnpT7d5fhERbIhjgAnoNukQza UGsLILEPWEyuV3XBJLngvPTERbLn5VVf/VlZ7wzuT6qaXdd+LiLfS2o5ZPCwW4DeM+IR x0FsKza5ny0Z94vYbJ/weUXWPbyLHQZqBnECbyWrnJIqV7C89gYAaYPrNQchpBrlfHow 3XImpe/rARGaGuuWpY+KVP5RVdyfSRU1qOMbfvxjgDFsO5xfrqr2D3k1ZczbL1BB3HnF tEdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="KavOG/UT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt8-20020a170907728800b007418a1e877dsi5363520ejc.580.2022.09.22.06.17.33; Thu, 22 Sep 2022 06:18:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="KavOG/UT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbiIVNCW (ORCPT + 99 others); Thu, 22 Sep 2022 09:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231651AbiIVNCU (ORCPT ); Thu, 22 Sep 2022 09:02:20 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B6FCE6A19; Thu, 22 Sep 2022 06:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663851738; x=1695387738; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eoSHFPTIVV1AyhYemgSVhhNywqbp4RenvpD+BM9ByR0=; b=KavOG/UTUggCL8K4/R/qCM3DOIpR/x94UHqdl/bBrMwNNHfHgV7uvpkW TDEQTcpur1OgYCMU4aRnaEc3A3ev/43xGbU5l1a5icgsATxeP/xrOrqba WcGntzqaR2/2JxcPYrPjeTOFaEghbaE6JI5QlpwgVCxVP2IQNEU+1jCv7 21A5Z5AmX3/5+lCZw70jNFDOSmSMhLSxNJG/elyljD3dnYnvtgFY8L4SA EJJ1uUF2qiXaSUHT08MfPHSHINPEr+Yh/p5GY51Y7HC3U44Wm2oE3gG8j 5IpbQfCxwD09HexNXZjtLTmU78sgHF2xiU3aaOX3usLUEzFpOrjCa5nqv g==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="386575951" X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="386575951" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 06:02:12 -0700 X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="745371975" Received: from punajuuri.fi.intel.com (HELO paasikivi.fi.intel.com) ([10.237.72.43]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 06:02:07 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 75E2B20075; Thu, 22 Sep 2022 16:02:05 +0300 (EEST) Date: Thu, 22 Sep 2022 13:02:05 +0000 From: Sakari Ailus To: "Lad, Prabhakar" Cc: Lad Prabhakar , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Jacopo Mondi , Niklas =?iso-8859-1?Q?S=F6derlund?= , Hans Verkuil , Geert Uytterhoeven , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das Subject: Re: [PATCH v2 3/4] media: platform: Add Renesas RZ/G2L MIPI CSI-2 receiver driver Message-ID: References: <20220905230406.30801-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220905230406.30801-4-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Thu, Sep 22, 2022 at 01:53:49PM +0100, Lad, Prabhakar wrote: > > > +int rzg2l_csi2_cmn_rstb_deassert(struct rzg2l_csi2 *csi2); > > > +int rzg2l_csi2_dphy_setting(struct rzg2l_csi2 *csi2, bool on); > > > +void rzg2l_csi2_mipi_link_setting(struct rzg2l_csi2 *csi2, bool on); > > > > Are these something that could be achieved using the standard interfaces, > > as I believe the other drivers are doing? The pre_streamon and > > post_streamon callbacks could be relevant for this. > > > Thanks for the pointer. I have now moved some code to pre_streamon () > and rest to s_stream(). Is there any mandatory rule to have both > implemented? (as I wont be needing post_streamoff(), nothing complains > so for) In principle no. But if you e.g. resume the device in pre_streamon, you'll need to suspend it in post_streamon. -- Sakari Ailus