From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F6ED18D649 for ; Fri, 16 Aug 2024 11:34:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723808065; cv=none; b=jd69Artwkvs7qqOzcTrgDyJ9gHsIBHZEUqWaYm+ivCQG/apgi60TX2lGbrhHBBHvF/3vpc99+kiF6yQ+qSbe41XV+lBtbvMmcI0kcnM5XSYX4/LXG0qrpFWS1wFGr4vu2v2ineUi8FRo986jonthlgjgX6ZcV3w4HSRqcFy1ouo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723808065; c=relaxed/simple; bh=6R50P25VUglNb6oXZN4lyDG1RygKx2LfyxopQiWqb7k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DDGwMgWOVzUnc5aAAbNMKSlhK60auvlz55g8OyANLOYFByJuwUmcHkR6nUEhyjzJD0njUh7FDP9B+REayt4Du9e+rpnB+Rb43iYlP/Nhsm+fc2Loh/GV4U2fiVcaLa7FCltj0xWkAWT0VS7fejyDB0pM7obadLl4jiRV+LzwUDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GunVUYqC; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GunVUYqC" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4280ca0791bso13718135e9.1 for ; Fri, 16 Aug 2024 04:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723808062; x=1724412862; darn=vger.kernel.org; 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=mFzZNe7OfgMfItNDQGhaTWGUwq1aQam/TzneCKR2kpI=; b=GunVUYqCjNFy2O6UC5W3NC0YVF9L0W4156eszaYm52HeorFYQpwQ0WQq3hAflF1UL1 X+zAX2VY8Jp87RBy4KucXW3xE6a9Xr+wZBeWjVlRmkVswG6TN5TkQVOCTNwBuYVGWscR jb6RESLB40XOoSjvA2qVhs8ypTgBdVOvqJ4it7+dePbHl0mU/1wm8eL9sXNF/vhBA3kh LKKUC/Ay5WoiF9+heBMAiO7DK8bqqF9n/aloBzWvcarYE+VzG+4Ppny8epvFHZx3pSvu qz/eKMZB1NK1rcnTjr9MkuDtC9iTIMxfJB5d+x+ocufmMrOsdvT3HxYeyxhBOLyyitYF KpAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723808062; x=1724412862; 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=mFzZNe7OfgMfItNDQGhaTWGUwq1aQam/TzneCKR2kpI=; b=vYbXKEpi0dfsycQiz/dvMSVz69Kb9rUr9JOPUrizrGip8aXAASzXhDNwuuR8WtBvYu PsF/dYlTadiFFWjXWf4RCnrULdeHvsaC18/7R9LoYEUGtiS5ptf+F5ZKrmut1OLKaWbw bX5A92u/IGK1RjZ+3sI7rWrIEoOkt+JF3K4+fC4GdlMzCULAPpt+7STyfFKkQyHkOq1H F3QJ51HGhcbNLF3UoRJ2M5YTisQ2phkPMBzlTpiwuZOPtR1pO6Nm1t36067JNRcuQ2WA nNqV77hnfzqJ92A2hrxC4nm5qwpamgMJh2zXjLTSM9N75Bpap7HuE8bQNFldFwOZ9fhg pnaQ== X-Forwarded-Encrypted: i=1; AJvYcCXjn0SwrC9MFnEARMN/Gourr68RT3mBNYkKvF5ZyUhI6JVWNwJ5PI0MJYqgHg/WiBBrmUfTvKyYuJKG@vger.kernel.org X-Gm-Message-State: AOJu0YwEZUqznG5Rz0XBNZip42e11gRtaavcx6Yg3iM3RZ85ax2OJpzc JWR4D8biA8/rC5GoOCWO3GzpboZeOPnJr3jN1mgQezoE6jvq7VLN7pfvAOax+fQ= X-Google-Smtp-Source: AGHT+IGPR3fLSe1jPOcXZeD3IwyAqLhaj+Dpm02AIv35ZOc+p+G7vfooX3dSt+28S0R/vGn/23MHiA== X-Received: by 2002:a05:6000:1112:b0:368:714e:5a5e with SMTP id ffacd0b85a97d-3719431764cmr1940797f8f.2.1723808061661; Fri, 16 Aug 2024 04:34:21 -0700 (PDT) Received: from [192.168.0.25] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-371898b8ae2sm3469287f8f.113.2024.08.16.04.34.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Aug 2024 04:34:21 -0700 (PDT) Message-ID: <9c254643-2d95-43c5-98c5-cc6f2866213b@linaro.org> Date: Fri, 16 Aug 2024 12:34:20 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/13] media: qcom: camss: Add CSID Gen3 support for sm8550 To: Depeng Shao , rfoss@kernel.org, todor.too@gmail.com, mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, Yongsheng Li References: <20240812144131.369378-1-quic_depengs@quicinc.com> <20240812144131.369378-13-quic_depengs@quicinc.com> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20240812144131.369378-13-quic_depengs@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/08/2024 15:41, Depeng Shao wrote: > + > +static void csid_configure_stream(struct csid_device *csid, u8 enable) > +{ > + u8 i; > + > + /* Loop through all enabled VCs and configure stream for each */ > + for (i = 0; i < MSM_CSID_MAX_SRC_STREAMS; i++) > + if (csid->phy.en_vc & BIT(i)) { > + __csid_configure_top(csid); > + __csid_configure_rdi_stream(csid, enable, i); > + __csid_configure_rx(csid, &csid->phy, i); > + __csid_ctrl_rdi(csid, enable, i); > + } > +} Just noticed this too. You're configuring the CSID routing here for each enabled VC but, you should only do that once @ the top level -> __csid_configure_top(csid); /* Loop through all enabled VCs and configure stream for each */ for (i = 0; i < MSM_CSID_MAX_SRC_STREAMS; i++) if (csid->phy.en_vc & BIT(i)) { __csid_configure_rdi_stream(csid, enable, i); __csid_configure_rx(csid, &csid->phy, i); __csid_ctrl_rdi(csid, enable, i); } --- bod