Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5146843rwr; Mon, 8 May 2023 19:19:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JjjgYxlbi2wRhQuRmXOspP+89Ud6PAGeupavqsLftSESVZSfysRzU+z3YOPp40SfiZ2G1 X-Received: by 2002:a05:6a20:3d27:b0:101:3abe:9aec with SMTP id y39-20020a056a203d2700b001013abe9aecmr1149631pzi.54.1683598746014; Mon, 08 May 2023 19:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683598745; cv=none; d=google.com; s=arc-20160816; b=rmQ86VhO4PFTNUwo2azpxcjhcj3pnUF9MTwYrH7Sc+jzw1Cs+LUjyQz6jUB7C5bze4 6I41hbGxdYr5t6g/OvnKK/Yx6c4ErWhaXFPBeFbF4DeaHFWs6RzCAK/HtBd9OLnARqEK +V8ewWKxhl8+jKkeY2f7c4dSz7nShZp8f88zkUWW5zD0Ea32tJjGm7O8INmVQ00DCJU/ nlfUnsidmt/5NU5m4hrMqhX8N4lKKlKKCLir2N0h+rzjSARrfyC4B7z+wVg5I57B/N8d gTk+tLEQqCVsCu0ym5v5q0rH+X9AmcPFncU/HOkX0b6fj9vdBjoZHPYnWGn+dZnemG5z 0kQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SIC05a1h6bRWGMz9RDdtOyxBzwCAwNUqEJPqWKbzSxc=; b=CWXaVZiFqUJZUKs15sR3TURdRsmBI7U5hvacimg792YcMtbRDqUgNCf4YdiYsfw0uT qad+ARxl/OtwkCXy3Hb951rV4SXpnWqR01PvTmi3HHE+XvP37fKEUBWl6yQXXeZpe+ep LBXKo6Kr21Qkqff1cVZjzOgpuDa+YPPc603sT+iCl0CsoGkHjPDercIfqQjQO4EADaua k0YYeyv+2CkDHXJsMd3dO0CVrcl0FFzAhFGVX4n9dbzh+D1efVOeNua8ipHubyljNuPi qeFQfEbILL79iEEeuAcPjvgzDBN/dB1Z9FkFzrgZwd1rm+Wa4zvAb2ga9RVwguGiviqi RM5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=aMeANNK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020aa79909000000b0064397f082e6si1213610pff.349.2023.05.08.19.18.50; Mon, 08 May 2023 19:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=aMeANNK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234173AbjEICOS (ORCPT + 99 others); Mon, 8 May 2023 22:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234197AbjEICOL (ORCPT ); Mon, 8 May 2023 22:14:11 -0400 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A7A93E6; Mon, 8 May 2023 19:14:10 -0700 (PDT) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 8BA0784788; Tue, 9 May 2023 04:14:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1683598448; bh=SIC05a1h6bRWGMz9RDdtOyxBzwCAwNUqEJPqWKbzSxc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aMeANNK+KgPlA8gSVw6iwHDK5qOPrrNoMCyGrDKeLXHJjGXMB01w2l0TPVRok5pxu CYFZQQzBwg6m0cLdqDuI+y1kdmedWI/SEFyf4zKZunINZ0uJPFeoGMayZtDstQGbD/ lzfIW0ACxfKWsmCvGW4a5i/u+y+cr8Ob2dHEGtk6DI0sQGe3Eu9oJNOnF+GwqLJqkM ru8JpSQ8h/n4CMeLldiRcTPwPGeoFRPaUBkwAKXjRzRgb37qQQuNQjhNIQmvS9Cizu 7bT9f8vg9cmB5qzX7KYeF6tHAmoP/63KDhHotbDjDG9jEqENNdpz69Wrh0OFS3vyyh s5WCFZf/otDJA== Message-ID: <211f0b07-568e-509d-464a-2f8821d300d7@denx.de> Date: Tue, 9 May 2023 02:11:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v5 3/6] drm: lcdif: Determine bus format and flags in ->atomic_check() Content-Language: en-US To: Liu Ying , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: stefan@agner.ch, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, krzysztof.kozlowski@linaro.org, LW@karo-electronics.de, alexander.stein@ew.tq-group.com References: <20230508055740.635256-1-victor.liu@nxp.com> <20230508055740.635256-4-victor.liu@nxp.com> From: Marek Vasut In-Reply-To: <20230508055740.635256-4-victor.liu@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/8/23 07:57, Liu Ying wrote: > Instead of determining LCDIF output bus format and bus flags in > ->atomic_enable(), do that in ->atomic_check(). This is a > preparation for the upcoming patch to check consistent bus format > and bus flags across all first downstream bridges in ->atomic_check(). > New lcdif_crtc_state structure is introduced to cache bus format > and bus flags states in ->atomic_check() so that they can be read > in ->atomic_enable(). > > Tested-by: Alexander Stein > Reviewed-by: Alexander Stein > Signed-off-by: Liu Ying Reviewed-by: Marek Vasut