From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 06F093E3D9D for ; Thu, 23 Apr 2026 09:18:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776935913; cv=none; b=iVlyBBDMdNxd+z6/Le4w4IwFmXJ1jrFbk8hoaBZxBqrON04K3tzBg2QpJpnFW7tsUJ1Nk4VoHX2pZVdU1nVIdPOpaf+TdKbD/hhyjZV2cmg0A67DZhLrtJbRSFtB6fNQVBpgAmQXKdB+zEGXVEBUgOh70JZI1o2F3vvameHzGeE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776935913; c=relaxed/simple; bh=GTZmRTGjvf4Szef25RFFkEIFVatv/+hKtpaK4xFUoqk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TdIE/MlIQRKHo25ih4CPN7WZRBFFT3QD4ob74LcM4Zwb+ln6FJsuRa97lMopgqgkYPulAds3rJZ+E4f1RncP33uVuPx7XFn4J28BjTViXQslM1hcIXtIi0zQhQgu+m5mDrlH5chPlvZArCGKWouRlPWW3jTGxZHQV8dklPKFme4= 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=rzVcsak7; arc=none smtp.client-ip=209.85.128.42 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="rzVcsak7" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-48374014a77so83751925e9.3 for ; Thu, 23 Apr 2026 02:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1776935908; x=1777540708; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0NLJTBjQdXh413mrTdcE95r75pYedydwaciRYMhFjQA=; b=rzVcsak7DlgwOP3yO9Q0yAEHJTa6Q3VkQiwYINxarUEIQTNuVg6hhVkpzI2ulZ60Gk cU65yRx42uO0CHfrA3ARuHFrnxKfGfjPh4oFO/t8HG3nlDbHcdWaGtFlVJ9Xy9GqVnij H235RbM/UkUg4g/jRp//DJIXX2J+zzlMbSJvbGdcxlTme9JGfrKhH3q+hZCEiWdccdBF /6mEzSPUMUobPnoMLnNEvkg5ZvzoF9JA6ApsnM1vbeBUKtQtG81SBINjXO3B9pj2sK+O xVx+B5vJyHUJw4dMduYckw0Uw9Q0sEgwSFqwcOXe8LNwpVeeIQUxhzd0P1KsSRAI5KIG vofQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776935908; x=1777540708; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0NLJTBjQdXh413mrTdcE95r75pYedydwaciRYMhFjQA=; b=lLdM6kU19qXvi+KuaKlNT1PAt+7aT1IhC38l5X4Edu3xDMFYz0QNb+zN6iRrPI7coh 3DVnW8oOlSmQMCHQCcAif24brWAc25bFWFgYys7QchW49EqwvZqNMv3wypyiwScvAFUQ 2yxVCkhY+MA+EE5dmkMNW2faDwkP1YWNWVt8e3dnaKT7skXiBOUvYF+MJWoymhe9Uiua DvS1NglDtf1YRReazgHpxvM7Svpa0ANXM7BXxCf4p4xLickmDp7ScuKTz/rJJCSUMrxB 6OPqh8EZRBsgF+1cSoK/D2QXOPZLSNLELHvGnMojUhIs2U4e3MGKrP9m6OEt7jEpDejr +mDw== X-Forwarded-Encrypted: i=1; AFNElJ+RpypTb3qw0pPnacKkc5BKmHmRVSTefZ6RQSzxvpocs2kDpJ9AYS8dn89C5aCtOoQ73ugMJYJ+BrgNT3w=@vger.kernel.org X-Gm-Message-State: AOJu0Yz6XiJI8It7kJwAelru8I7f3wgYSQZ+R7whBPPryGxwc3YABOoB f3kUucevMzkrGPpGwJasrLfbhjj3Vkzw7QMvW+KU/lFu39aO6Xc2gEWM3hHQJx/c7WRFd7U9WKS LNCr4LCc= X-Gm-Gg: AeBDieu4Q2Uo4VhqkEyvODdDu2mtCD44I7GIsmGxjmMwyE3SMLhTImTpxOcIoJcpMLu l0Xlm/BmEAfrWXu+T2oahfBfNlcj4h97IDi0AuiuP0/ULdgMi9SNbznyV+lxpzNX2aI2oHZild9 exncFaIcWvhyOX2gVEVV0eUIY1E193cAJ+8pTsiI7EvquQnsQAIZmCu7RbW88BFweYvpBZKRdZE JLwbZphLbRo5Ktfezyllt37g/gUgPLaUrqtkocId5NVPKqyHNNjX8s7FQPedOOuT9SQtcl9YkDi NO1G0i5+JYu7gO3B6xMmNBiMzj+Cq1IARfmomlQ/1BUV3QAALckB5to84vQT4O2k5kXn1sBJYUG jWM1hgUQSS0fgqqcjuZjT+OWSNneQhjzxeca6PYJFGHLYggNBfYwLjrAp4E8ZWKOILNkQ5cqUPO VttNO1meMkAQDFWfuCuqns68z5RoIpAUDlBQhu/pgc8620 X-Received: by 2002:a05:600c:3546:b0:488:81b1:ae36 with SMTP id 5b1f17b1804b1-488fb7880camr376050235e9.23.1776935907788; Thu, 23 Apr 2026 02:18:27 -0700 (PDT) Received: from [192.168.0.167] ([109.77.41.87]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-489201cde98sm266100545e9.7.2026.04.23.02.18.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2026 02:18:27 -0700 (PDT) Message-ID: <66253ee8-24b8-49a0-a141-e520c0486ab2@linaro.org> Date: Thu, 23 Apr 2026 10:18:25 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/7] media: qcom: iris: fix state-change debug log printing stale value To: Dikshita Agarwal , Vikash Garodia , Abhinav Kumar , Mauro Carvalho Chehab , Hans Verkuil , Stefan Schmidt , Hans Verkuil , Deepa Guthyappa Madivalara Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue References: <20260422-iris-code-improvement-v1-0-8e150482212d@oss.qualcomm.com> <20260422-iris-code-improvement-v1-2-8e150482212d@oss.qualcomm.com> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: <20260422-iris-code-improvement-v1-2-8e150482212d@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 22/04/2026 12:16, Dikshita Agarwal wrote: > The state‑change debug log in iris_inst_change_state() always prints the > same value for the old and new state, rendering it useless for > debugging. This happens because the state is updated before the log is > emitted. > > Log the transition before updating the state so the previous value is > preserved, consistent with the existing sub‑state handling. > > Fixes: 11712ce70f8e ("media: iris: implement vb2 streaming ops") > Signed-off-by: Dikshita Agarwal > --- > drivers/media/platform/qcom/iris/iris_state.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/iris/iris_state.c b/drivers/media/platform/qcom/iris/iris_state.c > index d14472414750dc7edc4834f32a51f2c5adc3762e..e991f34916ec6e74f3d2cf98bd61b8b1e12a3ca8 100644 > --- a/drivers/media/platform/qcom/iris/iris_state.c > +++ b/drivers/media/platform/qcom/iris/iris_state.c > @@ -60,9 +60,9 @@ int iris_inst_change_state(struct iris_inst *inst, > return -EINVAL; > > change_state: > - inst->state = request_state; > dev_dbg(inst->core->dev, "state changed from %x to %x\n", > inst->state, request_state); > + inst->state = request_state; > > return 0; > } > > -- > 2.34.1 > Reviewed-by: Bryan O'Donoghue