Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1650068rwb; Sun, 2 Oct 2022 05:30:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66a99VzueyamtfZapf0bLmxN8m8YifmheTWuN9lXW6QxgNBhWuvfnQK5wmxscEJPayCfG0 X-Received: by 2002:a17:902:8346:b0:178:a33f:89cf with SMTP id z6-20020a170902834600b00178a33f89cfmr17376462pln.9.1664713838296; Sun, 02 Oct 2022 05:30:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664713838; cv=pass; d=google.com; s=arc-20160816; b=PGybUil7vHfyIrkfX2DPGdIg4aT8loPjoZZg7HZzcfElGHp1/OkOgGBa2BoKTMgtfW KEvQgMo5ZOP4o9SE+dXoGGLSFRe39Y00DHeVRQuome2FrKgJ+XS2f0++ZwCtHqBdPS6F tfvmuoLXnyJgqfZ3Jfp0ooLJ45JWqUwB6z2ykf/jzYqhIW3yFopDrdH28QlnNiZKobti tEisUmjLEJmGBNZWKEFpAHPLGe2SyUVsbbcHj8C8raiUFgp+BOZ1Fbdj1w6zocVve16D IGnsXrdeHckTkjvF5ESozRuaomrtoOqX0S0eEI5Hn0g8GccqUI9g5Bw/mBkezg56Ua7W TE3A== ARC-Message-Signature: i=2; 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=FrLYarGFShE9/eUllOiNTSAbdpMQ9Au96wPgn4COEuU=; b=RT/+H5SEGvE+d7q4zn/IEQZFf9qJLIiUiX3kqxyqOpkIrxZZLXnXSmgc9X8C7OiqsI WrWXVY6J12PzTTvSAEsydu6x07JWT0wWnIHfkSIeArYoxhFScz1Rd4CxrsUCUlkMM5dN qtfKwPdwbD2QkYQn0ITTAkKLQPeml9FV1tt0PedYJmt8L8BYtRXoJB05dpWPLdqZ9ffY 6ux3D8XGTspxhmU1xc0CC8sv+sCGxCkhVxjNnIUWIozdyUS51cxNN7NPjEwf2nHBKCO8 +JKsltV51Q935v2ogp1On+SiBIH+ZtDbn+TVJyTvEJ8uZf5rYbwEXsXJyl7UCjXOlpG/ N63A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=ZjHXtier; arc=pass (i=1); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r19-20020a63d913000000b004396227cd20si7705488pgg.476.2022.10.02.05.30.26; Sun, 02 Oct 2022 05:30:38 -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=@iki.fi header.s=meesny header.b=ZjHXtier; arc=pass (i=1); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbiJBMAW (ORCPT + 99 others); Sun, 2 Oct 2022 08:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbiJBMAS (ORCPT ); Sun, 2 Oct 2022 08:00:18 -0400 Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC8F23CBFC; Sun, 2 Oct 2022 05:00:17 -0700 (PDT) Received: from hillosipuli.retiisi.eu (82-181-192-243.bb.dnainternet.fi [82.181.192.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by meesny.iki.fi (Postfix) with ESMTPSA id 0A40320048; Sun, 2 Oct 2022 15:00:14 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1664712014; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FrLYarGFShE9/eUllOiNTSAbdpMQ9Au96wPgn4COEuU=; b=ZjHXtiermOjpv2A5ZVQ2tYKiXDGhAL9g9bJlnhJA7t9f/OV4YqJDDXMlUMVJd5rOPtrB6X y911076nOaPPoAUfq5MEv8Mx9+Qbw7mazECe3ydvgqzWSYoD4Pg//aDa2AxcoD1NJqtlhs ml/7DC+LuLGHxTDvKjwN4x5A7hZ910E= Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id CC0FA634CA9; Sun, 2 Oct 2022 15:00:12 +0300 (EEST) Date: Sun, 2 Oct 2022 15:00:12 +0300 From: Sakari Ailus To: Shravan.Chippa@microchip.com Cc: paul.j.murphy@intel.com, daniele.alessandrelli@intel.com, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Conor.Dooley@microchip.com, Prakash.Battu@microchip.com Subject: Re: [PATCH v4] media: i2c: imx334: support lower bandwidth mode Message-ID: References: <20220920051023.12330-1-shravan.chippa@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1664712014; a=rsa-sha256; cv=none; b=rkkHVQtSTXbekkzy62GpZKwm4EdZQiGo6HSWJKd/SOItkK0gXOc2kT5xZvVCpVdAgbG6u+ SQbJ+KKZ1vmRpp6Sh1I3k2vkQhLVtqpuwh2IZ3HTy9/lWFtmxdrw5CqQtsa7ViEfUDPD8l YVIxSSgp5DauiMc4z8cEAhApHceaJ1E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1664712014; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FrLYarGFShE9/eUllOiNTSAbdpMQ9Au96wPgn4COEuU=; b=yOKT3+mqw9+96e/DEzHhyyb+AMRFaBx6XaFQ6wWPj6lswUhFfxM3TjvhqDMHMVakA9Y2hg 4ucSSUrQz0T/vXYdJEgSfBcxVa+AsO0ZML8M9GkDM3cx0FT1XPNouagtuPo2d8T6h1cba/ hsPvOz7qdYdQKB4zfK5Z1+5/Hba9vxo= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 On Sun, Oct 02, 2022 at 04:42:06AM +0000, Shravan.Chippa@microchip.com wrote: > > > > > > +830,13 @@ static int imx334_set_pad_format(struct v4l2_subdev > > > > > > *sd, > > > > > > > > > > > > mutex_lock(&imx334->mutex); > > > > > > > > > > > > - mode = &supported_mode; > > > > > > + imx334->cur_code = imx334_get_format_code(imx334, fmt); > > > > > > > > > > This should be done only for the active format. > > > > Are you expecting if condition to check the current bus code with > > > set_pad_fromat bus code? > > > > > > Only assign the cur_code field when setting the active format. > > I have taken reference from imx219 driver cur_code will update if the requested > > format bus code maches with available bus_codes list if not mached with > > available bus_codes it will use defaults one only. > > am I missing any thing here ? > > R u expecting to change the current bus code when get the V4L2_SUBDEV_FORMAT_ACTIVE requested? > I will try to modify in the next revision this case. Yes, please. -- Sakari Ailus