Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3629174ioo; Wed, 25 May 2022 05:00:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsTZBjn7hT2sClbOWtzh6cifcyrxZIq/Plsd64nKmnvJdPIie8C7tHmmj+BFVr+Px30A3h X-Received: by 2002:a63:2406:0:b0:3f6:2513:5c63 with SMTP id k6-20020a632406000000b003f625135c63mr28217392pgk.550.1653480024022; Wed, 25 May 2022 05:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653480024; cv=none; d=google.com; s=arc-20160816; b=c9hOdgo9bqzJdDyrlJGoHAul1XpazGCCUA7YE2jP8E1U4GMuUxoZGLulWGQx7UW4Ji HUu+GJruiktDUUbGFc8HWOf8gQqLTE2HtZIMghwpKrTuq1utCqvCfkEvDmeZt6NHM6Ta II3gmoboP0LmLVmunuNlLUZgb9q1niS8CU0gmSS10B0cRu4NwGrLOWvcivwSDZZ+uKmY fTFTEvGdheH3JV2ecPDKUg5RhKWkObTzp66+37D0jxKnrI86Aq51jPlitSV4feJwkV3S ub4YTKXxQAuT4IH2en+0PPAKZ2yiHmuh0sjJxcc0oKlj8c9uJZGMGkFfKGmBPWL3yNi8 HAew== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EZsTbG5Ghb36/veeiU7rdV///7+Ve3p/GIrx5IOFMMk=; b=J+8sZc3stT3aLGU3WZzjzchsou13vWPX9C93UbuXp9tq5DstIcAzUlG05JvEF9AyyI eyuMd6rs+yy+sBb/Bno+T1yh7OjvXYVoeGNMtzY/G81KHQub6Iz9xgC/vMxrjUag8i6W M8ltDKUL80d7hmrrvfqyR+bIeX1tXhaoQD1Y0bJKIksj/n8C7Yw0zAakur1ywFGaiWkc danUNZp3qimMjFzC2+xLQGDrjyPtG2m7LYl8TrwOx+KOYoQ0O56GUhqkZdUSjWYvMcdo KhdQxopKu/dnIPRB7AHD3usV+wPWXIZ5z/1xRUO7x+e2p+VfCdoDMjwU+PYbnoIfaDFD +23w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UNaoBdpv; 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 a9-20020a17090a6d8900b001bd14e01f27si2201733pjk.21.2022.05.25.05.00.07; Wed, 25 May 2022 05:00:24 -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=UNaoBdpv; 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 S240331AbiEYLd0 (ORCPT + 99 others); Wed, 25 May 2022 07:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232400AbiEYLdZ (ORCPT ); Wed, 25 May 2022 07:33:25 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD9568FF9B for ; Wed, 25 May 2022 04:33:23 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id l13so28878569lfp.11 for ; Wed, 25 May 2022 04:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=EZsTbG5Ghb36/veeiU7rdV///7+Ve3p/GIrx5IOFMMk=; b=UNaoBdpvQ0Wuh39ejXqVAxIdtogtZgXrbpaaU46uoIDB3jLwniE+a2Gw/eeD8rR8Yx IXV3H3QXBNtA1tMANean66atO0lGhtSaBj/Jzj5RNfrNPf8kn0oSAKPugUTe2FTz20/o 5TH60Q4367rsBz1G9RGjIz8XELgZW7TyE43vX+m7/UlPP+AwpSJmlD2QG95/0zMEZsWS tr5G30OGEiKdG5GnVwT8nCeszSZH6QYxn2Btg/docx5if5P9QbJdALM7qEVNf96vCbI4 8PVPsXCLlqa2JHW3+x+10k92IUQqj7bsSWQeFQsKgTrtK1cAELhcGiPxPVFOQXESnO70 CPFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=EZsTbG5Ghb36/veeiU7rdV///7+Ve3p/GIrx5IOFMMk=; b=1tXs0z/1dRjPh+LjN8yBTRkavxwpJQBHekM3y/M1RRbLNHbaTl869q8ElZGhINvSGS DYjMXm5qJ+lEIktYwduN3EbDiRUQ28fhh7occpcuS6icvZ8/T15FVDNE2kCV6/8GU77b EvNZ47yKbRRfVJ2yAQ9fwO6Eka/7NfyRI8C91y1AC++peGhAEGw51tc2HEzu1lZ3PC8O gBmcTsaeDdMCw/fon1lWe6t/UhfdTcOb8wpTjaXccqXdbU3nbQhLlIB1iM80IRa9QW6V tWX/A27Jsoda645cBJs2YilSF8MwzGMmpwFOgwj+XGKmFSzEnY0gEZ6L3k8rOJxKJF8N wSlA== X-Gm-Message-State: AOAM532T1ZrNeViEHh35hAPHyg0lJous9yQa9XCR2jKYabHOB7peSEK2 82dEWbXzkRnADZXnvqSBt6c06Q== X-Received: by 2002:a05:6512:10c2:b0:478:8ea5:f6f9 with SMTP id k2-20020a05651210c200b004788ea5f6f9mr5197816lfg.1.1653478402086; Wed, 25 May 2022 04:33:22 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id h26-20020a19701a000000b0047255d210fesm3063191lfc.45.2022.05.25.04.33.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 May 2022 04:33:20 -0700 (PDT) Message-ID: <1abe03bf-5de5-f73e-1043-46872a38e815@linaro.org> Date: Wed, 25 May 2022 14:33:18 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 1/7] media: camss: ispif: Correctly reset based on the VFE ID Content-Language: en-GB To: Vladimir Zapolskiy , kholk11@gmail.com, Robert Foss , Bryan O'Donoghue Cc: agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, robh+dt@kernel.org, marijns95@gmail.com, konradybcio@gmail.com, martin.botka1@gmail.com, linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, todor.too@gmail.com References: <20201022174706.8813-1-kholk11@gmail.com> <20201022174706.8813-2-kholk11@gmail.com> <899412f2-5ee4-cd32-393f-688fc6351437@linaro.org> From: Dmitry Baryshkov In-Reply-To: <899412f2-5ee4-cd32-393f-688fc6351437@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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=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 Wow, a patchset from 2020. On 25/05/2022 12:03, Vladimir Zapolskiy wrote: > On 10/22/20 20:47, kholk11@gmail.com wrote: >> From: AngeloGioacchino Del Regno >> >> Resetting the ISPIF VFE0 context is wrong if we are using the VFE1 >> for dual-camera or simply because a secondary camera is connected >> to it: in this case the reset will always happen on the VFE0 ctx >> of the ISPIF, which is .. useless. >> >> Fix this usecase by adding the ISPIF_RST_CMD_1 address and choose >> where to do the (or what to) reset based on the VFE line id. >> >> Signed-off-by: AngeloGioacchino Del Regno >> Reviewed-by: Robert Foss >> --- >>   .../media/platform/qcom/camss/camss-ispif.c   | 85 ++++++++++++------- >>   .../media/platform/qcom/camss/camss-ispif.h   |  2 +- >>   2 files changed, 56 insertions(+), 31 deletions(-) >> [skipped] >> @@ -355,7 +379,7 @@ static int ispif_set_power(struct v4l2_subdev *sd, >> int on) >>               goto exit; >>           } >> -        ret = ispif_reset(ispif); >> +        ret = ispif_reset(ispif, line->vfe_id); > > But in fact here is an error. > > line->vfe_id is never set. > > I'm unable to test any fix, since I don't have a correspondent hardware, > but I can write a fix for someone's testing. I have a sda660 device, but I don't have cameras attached. So one will have to use TPG. -- With best wishes Dmitry