Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243249pxf; Wed, 31 Mar 2021 02:08:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAJ7JVG78emgdbadskPVoVbEWmkOgbwYhTgkgePT6tukpgtWd2crY3VuhjSZG4mffip65r X-Received: by 2002:a05:6402:254a:: with SMTP id l10mr2424411edb.160.1617181738856; Wed, 31 Mar 2021 02:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617181738; cv=none; d=google.com; s=arc-20160816; b=OcHk/VPR0O2l56wxhy98NHcKI3QPVg1jK68tqQ2F+gDj3ILIjQZH9ZWkGl85Lv37ye VAPD19uGXZP0xT/qQDZ/RC9dkd2Z1jtyXd9NCCm8JMTXJMdavyqbOrM/smplXtTKkRN7 FXXcB+akzLnoa8XgUDzYj6EoitK2son34BmoSfMeZtqdyeAvkwyTXE8hhsJ6D4R1RTn5 CSosQuyzSBhO2CptZvWDc7Bvus9r+WIDlU7Tny0e6e+epa2TAsvrX8ZnLdYMNTCOJG8b Fz819wYpnErTrjlNTa77anwxbdvlbR1amM0ubrUyhdaa2g466Bksm610f9v8HMDqZKUX resg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=ffn6FNtzSxpCzKKziwCDBKV/FNlSkM5otmYsYdGu7Aw=; b=pi9L4K4wNoXyLNPoTdR9/49bIZvud14LT6J3Wkfotrw4hB2b6AizpTb8OsB7SR4jd9 3iGFjE2o+mHniiIKCQfLmPOSGi+ZQEKlJoF/vMZMB9Tmd2pSiYNNfdZ7AFBlZbKU9pGu Qz4pYxSBnja3zOjuGwNqS3f+lk9OBm6F886nIV1Q6AZuMkGYotocKv9yaPCprbxElsLA wBYyqUmce4GNan8i7M8OkAKOTC+VRMn2nbeWY+VFnzHBo9vMWCO/j0OTBLL99gU9W9dR V1bA3JB4B48TsZeJ2sSoNB2NN3EUdjoyi41KMtEDGOdd13YaT3BENs2/q9QWR4Qz0nm+ Q9kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=o9rMcvVa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si1313358eds.85.2021.03.31.02.08.36; Wed, 31 Mar 2021 02:08:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=o9rMcvVa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234575AbhCaJGb (ORCPT + 99 others); Wed, 31 Mar 2021 05:06:31 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:53733 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234423AbhCaJGL (ORCPT ); Wed, 31 Mar 2021 05:06:11 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20210331090610euoutp029baac2dfa1592fab765d426011ce5c53~xYhHlpKh23097630976euoutp02i for ; Wed, 31 Mar 2021 09:06:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20210331090610euoutp029baac2dfa1592fab765d426011ce5c53~xYhHlpKh23097630976euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1617181570; bh=ffn6FNtzSxpCzKKziwCDBKV/FNlSkM5otmYsYdGu7Aw=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=o9rMcvVaaqFnmqC0sTEtJyVgTTW+lyTBH+3oQfE2Chn4lhJqorfx5HnUQ73jqAVxg 6VVv6fwg+yt+QHdt39PLcgYR4XWbCe6ythTTR81QxJkri95m3RcxBQ0tSY3IKeAC0A unhtBu9F73HT6G0BgNgjKkosKuz14NbRgiH+Tbb4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210331090609eucas1p299156a55a7e4f17448dd05bc570500fb~xYhHMBDVA1890118901eucas1p27; Wed, 31 Mar 2021 09:06:09 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 78.4A.09439.18B34606; Wed, 31 Mar 2021 10:06:09 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210331090609eucas1p25db032276eebb17b2c3564af3ab76c42~xYhGtZvni0598705987eucas1p2u; Wed, 31 Mar 2021 09:06:09 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210331090609eusmtrp218be59a465ae840e350af8559cf8d4d6~xYhGsT_Ip0248902489eusmtrp2H; Wed, 31 Mar 2021 09:06:09 +0000 (GMT) X-AuditID: cbfec7f5-c03ff700000024df-2f-60643b81fe35 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8A.4D.08705.18B34606; Wed, 31 Mar 2021 10:06:09 +0100 (BST) Received: from localhost (unknown [106.210.131.79]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210331090600eusmtip258dc8af4e87fdcbe64c487a5dc3ecbc3~xYg_x6AKQ1519215192eusmtip2M; Wed, 31 Mar 2021 09:06:00 +0000 (GMT) Message-ID: Date: Wed, 31 Mar 2021 11:05:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Thunderbird/88.0 Subject: Re: [PATCH v2 01/14] drm/bridge: Fix the stop condition of drm_bridge_chain_pre_enable() Content-Language: en-GB To: Douglas Anderson , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Sam Ravnborg Cc: robdclark@chromium.org, dri-devel@lists.freedesktop.org, Thomas Zimmermann , David Airlie , linux-arm-msm@vger.kernel.org, Steev Klimaszewski , Stephen Boyd , Stanislav Lisovskiy , Boris Brezillon , Bjorn Andersson , linux-kernel@vger.kernel.org From: Andrzej Hajda In-Reply-To: <20210329195255.v2.1.If62a003f76a2bc4ccc6c53565becc05d2aad4430@changeid> Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SbUxbVRj23Ht7ua2WHAqEE/CLzm1hiaAyzFGQzC92B8YQPxZlMbQpF0ZW YLbDwcgCoyuwKmPFRWlLMt1wq8CGg5YBwoD+sCsdFelg1aDVoePDDUQoBHRD2ttF/j15Pt7n fU8OQ0rWBNFMfuEhTlUoV0ppEdX53arr6WPJObJnBuw7cK3LQWBn/xyFndeHCDx8fpDGN3zz NB5bmSGx484YhU/om0Kwvn84BLt7GmlsO7kPj69Okti8agW4WpeCV29Wkdg+8QeBLXf0gl1h 7LxHG8KaKn6g2K6fmwBrqjEI2HO9MwTbeNZDstdOjRLsxHgvzV5Z/lXAej+2E2zTZ2M0O1D7 KcV2OMvYxfbHM0OzRCk5nDL/I06VkCoT7W8e333whKhkRucDFcDM6ICQQXAnWvL9JtABESOB ZoB+avlE4BckcAkgwy0ZLywCdGP9DP0g4a4eInjhAkAa7dfB+PRGvHUu4BLDVFR7aQT4M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z1DY/NYKyNTJX07m5TUnMyy1CJ9uwS9jFXX3As6uSpedn1l bGBcwdHFyMkhIWAicbn9FFMXIxeHkMBSRonzFxtZIRLiErvnv2WGsIUl/lzrYoMoesYocWnn BXaQBK+AnUTvuguMIDaLgKrE6UMz2CDighInZz5hAbFFBRIkzn6YxwRiCwskSzQtegG2gBlo QdOXlawgQ0UEGpgkLt1dDHYGs8BqZok9326DVQkJ3GaU6OngAbHZBDQl/m6+CbaBUyBUov/7 XiaISWYSXVu7GCFseYnmrbOZJzAKzUJyyCwkC2chaZmFpGUBI8sqRpHU0uLc9NxiQ73ixNzi 0rx0veT83E2MwHSx7djPzTsY5736qHeIkYmD8RCjBAezkgiv8IHEBCHelMTKqtSi/Pii0pzU 4kOMpsDQmMgsJZqcD0xYeSXxhmYGpoYmZpYGppZmxkrivFvnrokXEkhPLEnNTk0tSC2C6WPi 4JRqYFL9ptToG1lzMJPltIHLpKnCK46mTjb5/r9+10uVW2/1nmVMUNzKuWTqi0NnNZPWMipU HvzAo71OhGvfp4rDM55dyrCMbpY693im3zyjv58Kijzvi3SLHnjVnN5xSVGB/5zav6mNhyyW VphPPSmhuNjW78PEUz9r+C+cXeO8tzRqZ2Ex3+TSIIZZs9hcLaM5Xgtw/cs8+etrycGFM0Sn mPy9sr7g8UJBxbyGX4L2Ke65Ei5G0Vt87y2ZeD995v8L76wl7d4/zarhufBps7va1WfMez/9 Pd99nc1vlhB3RrmTINOv9zFXtdS/ywY33EueFWu0uOzHexXTP2pyjEY7P21UknWVUgj3ZF40 XT4nPkqJpTgj0VCLuag4EQDBcjMVoAMAAA== X-CMS-MailID: 20210331090609eucas1p25db032276eebb17b2c3564af3ab76c42 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20210330025413eucas1p1613dea9b53bcb06d93eb210c6dfd1254 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210330025413eucas1p1613dea9b53bcb06d93eb210c6dfd1254 References: <20210330025345.3980086-1-dianders@chromium.org> <20210329195255.v2.1.If62a003f76a2bc4ccc6c53565becc05d2aad4430@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Douglas, W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: > The drm_bridge_chain_pre_enable() is not the proper opposite of > drm_bridge_chain_post_disable(). It continues along the chain to > _before_ the starting bridge. Let's fix that. > > Fixes: 05193dc38197 ("drm/bridge: Make the bridge chain a double-linked list") > Signed-off-by: Douglas Anderson > --- > > (no changes since v1) > > drivers/gpu/drm/drm_bridge.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c > index 64f0effb52ac..044acd07c153 100644 > --- a/drivers/gpu/drm/drm_bridge.c > +++ b/drivers/gpu/drm/drm_bridge.c > @@ -522,6 +522,9 @@ void drm_bridge_chain_pre_enable(struct drm_bridge *bridge) > list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) { > if (iter->funcs->pre_enable) > iter->funcs->pre_enable(iter); > + > + if (iter == bridge) > + break; Looking at the bridge chaining code always makes me sick :) but beside this the change looks correct, and follows drm_atomic_bridge_chain_pre_enable. Reviewed-by: Andrzej Hajda Regards Andrzej > } > } > EXPORT_SYMBOL(drm_bridge_chain_pre_enable);