From nobody Sun Sep 21 21:38:52 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 566F0CDB465 for ; Mon, 16 Oct 2023 17:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233630AbjJPR0G (ORCPT ); Mon, 16 Oct 2023 13:26:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233812AbjJPRZ6 (ORCPT ); Mon, 16 Oct 2023 13:25:58 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 658991110 for ; Mon, 16 Oct 2023 09:54:03 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-405497850dbso47299285e9.0 for ; Mon, 16 Oct 2023 09:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697475242; x=1698080042; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=y4YcpFsN2TSMs34leTZQIhhDmmY5p8SAeysdXXfcQJY=; b=bmNj056ztzl0VYdTedGhn+6dnUCqBbuUiOvKFOq+d9gOUdm9PHpQnVeCxaytmT7ikT 11ovGxEs7LoB3ArYNAy/yknDRIfv4I2crA8NlufsOXryCciNlXDzKPmTueoKDPuN8B5+ giMdp/Pd6JgKRqSUcZO0Weznbutm2KJIDm+/eGGwjANzDxCOZ7T7FacIGIsVzhDPQCkc FqnMLul7jH48ZUIxj7JAA1Wfef7LupIOsCcGXzxoYg4WPI8MOIVVTDhR6xq6DTLTWVY0 qZvvvqcjM6bAA0/XJVaFZLa8d3W7HNJiFjfA5HWap90bn30pQaxVFM/0nJJYs4Y+AiGZ l6UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697475242; x=1698080042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y4YcpFsN2TSMs34leTZQIhhDmmY5p8SAeysdXXfcQJY=; b=W9er2Hd0eYmw63wQkz7aSrC39o3O5tuvhFjN2irUbmj+aoAc5Ir5YdHKm/C/5i+qFu svcMM/ztqBSXrA32O9tuZHfNPtlcnPI1YwqW/Zx+pdoWpWRnc1ilTP54xQBYDhyEsbvo Unj9MzbrgVfduYn4GRCwskBv19JDSBafM37T5yQtW8v6xHUEe/cJIoAlMLqQXNNaCSwq S4EGQa8APiqnqevfejpM8HFzrpSK3uFSrprnQrHMwtEt+jD0iXiqRw+upXoBFyFS6U2w Z34+WDiuGTZvJRNejWY0cLDC+oBYu3g34rJxj3OFtkDJ2Ph7udCnFSeTcS6AKNGlbve2 3kYQ== X-Gm-Message-State: AOJu0Yx4qflHL1Ycm+p3UrQBjYNDpD7LlJucA1j4cv/W6R16ODhxHAlj oXktQFgmEbouhCh/y/ZIpZ78vw== X-Google-Smtp-Source: AGHT+IG9ptuOZK2qMMs221TBvhrKBhc0p1PMjKU8/S3TkYk4xU7qgakeBAb/XsiPpTTx7XzPxsCcZA== X-Received: by 2002:a7b:c394:0:b0:403:31a:77b9 with SMTP id s20-20020a7bc394000000b00403031a77b9mr30584923wmj.37.1697475241822; Mon, 16 Oct 2023 09:54:01 -0700 (PDT) Received: from eriador.lumag.spb.ru ([45.84.211.189]) by smtp.gmail.com with ESMTPSA id s19-20020a05600c45d300b0040648217f4fsm7638996wmo.39.2023.10.16.09.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:54:01 -0700 (PDT) From: Dmitry Baryshkov To: Dave Stevenson , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Douglas Anderson , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Konrad Dybcio , Jessica Zhang Cc: Marek Vasut , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [RFC PATCH 02/10] drm/mipi-dsi: document DSI hosts limitations Date: Mon, 16 Oct 2023 19:53:47 +0300 Message-ID: <20231016165355.1327217-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231016165355.1327217-1-dmitry.baryshkov@linaro.org> References: <20231016165355.1327217-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Document the known limititations of the DSI hosts vs commands transfers in LP mode. For the details see sun6i_dsi_encoder_enable(). Signed-off-by: Dmitry Baryshkov --- include/drm/drm_mipi_dsi.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index c9df0407980c..167742e579e3 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -85,6 +85,10 @@ int mipi_dsi_create_packet(struct mipi_dsi_packet *packe= t, * host is in. Drivers that need the underlying device to be powered to * perform these operations will first need to make sure it's been * properly enabled. + * + * Note: some hosts (sunxi) can not send LP commands between HS video + * packets. Thus all DSI transfers sent in LP mode should be limited to the + * drm_bridge_funcs::pre_enable() and drm_panel_funcs::prepare() callbacks. */ struct mipi_dsi_host_ops { int (*attach)(struct mipi_dsi_host *host, --=20 2.42.0