From patchwork Thu Nov 28 15:37:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11266285 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C39E714B7 for ; Thu, 28 Nov 2019 15:37:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA95E21781 for ; Thu, 28 Nov 2019 15:37:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA95E21781 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0844389C05; Thu, 28 Nov 2019 15:37:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id ECB3C89A32 for ; Thu, 28 Nov 2019 15:37:46 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id b11so11353995wmj.4 for ; Thu, 28 Nov 2019 07:37:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FuaMjHIYXz5VbkPp7vbASLG/rrUrkAh/Y4RiebzPwjs=; b=AWM7g0K2cD31vMxCZHvzXMn8671mah5v8O5Gz1oeOgcqglAdtrCWJ0FFgpwtEC51wA e0maYxgbWkeRnBw5X1QiiYBFQpu8m3b363n0MblAIEWfCiJICaWUsF2DBSh1QFvQaUdO s6ZIiOUVHXhUjv52PdDicu+8Zil1sjDC5sTNZoon7drY0E5Cb1BcLCDOZ24MBfQ33Aq/ 0OV+uXvzH9V89drxEK6vzseWIHYv2pwMEPLTnfNXs0ZT2mx/3XZ2ydz++BdZ4tp9EJCn eG1CVefucrXY7rRgu9QjYulKBuF+DYvF+gdhIxqmPBac2cYFXcyqqz9fpPBZfHq5lS7f OI7A== X-Gm-Message-State: APjAAAWRtzQ1NhdRLS3P32R/UFLfAa1Jw4sP44UNSd/kQ9Y0A1bSs8ud nYSLqLcKRiX3ijchTGRIQDE= X-Google-Smtp-Source: APXvYqz3xn9e/51N3n2xNkmI65xr2AXQvgtC2eYygg+gDmItvMgd2G741V/Gq9zZHrNaDz+YYsbjIQ== X-Received: by 2002:a1c:2b82:: with SMTP id r124mr10347797wmr.112.1574955465466; Thu, 28 Nov 2019 07:37:45 -0800 (PST) Received: from localhost (pD9E518ED.dip0.t-ipconnect.de. [217.229.24.237]) by smtp.gmail.com with ESMTPSA id c1sm23139312wrs.24.2019.11.28.07.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 07:37:44 -0800 (PST) From: Thierry Reding To: Thierry Reding Subject: [PATCH 1/9] drm/tegra: hub: Remove bogus connection mutex check Date: Thu, 28 Nov 2019 16:37:33 +0100 Message-Id: <20191128153741.2380419-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191128153741.2380419-1-thierry.reding@gmail.com> References: <20191128153741.2380419-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FuaMjHIYXz5VbkPp7vbASLG/rrUrkAh/Y4RiebzPwjs=; b=arJ/EiNSglJZooI0IbSwGn/phEGeIcEiQBRbY5c79Z0DlyHqdtluiaLR8Umjwj+K/+ 1V2gaVPdNHfbO1Oa0zuObZ20yVDuGnjpXTByLmvFY/zbZnFRMhBSnDrMbM9nPByW0xAO oSoqpOBVKIH269zBTr7Wjv1c0Qlfq1ijiLjD7Xin5qStp+tKNaAGTmBkdHhT+Zq55z/S 1PjTtUTJvXCBbKODwbRivMN7UA5CoQJNWDih6P9uADojnFjgSa2nXpfMRGawWneF+leT vSvXQDF4m71q+JqhUarq963w0+jl22pGjJdF9Age5CIRDEozWdOZGrPG11SwN3CIvSDx 9ARg== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding I have no recollection why that check is there, but it seems to trigger all the time, so remove it. Everything works fine without. Signed-off-by: Thierry Reding Reviewed-by: Daniel Vetter --- drivers/gpu/drm/tegra/hub.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c index 6aca0fd5a8e5..e56c0f7d3a13 100644 --- a/drivers/gpu/drm/tegra/hub.c +++ b/drivers/gpu/drm/tegra/hub.c @@ -615,11 +615,8 @@ static struct tegra_display_hub_state * tegra_display_hub_get_state(struct tegra_display_hub *hub, struct drm_atomic_state *state) { - struct drm_device *drm = dev_get_drvdata(hub->client.parent); struct drm_private_state *priv; - WARN_ON(!drm_modeset_is_locked(&drm->mode_config.connection_mutex)); - priv = drm_atomic_get_private_obj_state(state, &hub->base); if (IS_ERR(priv)) return ERR_CAST(priv);