Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2961079rwd; Mon, 22 May 2023 06:53:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ434q7USLKG9pwlr6cZJpp5+Sj36DoWe9VilzhaJEGrQVIwctPryCICbge99gmuN9AS/rnZ X-Received: by 2002:a17:90a:294e:b0:24e:d06:6912 with SMTP id x14-20020a17090a294e00b0024e0d066912mr11810578pjf.18.1684763624889; Mon, 22 May 2023 06:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684763624; cv=none; d=google.com; s=arc-20160816; b=oY7r08V+wWmbvx5efgFAzWM1LoaOmnl19yGBPA2ymDYDTkpsMYeN2PGw+C5sFRM+gR TbTLVE1n0fcKQZS85SF9BCoXpvLY7mOy3LaK9O30YO4nYIBW59lk4PQKAJfKdJNToL4Z +9FrbM5DAcmh8lMxKsiotJK7LC06jfSk22VdBX/kaqSv+ssahm5XsWc1LdkRE1RL9DdU R1SEUB1OMzEp3k1u2UK11jQ5ZbfrV1Fm4j/TJDBiGcr0BBez20GqIYg+xXBFJLlmKeRi AU+CeIb8+2+FtZ9rv6m4YlnrOkL13RaqiyAoLrcoP5ZLQczGDQHEVDo1s0dEwIwK9bKW EdYg== 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=wFrTzk6Qk244b5yNgIKxU8qzgRj1p3sZQVYSiF0Mu2Q=; b=BADqomV9rviGfk+5bi0N+3jFhuCaRAPWxK6nJ+SDt4/1sbuvG3H1iec1YekkMGHPWv PDojIDpQFumF3nDf+M2g/FVyjnqQWN0P901oUw8E86KfOVk8gOmi75aL5dLx+pQhz029 f1IbOuJccghJx8NXPn2CJedI3wLlDKJFC09qOTdBr83JyjApWygR44Oerwbdtaw//7GJ HthjxPmKdheb5uNHesF59EsFilRZLfESs0EmI2Yo9TUqAvrcSOcYr2F3xBKc9D6+B3Pz 82cdsDjEAZUhh2Z1ErIQd60IxODYAyPckw3AhuzZ4c/K67nHBswJWtcVrRiH5ejiW9la u1Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hEq7DUhC; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a6543c7000000b00518cf8916e2si362622pgp.415.2023.05.22.06.53.29; Mon, 22 May 2023 06:53:44 -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=@linaro.org header.s=google header.b=hEq7DUhC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233860AbjEVNvn (ORCPT + 99 others); Mon, 22 May 2023 09:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233355AbjEVNve (ORCPT ); Mon, 22 May 2023 09:51:34 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E018E62 for ; Mon, 22 May 2023 06:51:07 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-510e682795fso8663811a12.3 for ; Mon, 22 May 2023 06:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684763466; x=1687355466; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wFrTzk6Qk244b5yNgIKxU8qzgRj1p3sZQVYSiF0Mu2Q=; b=hEq7DUhClXrffI4NqUZ4RFxruWpENS8+m7Et1rPO2B8V+1DYE7GPzqV2nBp8q+T+C2 UsiSftguDHAOjjYSJqb2Ak6ifxDNgnoKmyhBtiRMV+CQkKCLsoCaw75t5S5QP9kIkO1d tGgDBiPY4gKRSRmAcpyXeC5S71zv1ryaaI7cKyYEQCjVWQrBiwK9lHwgN5ikGGeaj+bM /8zSGj+7drxWVwmrsk80GNvAuFne6GU1+Uo7Ceuqus5AXZ/CcD3V/7O8U2HidueoRMdL 2REepNe6DGaSI6qEfK3V0MnxnXkwE6EvhHZc5+sEhac042zQawRFq3+RdQiT2r5ARuAn y0Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684763466; x=1687355466; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wFrTzk6Qk244b5yNgIKxU8qzgRj1p3sZQVYSiF0Mu2Q=; b=RCcABaW6Eh1OHp2pRRGHExzgPqzTQjrZyNZQF8odsz623PuopnuvUMR2NcGUv3c5k5 zEnmmgsH+Gwl3TCJc9kA+1JUmtvOHq7dBkmvPB0jWuOQnosnoi712fXNk0JUMD1yWvVc 26ly8X8uiFcxwBlfA8tX9KYNQESSIP9Pq5JY/8Vw7ehnFrjFdSFWHNQiLHuvXiKkGlqB JhcSl5Bk8Yxdw+aQibvhLFXYNz7fbl1dy7b99wYPpTAR4K3MOyIMKuIzGs8K2AMiMcVq C1EyCx7Kfi8k3IT+/WXqjGE24jyWbg0hYRSby5LTvDwzxquA4fPUpSMtcXsRx8eN6bC1 uuBQ== X-Gm-Message-State: AC+VfDwvLBRINcXti8nb5xh82leIGSA/k4nlAeVZq197EmZYn/jO8nCx J7d2kBd1SDtsf3TVO3Sr3pTOYw== X-Received: by 2002:aa7:ca48:0:b0:50d:bd25:3704 with SMTP id j8-20020aa7ca48000000b0050dbd253704mr9864421edt.14.1684763465802; Mon, 22 May 2023 06:51:05 -0700 (PDT) Received: from [192.168.118.20] ([87.116.165.186]) by smtp.gmail.com with ESMTPSA id g16-20020aa7d1d0000000b005068fe6f3d8sm2997486edp.87.2023.05.22.06.51.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 06:51:05 -0700 (PDT) Message-ID: <9db2ff70-d513-9e63-834c-64e448f9babb@linaro.org> Date: Mon, 22 May 2023 16:51:03 +0300 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] media: camss: camss-video: Don't zero subdev format again after initialization To: Yassine Oudjana , Robert Foss , Todor Tomov , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab , Tomi Valkeinen , Sakari Ailus , Shuah Khan , Lad Prabhakar , Laurent Pinchart Cc: Yassine Oudjana , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230503075340.45755-1-y.oudjana@protonmail.com> Content-Language: en-US From: Andrey Konovalov In-Reply-To: <20230503075340.45755-1-y.oudjana@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 03.05.2023 10:53, Yassine Oudjana wrote: > From: Yassine Oudjana > > In an earlier commit, setting the which field of the subdev format struct > in video_get_subdev_format was moved to a designated initializer that also > zeroes all other fields. However, the memset call that was zeroing the > fields earlier was left in place, causing the which field to be cleared > after being set in the initializer. > > Remove the memset call from video_get_subdev_format to avoid clearing the > initialized which field. > > Fixes: ecefa105cc44 ("media: Zero-initialize all structures passed to subdev pad operations") > Signed-off-by: Yassine Oudjana > --- > drivers/media/platform/qcom/camss/camss-video.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/camss/camss-video.c b/drivers/media/platform/qcom/camss/camss-video.c > index 898f32177b12..8640db306026 100644 > --- a/drivers/media/platform/qcom/camss/camss-video.c > +++ b/drivers/media/platform/qcom/camss/camss-video.c > @@ -353,7 +353,6 @@ static int video_get_subdev_format(struct camss_video *video, > if (subdev == NULL) > return -EPIPE; > > - memset(&fmt, 0, sizeof(fmt)); > fmt.pad = pad; > > ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); Have verified that this fix does work on RB3 and RB5 boards and is necessary for the capture to work. Thanks! Tested-by: Andrey Konovalov