Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36835566rwd; Tue, 11 Jul 2023 06:22:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEbAI38guGon5QGgbU4aSe7MGDa53gCcUGFdYCv75PsTgcE2L7vQYLQN8l2f6AUJ3WTvSxD X-Received: by 2002:a17:902:daca:b0:1b8:ae8c:7d88 with SMTP id q10-20020a170902daca00b001b8ae8c7d88mr20414428plx.7.1689081774536; Tue, 11 Jul 2023 06:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689081774; cv=none; d=google.com; s=arc-20160816; b=ImGYCXMICEypN4fQLdPLoKkZrToV9bbXCLBu/2UJcJGGPmHvVxjFHYrsXwiY/q3D/Q TswGirGgs8wAa4aUkJaE1LZGxeV5Z6uzHZy8H/X9+6J8/ueOGE5NerRoQDIOl/lhWeKN 24fuekxgiT9/X3ECHx+gzN0pn2Cjaap5ygKhWNY+nzAqIMWZIsDlF4sIN7isBPTRRNbU rEg49ExMFV+Vty9bFNuGtooQsdgjhAIaGp/+taD5m63Yb/OWGEY0t1CeZN1LF90XCiZK 60PALc8AIZQDJSXEMtmivB3bBSMroOPe5toTuA9LCym4dW3DLzpK3UaZ1wMKeOpUnKXZ xpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KAQ5mo9Y9ZW1sEmuX5Y0KnUO9RyWdVSJDo4cz7iaBa8=; fh=9d8fakAtJpKR8uzL3qKePGJZsKZQ43o8BBuxr7UOOuo=; b=WiKsAWei/pXhORRG7HBND4vh8NdP+4vcTZVA+2FljfHk6AHXdwvva5vTLifGYM3zgw TA0OgZ8sx5ju/nIuy2aKOfrICMc7IB44rKqOdsnGg1+1v3nmRyqVFL0CMLLFNRDLPn+/ S+s7/DlkV0WKtjJIF+3MnFWTHiSYP/dHQBbuYHzsXQNpICoL7OFJC01FlZf5+iNnp86+ /d/UMOAhLv5VsGL3knNIyRD2oaearvjLxi0Kg8NBfywOCfsNM9VgOpgv3eyiXnFojtfw AuWnGqLwGUdszXocK3gB9WeHZKdnN6mD5CDiVmDyoUyMSZEyDtn7+GUvV+A4Gr/nd0Hr swjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=vvBfCkcn; 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=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020a17090a744e00b00263e423753dsi1640455pjk.42.2023.07.11.06.22.41; Tue, 11 Jul 2023 06:22:54 -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=@foss.st.com header.s=selector1 header.b=vvBfCkcn; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231496AbjGKMow (ORCPT + 99 others); Tue, 11 Jul 2023 08:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjGKMov (ORCPT ); Tue, 11 Jul 2023 08:44:51 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E28135; Tue, 11 Jul 2023 05:44:46 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36BAsA9c018387; Tue, 11 Jul 2023 14:44:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=KAQ5mo9Y9ZW1sEmuX5Y0KnUO9RyWdVSJDo4cz7iaBa8=; b=vvBfCkcn60PsfTF26q+SqjWgHs5zrl7Fy2PR6OhmmyjlGIO8jWB7sGBwVy4aaizYI+8y lmsqdDtNhc/g0A5Ex9cHVH8FugSYIHpGQ5ZLD2ZKyLT44syd/qTcvLFvH610UgFdbmyK 1AE/v21SCa4BABpJpET45QpfP+XvBLugFoafh6lMNhPbWoie6E3CltxG9jLQON7LCvA/ SmNsgEsYwYll5slPkWhlqW5zm4c81sg1MTPj00KG70Zcdy3P7l8OxMp6WMzcWPLkB73n vVHxceVtVqcQv/r96Rr5wtCkT2EAlJ8sZMQD1hlpcz1vMaIEN5S5bSjuNQhtmxUukne9 zg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3rs311t8a9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jul 2023 14:44:41 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BA798100053; Tue, 11 Jul 2023 14:44:40 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3CE832248C6; Tue, 11 Jul 2023 14:44:40 +0200 (CEST) Received: from [10.129.166.114] (10.129.166.114) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 11 Jul 2023 14:44:40 +0200 Message-ID: Date: Tue, 11 Jul 2023 14:44:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/2] media: i2c: st_mipid02: cascade s_stream call to the source subdev To: Alain Volmat , Sylvain Petinot , Mauro Carvalho Chehab CC: , References: <20230711123211.794838-1-alain.volmat@foss.st.com> <20230711123211.794838-2-alain.volmat@foss.st.com> Content-Language: en-US From: Benjamin Mugnier In-Reply-To: <20230711123211.794838-2-alain.volmat@foss.st.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.129.166.114] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-11_06,2023-07-11_01,2023-05-22_02 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Alain, Thank you for your patch. LGTM. Reviewed-By: Benjamin Mugnier On 7/11/23 14:32, Alain Volmat wrote: > Cascade the s_stream call to the source subdev whenever the bridge > streaming is enable / disabled. > > Signed-off-by: Alain Volmat > --- > drivers/media/i2c/st-mipid02.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/media/i2c/st-mipid02.c b/drivers/media/i2c/st-mipid02.c > index 906553a28676..703d2f06f552 100644 > --- a/drivers/media/i2c/st-mipid02.c > +++ b/drivers/media/i2c/st-mipid02.c > @@ -547,6 +547,13 @@ static int mipid02_stream_disable(struct mipid02_dev *bridge) > struct i2c_client *client = bridge->i2c_client; > int ret; > > + if (!bridge->s_subdev) > + goto error; > + > + ret = v4l2_subdev_call(bridge->s_subdev, video, s_stream, 0); > + if (ret) > + goto error; > + > /* Disable all lanes */ > ret = mipid02_write_reg(bridge, MIPID02_CLK_LANE_REG1, 0); > if (ret) > @@ -633,6 +640,10 @@ static int mipid02_stream_enable(struct mipid02_dev *bridge) > if (ret) > goto error; > > + ret = v4l2_subdev_call(bridge->s_subdev, video, s_stream, 1); > + if (ret) > + goto error; > + > return 0; > > error: -- Regards, Benjamin