Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp773341lqo; Fri, 10 May 2024 14:46:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9nRAs7Kv5sXw+Eh4XdPf9fo4+Cgj7q+SxdBgdkUgrHd0vYBmPqIb8hJpgwq2qjRiA3md9XiRIoLNkt6vTaaTeurLEu03RSGO1CKzY7g== X-Google-Smtp-Source: AGHT+IHywWVZvk7xvQqX3CbfuGG5e/N0VcRY3mrR2WJCqHGlmU42hGrAqB7puFB+4DwhCV2Y7rft X-Received: by 2002:a19:381e:0:b0:51c:c1a3:a4f9 with SMTP id 2adb3069b0e04-5220ff72f76mr2131368e87.64.1715377608983; Fri, 10 May 2024 14:46:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715377608; cv=pass; d=google.com; s=arc-20160816; b=aysd1wILa0L2JYRUR47cJHLqdg/LdxMNJcZWPJbicPNeQCstiXcN9PU+tpvp1H7gsR 3enS4pqI7Kon4BwSrm4anLX1ANaxzWfI4pOR+4sIsdxOwvAFqHWlgCvyK8ZewfMZy2k5 EwFL0z0zccjWMT/cfwLVl2XCb0ORtA2ew3IngGlAp5u+OZkEvV4fCCic7r8ajA2qqnLO Hz9rct7dI/HKJJncuQTLXvgbhd6Nj8MAsCF3HVnNurMdHlU1EOGd37o6oFWmu8ChRAUi DygWSpysxe+fzR+DnOafZUsH3GaAWBT/s0pD6XkHiyn6T7a4I4gKuyHX+gNVtVteEHiQ dgYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Svr4jT9bdrpFXgOEkVqTf+8fIAlHYmRmltVZYBHBIQc=; fh=0XVUKBMdrBZCMo+ej44Gwi7O/ST3DcJTgYi5loOhvdE=; b=sKDhJQ/Oma9pkN9y25EzhklPOJfFluRayLaWNNO691yQKlq2zaU19aX/SQ9LRYCGrK OfYFHnsokfj2YaEOn95jt9LlJhh9I96WDwl1191d5V29cvasXyq508W4dEsdjGpPJ1J/ c1XA8HKgT7MqUgRWpJWJ1Xvi9GgEKL7eXGW6DnWYGFYA0TfoocwiwnJBCLUtIqrpnMi9 GFWYGuTnKhyXH8CHxMU7UsW1MV99IUOOO1gn2H00sLXYNOJKRHnt2xFZexFU2xn04Tog fzoAeKPqMk4rXOndwXJfmhiESDSMq8AgDCQjiMZ1X7Mul9YXN9TeiMa2GDnQ0xqGoTaq kJuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j3SiguoT; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-176254-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 a640c23a62f3a-a5a17ba3a2dsi225035766b.627.2024.05.10.14.46.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 14:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176254-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=@chromium.org header.s=google header.b=j3SiguoT; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-176254-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 AC8F71F21BEE for ; Fri, 10 May 2024 21:46:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 417EE13CF95; Fri, 10 May 2024 21:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="j3SiguoT" Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (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 E70F113CF85 for ; Fri, 10 May 2024 21:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715377594; cv=none; b=noVh0qjOQ3c2Sz+xZUWH1GGNQTPMt1sJzsAadj+v5rmVwaxoup//FnP/2UZAvDiPNDVLzRWPxEdKmNys1465hKaBc0gxaq9TgVrieM6wOl03tsThXy3ndH6bGMyB44bFp00ql/HY37TsrxzXVXqydP7osgiKis6GVkFfJoAdj4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715377594; c=relaxed/simple; bh=UCWb/BigwkR50o/nRi0sPh4T9acKc47cIx4rKSb2SHo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rtClsJ41tKVemeQ6ssXXNnpGVFQkLNaOSadjZiIsWbb3AG7iq5soLkvblJHmhKxkTzYmW2WHcpSEuQsmkaPHAQlWYFticjcIKCspa2QD9tjOIe2sOzvOONFIQQu5RbV0kMygk5sxBRxJr3VwZ4kPS5Xsyu16DocX6FRHWF9h+Ak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=j3SiguoT; arc=none smtp.client-ip=209.85.222.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-792b8c9046bso197582685a.3 for ; Fri, 10 May 2024 14:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715377591; x=1715982391; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Svr4jT9bdrpFXgOEkVqTf+8fIAlHYmRmltVZYBHBIQc=; b=j3SiguoTotsZQTsGnhAywyzS7FgX6sA7ovdb1N8h0FPJgNmOMAJW1taq1D4ZnUxb34 /JUZXYB5r2GGuEH8s6wjZqHAufVqDHB1GayUEVXvueTyRNJHV+02gtgowg1Ju+wX5iPf 2Xtd6OVRIdWKeElz0VGruWa2ZkR73FuosiVY4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715377591; x=1715982391; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Svr4jT9bdrpFXgOEkVqTf+8fIAlHYmRmltVZYBHBIQc=; b=K/u7/yJVR/geguUByMskn5hw94KBsV154xBDJObFJ24bGjjI23MSSFjTBmu17YVzzy QWKygzhOyOmT7/mVXr9tdmuhfgee+2f77Ml0B3IfLH3BIPjbzYTDRe95AG6f5zS2Ui2g Mk42RB0tUeL1tojZga0RjAkRSKcYO7EZoQKPjh7BnmKY217cNllvjammPE1VHX1KBTkT J5HbjxO0ebgZjo9F+IgVILTC25NSnWCWQqkcH/yPF2pBXPX9lb0pBav4ZUu3pddrZLjT r5qTgOqffRzyL1W6CwG64knH9rwD0+vIGomgPKR2XRMFo9wzZk9KaCg2gHaQSbu6q6N1 Ipsw== X-Forwarded-Encrypted: i=1; AJvYcCXv3HUldebO1rqjHsgPEO6UXezMgPpuZIu0hh/lcAHoby4XDqoNQUartt2BJAgBxEbMCwi1+rOjabK8Wnfe9XbslvvcQ4EU5Id5NtZl X-Gm-Message-State: AOJu0YyB7Bi4gjRdAYTKBoaj7L5JFnIbg0B4x16vAk2TPTCc22yMDNru UpwXMrW25pOi/ZW5J7EWwbVZu2CTyTeIIUFVOyjA0cTUvRLGGz5J76esjX0v1tGmVwoCaH68+5U = X-Received: by 2002:a05:620a:844:b0:792:8ec4:74a0 with SMTP id af79cd13be357-792c75aef63mr386350185a.41.1715377590899; Fri, 10 May 2024 14:46:30 -0700 (PDT) Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com. [209.85.160.169]) by smtp.gmail.com with ESMTPSA id af79cd13be357-792bf277f6fsm218009285a.14.2024.05.10.14.46.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 May 2024 14:46:30 -0700 (PDT) Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-439b1c72676so41751cf.1 for ; Fri, 10 May 2024 14:46:30 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWWjjKqX28FWbSThl3iEvsXfZ3mBZ/5XFTpAsKxI1z7seqqZxZ5FDPEtSC/CRo7RYfeYbFzKAqPh63nfbObWKkSp3ZDepxJ12N1/ofh X-Received: by 2002:a05:622a:510e:b0:437:b572:6d with SMTP id d75a77b69052e-43e0a2240ccmr150251cf.21.1715377589421; Fri, 10 May 2024 14:46:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240510-dsi-panels-upd-api-v1-0-317c78a0dcc8@linaro.org> <20240510-dsi-panels-upd-api-v1-3-317c78a0dcc8@linaro.org> In-Reply-To: <20240510-dsi-panels-upd-api-v1-3-317c78a0dcc8@linaro.org> From: Doug Anderson Date: Fri, 10 May 2024 14:46:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC 3/7] drm/panel: ilitek-ili9882t: use wrapped MIPI DCS functions To: Dmitry Baryshkov Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Sumit Semwal , Caleb Connolly , Marijn Suijten , Vinod Koul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Thu, May 9, 2024 at 3:37=E2=80=AFPM Dmitry Baryshkov wrote: > > @@ -424,20 +420,14 @@ static inline struct ili9882t *to_ili9882t(struct d= rm_panel *panel) > > static int ili9882t_enter_sleep_mode(struct ili9882t *ili) > { > - struct mipi_dsi_device *dsi =3D ili->dsi; > - int ret; > - > - dsi->mode_flags &=3D ~MIPI_DSI_MODE_LPM; > + struct mipi_dsi_multi_context ctx =3D { .dsi =3D ili->dsi }; > > - ret =3D mipi_dsi_dcs_set_display_off(dsi); > - if (ret < 0) > - return ret; > + ili->dsi->mode_flags &=3D ~MIPI_DSI_MODE_LPM; > > - ret =3D mipi_dsi_dcs_enter_sleep_mode(dsi); > - if (ret < 0) > - return ret; > + mipi_dsi_dcs_set_display_off_multi(&ctx); > + mipi_dsi_dcs_enter_sleep_mode_multi(&ctx); > > - return 0; > + return ctx.accum_err; > } nit: Same comments I had on patch #2 (boe-tv101wum-nl6) about inlining this to the caller. Here it's even better since the caller already has a multi_context... In any case: Reviewed-by: Douglas Anderson