Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2650259rdg; Mon, 16 Oct 2023 10:26:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfngKa0aTeyMFdyLo9iG2r3lG1F8bZ22GcFGbIRragryWbrDVAo4fp5DVjyjAkzPuxQIgl X-Received: by 2002:a05:6a00:99e:b0:68f:c2f7:cef0 with SMTP id u30-20020a056a00099e00b0068fc2f7cef0mr13999858pfg.4.1697477178047; Mon, 16 Oct 2023 10:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697477178; cv=none; d=google.com; s=arc-20160816; b=S92BFSAajElj/jHc1x8978IOm6s3dOdrliShKALO995v5pwlygCIUeNjxPWUhbyont eOZOGf6M2mJL5hGp8yRbK9GqsbUoh73KVFuu1V7pyfyumTHqMLdzoGQfiTY1Qz8gbttC gelU2wEuAGUHZNmO9PI2xoErG3/zPtqRENn3HV7qt6hMxd9ctUw9EctXjIZxCeLbVicu d5Qua/Gvdh7jwfU++imRrJyhjFzHk47IiIQ2cYOYq3yYL71r6NadwWHU91NRaPjKLjDm hVyG9LbUAlaoVwfVb9Mm+XioYY1pXUDtNjvWgSf/cOyyl7hgwUFQZnQZNX+0T+dGRKLr KJ6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y4YcpFsN2TSMs34leTZQIhhDmmY5p8SAeysdXXfcQJY=; fh=OT/8nNJKNCzw+WY7QnVxvWUM5gQckqwqCjGb4xh5RlI=; b=NjCfwT3hShQJvux6s9QNNp/BKfyndn1aLE+mFv87Uy+Cfoi1B1XMBdlU+9JlF1fQRx OZmMqRIzZixlXHKhDPclCswH5TGnHzhkEp6a1x7vYph2+kdRYU2sY8WYdwq/adV5fU/R lw8U8qSzWSV8kvyzdZ/ZWnyfwNaDIJumveC/Ymsf910ducxefCZ/x7BAVotWo9l/RNuj rB907dcr+qvbdOO1amnxoB3J+f3CmRHdVKkKIbeyeS7SlnnQNvSc/f4C7JpJNyJNDV/7 M/EqrUcS1eC3hesN/zQs3lMidOQ5b64Uqd+hjeRHhPZtOB27Lnx/2dqaL3fAF3/AqfFd HQ2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bmNj056z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id d3-20020a056a0010c300b006bbc2c4009esi258867pfu.218.2023.10.16.10.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bmNj056z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 425788020F80; Mon, 16 Oct 2023 10:26:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233614AbjJPR0F (ORCPT + 99 others); Mon, 16 Oct 2023 13:26:05 -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-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: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 10:26:15 -0700 (PDT) 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 *packet, * 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, -- 2.42.0