Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp801412rwb; Thu, 22 Sep 2022 06:37:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6u41vX1xav0g5M5SFd2Rz1UAy/T7/YPzqFHWOVapo1jES5mhKIs56e+G4ztnyHR5wmVToY X-Received: by 2002:a62:1ad5:0:b0:540:4830:7df6 with SMTP id a204-20020a621ad5000000b0054048307df6mr3501049pfa.37.1663853875368; Thu, 22 Sep 2022 06:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663853875; cv=none; d=google.com; s=arc-20160816; b=Kafws0xtPU+2XsjzlOzXjNKOGKKeKTcnAu2rNeNhkTRC7Z5rYM0q4i5MJVv60kWRQc exzuOc+3+G9liQi2jfyydYD3gQu2xzMvfRarbXXVkg1mab7W86LOoIWhYtI5P88CT4s5 Div2jM39Yuto76rEUfR+EmjtSyR+4LhxXBTBke+1iPHLH7IFIFYQnt6X9cmwyqs9NQXh KFA9W5oo/5ocqJbye++maqOSp42s63k50jDZJ9moPwGEiz8+AvPwj6+qK8gY8ObOyDtA rVQCN8TtFmxxpIQR1ufgRZuQrnomuIGkLMr/5GJUcT7SqP5u/nKJWb8ICiFrdHcpA0mj OJjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1tCfC9m4QH6+svhoWCBlzPrI1dXMxInAC29KGFvnwaE=; b=az+rDPp/RYfpP6X2Uo3yFf+Q2raEft5syWaL46eJu0eCGUcVQzVVQhU7eVFiI4cj5O c5Xv248ECjbSSeXqqD220nFpypEr5+5cT/YdCydsC3FG+MgQjl5ukg6iKxw3pDEsg2Fr vR6ZHCNz8M+A0yRnWVzCnSGX5SKSYNlx5ckipu2SGLHGorJVjZbr9zI5eKybYD+0+5uF r9bqovU4hLHmofQ1JIMEkLfZoBYj2R5G2wYgcrlWPHTt4fQ04rkoFDKLxTicoStP9Ol/ BiCUjilxX5xSN+Mqh4jJSlNfNHc/dAbUGzbpfP1ylavK9bTEpioNBxqJ3YAEaB3vYqQq TRWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UVhWHt7w; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a056a00088e00b0052b206007bcsi6981372pfj.237.2022.09.22.06.37.43; Thu, 22 Sep 2022 06:37:55 -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=@gmail.com header.s=20210112 header.b=UVhWHt7w; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbiIVNQt (ORCPT + 99 others); Thu, 22 Sep 2022 09:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbiIVNQo (ORCPT ); Thu, 22 Sep 2022 09:16:44 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2E16ECCC5; Thu, 22 Sep 2022 06:16:43 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id e18so13580490edj.3; Thu, 22 Sep 2022 06:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=1tCfC9m4QH6+svhoWCBlzPrI1dXMxInAC29KGFvnwaE=; b=UVhWHt7woG/lbkeJsRqO6Va2XTivmTiPxQDOlJWr6pjRcRUe7gjDSW9ANpMlPFIeYn zc4C0FXYlaxgirQofxv9lC3cTaMjD664dIjA0/19AiErOjMlrwcg7QTWuP9LO2cvP43Z DeVtD2fJnzR8wXTnIc8FyKSJPtVnh1TIs5ISVSBY3PY+DPPGqkJ/xKzST5g1fCryVnkw 8fCAQugL4DYjI2kYi71k5R/OgZN/KEBmbx4KEymMXjekKb4a0suKJUr2MRisQpGL0NPP v3EIYZ8HK9Qp/N4uPYGoZDk4IubPD0H338lXI1wUFKisy2BDPOtEfBTfn8W5TEL9f2eF Pt6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=1tCfC9m4QH6+svhoWCBlzPrI1dXMxInAC29KGFvnwaE=; b=O0P8dcG/VmDelFa3XRMvhWlXlAQGja5UOPrUNXtVzfGEJZsOsPX5qQEoO89kdeB3Gj 8X/VsTvf2AvS/OuniKQLrjfkqIydOrD60P0JTMlOOUY3v/mFBhjenc+WXvUz9dCeGp46 IVJrh/pmSSieH/5k0CzjYbyVz3d4ex8X8FjWuzKGcgz3/rZf+L9d0DibJv39pf5Gk846 JL0oDQGq0ATDNJXvvGjZRqZANtgTnxF60Um0TZZzzL5TdNQzjzlVsBDeheKlHjlm+nf3 tZd2WMDeE8Je02kwq9M/WR+yywb7XAZ8zBxhurUfGCXBkZGG5YBtDPH+M+fTy97UVtQ2 wwEw== X-Gm-Message-State: ACrzQf1dEbm5I/s7oTxeI6bZokAaURYHUu4HSUFvbZvOJi/MCJiGLIq+ eFo+zrmGKXk5wbZ9KOO1072jeJPyLESfPosave4= X-Received: by 2002:a05:6402:f11:b0:44f:e1ff:801a with SMTP id i17-20020a0564020f1100b0044fe1ff801amr3307570eda.109.1663852602418; Thu, 22 Sep 2022 06:16:42 -0700 (PDT) MIME-Version: 1.0 References: <20220905230406.30801-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220905230406.30801-4-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Thu, 22 Sep 2022 14:16:15 +0100 Message-ID: Subject: Re: [PATCH v2 3/4] media: platform: Add Renesas RZ/G2L MIPI CSI-2 receiver driver To: Sakari Ailus Cc: Lad Prabhakar , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Jacopo Mondi , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Sakari, On Thu, Sep 22, 2022 at 2:02 PM Sakari Ailus wrote: > > 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. > OK. > But if you e.g. resume the device in pre_streamon, you'll need to suspend > it in post_streamon. > Agreed! Cheers, Prabhakar