Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp513499lqp; Wed, 12 Jun 2024 08:12:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVP7QrzLhbV+6/Ylalbkv2zEUa5E+X/Erjhu8ysQbGd55juxQGpmpCrOmQImsfgOfdgj+xJt5JoLEWQl2Sm0svXJdatSnhD/oRooFb68g== X-Google-Smtp-Source: AGHT+IHBR3+YvxWNcx0KLMfe+x5We8qav7Z1Txkzg015fLfnhYvoUR53Rf44DGlc5ZLfQp+LJtQn X-Received: by 2002:a17:90a:bd0e:b0:2c2:e9d2:14dc with SMTP id 98e67ed59e1d1-2c4a76fb1ffmr2208972a91.42.1718205147674; Wed, 12 Jun 2024 08:12:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718205147; cv=pass; d=google.com; s=arc-20160816; b=Haudw+3ZnT5KUEvHVNOXG6+3W18zGBS5cTLp3hR0KqNlh7sA/7i8mhMca4K6zXvvW5 Ob11fnjW4LgURj5P+w4NyRZiBHqA7aadh7rC4KYTYoLKSHpgFZFKnsT0sAHCaNz32oJK HvBk1H4k6rDJ3prkqvlNoXjch+onf69NMyiQRXGC0fGbholjVZMB4DpPbwXYiz58s0uh l4XW2R3EBCcoXty5Yc74zCCDT4OL3tBjkP+kOWS4b/HnYpMi4pYUIKchXUJwCdOgMo9A NIyludX8H9aV0ZL6427TVRaj5WgTYqce/zIPW6HF8RT1BxiBz05GhpvQPkpCjNFFdC8q IBGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=Jhh2/EbO+KzKdZ2Ceo1EYx6oUtTDKk/jJAIaFVIVoMI=; fh=JOcodY9Sml7GFcm/j6MF6zalwkpRq4nC34PydHZnbG8=; b=zA6HljZYi17Qmwy+Wf5+1wdRZS1vXeWSxqDu0CHixBpwaF61Klm1SkvM/2s+O8pmn3 r9JhmC1WrAN7DYfTfAnUm4rQegUaeLP7VBQqqH3SrU68fDIo+pid0o1QSgsRwE4b2FxR urPyGHepUC6igF2ZQDyhUC+gZHwd9IJfayNKThC1UunL38nInkk28VHdgTS4ebsv6BBn 3GePa7GPPvsqZ8O2QLSzYO/CpMGfoAyvONcYjjiIJEieFUCcwDE9RyDoVUAH1unp75eZ EEB/rBRf7yEA8QyjT7EWUIvoP/rBb4Ct8nbH1nSqVsqzwCjpHyI6iaUskKUInfiFsAzW dgQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXIURYSK; 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-211729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a7507583si1740585a91.0.2024.06.12.08.12.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:12:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXIURYSK; 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-211729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211729-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 53449B253EA for ; Wed, 12 Jun 2024 15:00:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8042217FAB7; Wed, 12 Jun 2024 15:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gXIURYSK" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 C744C17E90A for ; Wed, 12 Jun 2024 15:00:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204414; cv=none; b=IlShm9HOjvSvflVNH/fHsoQ9cW/5kmpHXqqalpydNufBFMPNxZZ7qZu7V4JS1hJbTYlGSmkiRfotWwNgxP3Qhm1d/O52bJ4+KSz1J5dNSUEl9hTEWD9cbn2h0WF0DYT/EcJ2qVzRgcjG1IW13jVipB0gKlnlWy9eZYFjpYqSF1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204414; c=relaxed/simple; bh=f34fdBeyY/ZmGv0O8WhD9I3tze49PDqiPO6M3mFfPfk=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=ZZM+EzOHP/1IqhAXbbpIcT87+h1rPteTlaxrBe8q740sffj9WfSZTmGIj71DQLKOhgBf/vwdZk14Qa1YdfA2ANmm213a6Q+KVO3khr8OBjLuRybfnzQbQpcvewLVnwex9QaqOhHq9JzEzhR2PKnNTVsQpWSO1Qs79LghoLeLlqo= 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=gXIURYSK; arc=none smtp.client-ip=209.85.128.48 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-wm1-f48.google.com with SMTP id 5b1f17b1804b1-421eab59723so26683695e9.3 for ; Wed, 12 Jun 2024 08:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718204411; x=1718809211; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=Jhh2/EbO+KzKdZ2Ceo1EYx6oUtTDKk/jJAIaFVIVoMI=; b=gXIURYSKL2460MC6KjA4+KDI1t5PVcIZwodO9/DegeMFiNN4Ws1chIxV9Ms4fA23kh EY3iz7EXyWEkKyOntpUyr1Fvx94E+tLZN2Msm5EuzWtli9gas1C+Hva5WB1hq8qsk3ZC /wPAIhfR39zbGF/Y834MStdXxXlDO0/KSIcHcJxESSYbFc89b+iYrEU1nd/8fpDA169+ RYc1QOu+KSQ0vqxYcCzBpmJO/cujE083AzrMBNTnh7Kg1fhJYMAl6izQOds9XEiSMt5X yun/SdyfO4ZXbcDdPXWq3h9JDZm20hhGUbP4LuFqNN9t8JL7fd5VZu0fdulHwBGT5Wjc FOGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718204411; x=1718809211; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Jhh2/EbO+KzKdZ2Ceo1EYx6oUtTDKk/jJAIaFVIVoMI=; b=lRGP2OQmaytc4DoUF5gUl2nMFPyB3nIJcl0YcXq4o012NNpKrYUEJmTsjyYXx/8vqu tEi+XWoJuQ6qyWBQFeG2s4KxdFUwvCwGBUdQg2py7OJGetgDNijWjdNavXqrSe3+hQdn lL2zoNcbKj9aUcDiKv/8onKK4pYk+jYE791byGUQ4r3DHETLKBFmj506PZUawoWPC6y+ vz0WTL9Xlgv/7hRGKMfrxqqww9ksFaDNkkVvgxTrMGYYRSWf/SkuR62if2PZnUN54FAh 12mxJZM0VQLEm749l3ssqGQ6ix/Y3zasvNRX/1o/B7LleisUWu9NSQYVtHMqyc5fgYjz PVfQ== X-Forwarded-Encrypted: i=1; AJvYcCVJHITkxbgkqFXV3PeiSx8z+wxGLJ0YCrlbGdimIssnbDRM2gxadeQdtxmRPQ8xkZv4CmB1Z8EbYNm2NhsDDYP7JVa/cvk/GhH9IT6s X-Gm-Message-State: AOJu0YxpXMKHg5rw9sgfp0Wsp9SbvQ+crvj/e/CLagWCG3K+sCuPt2C/ UA8NcJVvSjVi2YzxW4gOac51PT2EE7+q4z55VNCdfV5JWRf3vP5HEA7fm/znP4o= X-Received: by 2002:a7b:cbc5:0:b0:421:2711:cde9 with SMTP id 5b1f17b1804b1-422864af234mr18269665e9.22.1718204410921; Wed, 12 Jun 2024 08:00:10 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:30bd:bf21:eed1:8aeb? ([2a01:e0a:982:cbb0:30bd:bf21:eed1:8aeb]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422870ebadbsm29401255e9.23.2024.06.12.08.00.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 08:00:09 -0700 (PDT) Message-ID: Date: Wed, 12 Jun 2024 17:00:08 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 2/2] drm/mipi-dsi: fix handling of ctx in mipi_dsi_msleep To: Doug Anderson Cc: Tejas Vipin , quic_jesszhan@quicinc.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, linus.walleij@linaro.org, dmitry.baryshkov@linaro.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240612133550.473279-1-tejasvipin76@gmail.com> <20240612133550.473279-3-tejasvipin76@gmail.com> <9beb8011-cb0f-4694-87e7-d4c02de80cd8@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuB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XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/06/2024 16:52, Doug Anderson wrote: > Hi, > > On Wed, Jun 12, 2024 at 7:34 AM wrote: >> >> On 12/06/2024 16:21, Doug Anderson wrote: >>> Hi, >>> >>> On Wed, Jun 12, 2024 at 6:37 AM Tejas Vipin wrote: >>>> >>>> ctx would be better off treated as a pointer to account for most of its >>>> usage so far, and brackets should be added to account for operator >>>> precedence for correct evaluation. >>>> >>>> Fixes: f79d6d28d8fe7 ("drm/mipi-dsi: wrap more functions for streamline handling") >>>> Signed-off-by: Tejas Vipin >>>> --- >>>> include/drm/drm_mipi_dsi.h | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> Yeah. Looking closer at the history, it looks like it was always >>> intended to be a pointer since the first users all used it as a >>> pointer. >>> >>> Suggested-by: Douglas Anderson >>> Reviewed-by: Douglas Anderson >>> >>> I've also compile-tested all the panels currently using mipi_dsi_msleep(). >>> >>> Neil: Given that this is a correctness thing, I'd rather see this land >>> sooner rather than later. If you agree, maybe you can land these two >>> patches whenever you're comfortable with them? >> >> Applying them, but inverting them, fix should go first. > > Well, they're both fixes, and inverting them means that you get a > compile failure across several panels if you happen to be bisecting > and land on the first commit, but it doesn't really matter. I guess > the compile failure is maybe a benefit given that they were not doing > their delays properly... ;-) Yes, and thanksfully there's a fix for the build failure! > > -Doug