Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2132670lqo; Sun, 19 May 2024 15:25:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX00GeMBipNkrv5ALY9Bk8zYpO/yBP9lOHXDo5pz+E+nHeonAbr2r7bmiy7+1pVBs+aQR4rs4OYzbxFVK0TkZc8DsEYMLTo6PNEkl4vNA== X-Google-Smtp-Source: AGHT+IHwXx2KT28zUIv3BRs0yn6pMlxjHrurKA79JgdUJod4uK/JyFnRToSE5akO6oLWLvbN+qkA X-Received: by 2002:a50:ab0c:0:b0:572:459f:c7ab with SMTP id 4fb4d7f45d1cf-5734d6f004bmr26877311a12.28.1716157554759; Sun, 19 May 2024 15:25:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716157554; cv=pass; d=google.com; s=arc-20160816; b=CjKWUnIHquiBTv9x1Lidyl4yPApQB41UXpJSiSGVF2Qn9hsW6ImA9KOGF4M6wnNliT wmzxNeBgLORWAWmV8ZeL2icEgFiGw3vSYWGKs+pvvyFL3Hrrk2BZNQ5gPs1Z4a6/y5J4 iGHgK9qbzSv7Jn1/yZIuORuFfte5r17Ad1k76jkv7t6mfT94GwRIFa+u1L3orv/UPih4 WIWmNiqA4GE8cOPUzgwoz052WvVOyoks8hmH/BJGW9Vx5X6idzzQtqYrvnKUm3etVYjr RZngHfInLzMled2z5yIEkKhjCSV+Tzte780aBqv2YrI0Fp4DUKoj1w26K8vtBjeFevsF hWJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UYrU+XJ27k761lwCe7kCnnPwdlOuBzaG8t6NtqUWwio=; fh=h2kWLZZxNtLHSS5vINr6QUzfYpNQzzU3Y3O8U4o7HMQ=; b=bu+CDFvL2q0Rx+PKUSmBox3EFp1ZbgvcKfsnngVcsDFyqlkss6f5KgKyD7+o9pKDeB T1NF4PhFTP/LZPIZROq03+sOKCFH8CqSLXBmMa/xXAfs+6/S0FQlKlkBR0SKO95a5kjS 3yIQjKCUV3auEGCMa6/mAb1EjPTYhz7/OmihAZ66oH+Fp/NAN3yyPx9ECU/OiOT16RaO S8/4YbCukjSeOAZD0u8+kbuKsA7dtRe3fQmE3lQ7rIQrkbV2Ihp55oMhrh2KQmPBXJO2 mg/lpCFjKaEudOJbuM9QKsQ1FQ1o0Rykm0lZMP4wWObGz778pGFqwP4vU78A68zJfb4V XUTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uf2JQlbZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-183288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ecf1c00esi6169551a12.419.2024.05.19.15.25.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 15:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uf2JQlbZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-183288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5C8381F211A7 for ; Sun, 19 May 2024 22:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28D5371745; Sun, 19 May 2024 22:25:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Uf2JQlbZ" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 97E424C80 for ; Sun, 19 May 2024 22:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716157547; cv=none; b=X/HvSHV7UkPPLEK1cCXCaechw2TqsSQf1uiW7+uzxzH2JBp6ivELlLSzolX9fqG3eC6kV3W5NMRGikUKRA+l7tpskBbXiT3ALh/eawckv6+Ml3Ds40RsnwxmAMQtM1u7o7K+VvtPdgMTBpm2YXOsxKBVuSW+2cu9K3T2MB0jlv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716157547; c=relaxed/simple; bh=hFSuRs0LC/TbYzrEDL213VX8qP4mHny/uqx9gunUjWI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D6R39zEPeoYyVcnxNCDpuzJ2MEucr0VlTGTlecJ9TLUqd0QMCFXpm27cshnr/hEDME3OSbB/cEFZceeT7Y1l50kcX4ulzWI2cJoBvNu8tE3+CJYokebTYzMaL1k04ujuuGIDoWYfzTpFFdjYg6JNEM93Mw8mrzwyJ4n6vq/Rje8= 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=Uf2JQlbZ; arc=none smtp.client-ip=209.85.167.51 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 Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-51f74fa2a82so2741230e87.0 for ; Sun, 19 May 2024 15:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716157544; x=1716762344; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UYrU+XJ27k761lwCe7kCnnPwdlOuBzaG8t6NtqUWwio=; b=Uf2JQlbZmBoBeDAcuJclKBFisqT/G4jHoaaBpd0zL/kYz80GOdolM9qH8hMp/VzcHX Ir7D6GwYGprqzYq00g500CuUuRlNPEc+58aWLi0w8P+zOlbngkYXhkFDdbXemUV9GrBt rr856sNiTZ6lqE8JGVeNYPhbVTZb6JsBt5cwcw2F6ipj20JuDg2uEOOxkMFyLElhHGwT sK7ZuoqgBieRuBl01Y+ZGdpxyHe/4v/4QCtJgjmKD1FoqgrDQXZotdK7LipsHfKO/RqN GUevgli4Rx9oePTGR7pKS3yC0mbcIjg+tn5ixNHL1e2BE2jd553hMjHG69yez9Ku5Xm7 +4Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716157544; x=1716762344; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UYrU+XJ27k761lwCe7kCnnPwdlOuBzaG8t6NtqUWwio=; b=giAEgPNIqiS5fEjO3kohElmUcA0iJ5iW8bxNnZuZpfAz3zRChn9qHkAGDDHKN2xN4B Bzi6Sg7JY2PVT8n2F8ObUlYyubie679unvFY3vX+WrIZyU5wcjDLqEGIhzS9GOXxQtbG /+IEPfcJYHxPw7t13yEEaW+TJabOsX5qecGnDUZU81AIrNVyA/Q3sRKe1lJGockRfsxy cw62m7Se210iytWG90bAYnnqqDclaxGs1JKAgMSSCamrO+OYxYv9uoiXZD0JUzp6ohqU Rhb9zYRIpi3HxgxdlHV75jJy+2bSM3pT/cW/J1OdeSeWOLfOQ0b474nJFO9E0AZQfALD tiaw== X-Forwarded-Encrypted: i=1; AJvYcCVXe4dwNKdF5LHwqCyw9B5RmT6T9czDPvlFbZjgL47kjIuWflapup5AHGkrmmhGioe4bzVjejiXWN+ag9JHs2Hdbdo34m1RAfEnUGYM X-Gm-Message-State: AOJu0Yy+n0P4R5ZCOjCZSFNwEvl8A9aoOwgikSvxvKUa+2jEvWnpxfwz 6itQgqBMhG3CaWBmI4+aRNxY+IIt+vBSL7ik1gEPIkFPjjGNM0jfPCiGB+jekK0= X-Received: by 2002:a05:6512:475:b0:51a:d08d:bab4 with SMTP id 2adb3069b0e04-5221016b518mr22160660e87.55.1716157543835; Sun, 19 May 2024 15:25:43 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::8a5]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d338bsm4050078e87.166.2024.05.19.15.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 15:25:43 -0700 (PDT) Date: Mon, 20 May 2024 01:25:41 +0300 From: Dmitry Baryshkov To: Douglas Anderson Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Linus Walleij , Daniel Vetter , David Airlie , Javier Martinez Canillas , Kamil =?utf-8?Q?Trzci=C5=84ski?= , Maarten Lankhorst , Maxime Ripard , Ondrej Jirman , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] drm/panel: himax-hx8394: Handle errors from mipi_dsi_dcs_set_display_on() better Message-ID: References: <20240517213712.3135166-1-dianders@chromium.org> <20240517143643.1.I0a6836fffd8d7620f353becb3df2370d2898f803@changeid> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240517143643.1.I0a6836fffd8d7620f353becb3df2370d2898f803@changeid> On Fri, May 17, 2024 at 02:36:36PM -0700, Douglas Anderson wrote: > If mipi_dsi_dcs_set_display_on() returned an error then we'd store > that in the "ret" variable and jump to error handling. We'd then > attempt an orderly poweroff. Unfortunately we then blew away the value > stored in "ret". That means that if the orderly poweroff actually > worked then we're return 0 (no error) from hx8394_enable() even though > the panel wasn't enabled. > > Fix this by not blowing away "ret". > > Found by code inspection. > > Fixes: 65dc9360f741 ("drm: panel: Add Himax HX8394 panel controller driver") > Signed-off-by: Douglas Anderson > --- > > drivers/gpu/drm/panel/panel-himax-hx8394.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry