From patchwork Wed May 2 07:40:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10375133 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A7D5E60384 for ; Wed, 2 May 2018 07:45:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9831928D97 for ; Wed, 2 May 2018 07:45:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B70C28DA9; Wed, 2 May 2018 07:45:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ECCDB28D97 for ; Wed, 2 May 2018 07:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qxFViFcI4z7BvT1M+EQLVe/UGLFiH/dqw7+4i001wPc=; b=hxvDTG53xs66SW JlLMGaHR7uIJKluG9GO/NOYBlu8KB4UZqTnhjp3IbJcta4l2thMZMg6+mH24VvkdJKRHy8V577QZM qTcvbqM3foWEkTEuDT6oGql220BPczx9JNc/qND//+w5eP/viFnuW/pE6C3n9xqwEjCOEywF182uk NilYomp2c1DUVJKp1tDtMt6Yoruf0W3KdZ7jkslwiMws5LSeL5CRo8wpNfi4nuchvQmhoav+Z3Eh6 n6ql319qP02CRNMKxPN0hrDfitd0g9+5WFxfAEFjqkQsuzmbBOvxNl4hRxYJtRfFpTPkXseooNnx8 R3DWUKVUYB464de6ZGAA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDmRh-0008UN-Al; Wed, 02 May 2018 07:45:01 +0000 Received: from mail-ve1eur01on0100.outbound.protection.outlook.com ([104.47.1.100] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDmNn-0006Dy-KE; Wed, 02 May 2018 07:41:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8YLnIWIVB2EMObfMqvTVV4cy6u12X4GECtMUBHg8Unw=; b=Y7X/qBngDpKAq6Xf+b6MnEG+ftPerLlOWT2wM6Hl2d+Yf/S2paYC6dA4aPpLw8Hmpk7pX8+fhZeOjQXq93Zu9nbGHVRLDIycWqwHn95H5ACwp1Z8ryzjiSYSqDwVSez4CNHmXZGHG0BzwWxp0nvSkgCefc3uI0TwnYgCem3YBUI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Wed, 2 May 2018 07:40:43 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH 1/3] drm/sti: do not remove the drm_bridge that was never added Date: Wed, 2 May 2018 09:40:23 +0200 Message-Id: <20180502074025.12421-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180502074025.12421-1-peda@axentia.se> References: <20180502074025.12421-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR07CA0036.eurprd07.prod.outlook.com (2603:10a6:7:66::22) To VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 3:9YS59FX68wHLhnJ2aFzE9PA/tHqFEmtLPRjzKbD4cqs0TWo0+9W2UF8qfYHBDHKE3kBt+rhDXBbO9Fn70hTTGaUj0RjkQuecQOd3fD02I1TkfrUmClQiScbl2w6f6qTNq8mP8RjL5FddFKQD9vhZPi012hX3/YqhhS8ZVoxjhHjo55v01YW9XfxyuAYvtU/LjNx3c0qD4nukhn0XH9s2iAIiWJaUeOFMQOdzNRmQ4nYmky+jlLmeIYSn0RzssC7V; 25:UQQd18S6EhqbPQwr66uuBPjm5lVNxUwVcaKJbqFOIJsF2krfTKouISkfH5ezOfWDLtwabVuoCLB1OaBZqt1fRo8GEtC2USwMhecQcVhnUwWk1VneehtRmLkNyiZ0yYCQ+D65F5CUduwiXZSzoB3Ajs80KL3YDGFnmxZci/HHlX//XWIA9PpH4DjO50PiSVKjgd5lckA932e2bCnWvZsKl6RiXAY9jvpzmuCHVaG6fajuuI1lIdMEE1iF/hYkknqBsoO9+MZL8bkaMCwGjQlMWjtNaUqktlsVOQOQ2CnN0PW1vntuufo8wcmGU/yKWxdOOm6m+Y+pXpGsfE4S/R8Jug==; 31:vSfnpnOp2RsUze6LSNOe+Xil5RAqvKLbul2zigwOuW/XAuJZ/PORYzTzlGjR1E8t9ZdxZmJWeHCxUhauvLm8hiGX0wcMLgwW1+0GWD2ON17R/6tE+aNTEJSAWUlJsgxte6iieLLasy7amxt3g1P6qyynyhjDVVZzowvmtcuMqUkUqndrzxRPJXdz0gKlyChtuzrcDHwya1YOaxtE2HGTjsKx07bBAmSjZm0YHghipfc= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2784: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6041310)(20161123562045)(2016111802025)(20161123560045)(20161123564045)(20161123558120)(6043046)(6072148)(201708071742011); SRVR:VI1PR0202MB2784; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 4:fYNJlK+WGOxyXOVWNImQ6eFB5cGvB0pUKG0biaiLuifGAjIND4IwGBYn2yp6EOauYLWu0NaXaEoAeRi9qAPvKECjYK6j1Wk+NegKvUB5aDwM4cQxK2RerzQDWblVxj6G86MMQE4/hjGUEbelCMmT48Zkki7e4N9/twUwQSBlbbWDhxeIdfOuqX51XPaP03MNDyxG4KfpKPxcNrni4Qp3kUwDYv5qr+x/caJn2XUaftnxwqln2STK4Uk5qeqViusBhvRb8qwW628IAztvxJHRZg== X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(396003)(376002)(346002)(366004)(39830400003)(39380400002)(199004)(189003)(105586002)(36756003)(7416002)(50226002)(86362001)(81166006)(5660300001)(81156014)(478600001)(50466002)(48376002)(8676002)(8936002)(2906002)(106356001)(6666003)(6486002)(68736007)(7736002)(186003)(305945005)(6116002)(1076002)(16526019)(6916009)(3846002)(2351001)(74482002)(2361001)(97736004)(26005)(53936002)(66066001)(47776003)(54906003)(6512007)(386003)(6506007)(16586007)(316002)(4326008)(25786009)(11346002)(486006)(476003)(956004)(2616005)(446003)(52116002)(76176011)(51416003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2784; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2784; 23:XtefpdgolJDIDhX5cQG5o3cS45BG/MnwLSJkR6s?= =?us-ascii?Q?DvXPObYDupQOFJ/dzIfM91FrrlsLUJqpjf3CCoN28UIPdzAXErbygsK1/vnq?= =?us-ascii?Q?AuwFQ6FxpD/fbrD01YT6npx2BDdXNnXePsmkDDjBDnv6O4NHPfnYespH3ijZ?= =?us-ascii?Q?0RMEr9Ze614DvQrQWz6euoec+AMdjrELWrWLJQTZ/C54vfpqx9VIuQNzM3on?= =?us-ascii?Q?ps5Sj7CK8l+Y4WjqYHmRpUYwOdO7ziinYqoFUg8r0m8xunVMYPXhErX4p9w1?= =?us-ascii?Q?77YehxbaXID7FKDcGAm2VwzwyV9EHt2F7lthwlkMmhzs1f16P4SYhN0YBUST?= =?us-ascii?Q?h2HJtPZjnXMw9jBBqAFOrDXfERjp3ntrkUXTQ10t4SPt7Bge0esgPtab5yIP?= =?us-ascii?Q?EoSYCUPnuFf+KFOFJrod2Dg74AUF2V59C0zISehsOWBlARUKW2+tzLIbbAxR?= =?us-ascii?Q?RUpzzR5lFpmLfTHeUAOelrTROUYZcAT1CJvxGcXdhCHzWbwokayPTFVyHGdR?= =?us-ascii?Q?yDpv1R68GrSRAVJxvVGQi8QFjLCxd7I/GXnIG/JHU2pXmWR/BAqtymc99CxX?= =?us-ascii?Q?FsRGIX/UbX0r6AbbCXTDJcquHaBs0TF5xntWC+8jsy2u9pEKWXJhfRmrqtWu?= =?us-ascii?Q?tx3tnFnChx2io86pI0DTg6W1qbXohqNczOaHejbSFADakCJdxBROMTVII2WY?= =?us-ascii?Q?MQuArr4VsoCad+77H0w+qm2dq1zNKDxlkZIUm/rwSG00bqyZHJ4kU1egeiRV?= =?us-ascii?Q?eFJiYNsxMnLUijRlqmeWvauYs2MsHJ34CYCLv01HvLIAN/IcHBIE7LFwVY1d?= =?us-ascii?Q?40SC9dzlzSpy9cTzRmar4nR2M3CejbaWskxtNOmuSutlA/ApbOySI0EmmGgy?= =?us-ascii?Q?bhvk8s3xWGm5c1A8YBIuck8Ut7gVaHL1+e7gZzqP323bO7IBbTiSXDcGKIbO?= =?us-ascii?Q?SFEKGoSObyKQwch9/9b4goaPMOTYrxMIVxEbBxQPvtyEKSoakkggUH5RrYt4?= =?us-ascii?Q?VEtW7eIXJgQLQ2hGuFpPUYU4RpBoOiic7rkJxy2fGA+vGUtLZjkCxuzuGGwh?= =?us-ascii?Q?Ivm9K31NwuxNMKK7s+L0jh48GhM0/HR7flqG0KTMGY6byaHipKOLS+yBaQWM?= =?us-ascii?Q?byYW/ofENxFdOJei3l6hA8NcMFaI8QmGCpe6LdR8Onh2woVS8HEQr8WyGP6a?= =?us-ascii?Q?e2Gh6grIZbtiMGG1TeodPpJGAlidqYs1uOn9SZHXCIAsIvt2JPV+EFeccCrg?= =?us-ascii?Q?3L8ojjdJ2XLSOHS5tGEXtk4a9dGitvghA2MNcV2Yq6Q6Obn8wtbPmo93//tN?= =?us-ascii?Q?WNMtc56pVj5HmTiGtgEZ5tyk=3D?= X-Microsoft-Antispam-Message-Info: iWbd8cTA4nuNm5DiWEjOC/BhqklpchoXYrnxa24D9MQ2waoCIDLAyDcjbEeIoYk6G/0LuH77g62rchRqU6SFmCg9B8xt2iAkoBTW4j4YXBIvO4tAjmLFMEoH0NgOkQs/p0txbqkeDuPemzA6/eGmnPf7Y0pPXuKH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OUtrZk1+Ccz/+ubjPQGmnz22qL5SAeWqz9TyTxuLdFQN4meOgFsNlkyJ0UHHkQtMAAvYgsl8B8hsr3kHJ/FgPkGxP4/riw68irZ X-MS-Office365-Filtering-Correlation-Id: efc6c373-8004-48e2-e708-08d5b000038f X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 07:40:43.7169 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: efc6c373-8004-48e2-e708-08d5b000038f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2784 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180502_004059_716828_9768A372 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Joonyoung Shim , David Airlie , Seung-Woo Kim , Sandy Huang , Krzysztof Kozlowski , Inki Dae , linux-rockchip@lists.infradead.org, Kyungmin Park , Kukjin Kim , dri-devel@lists.freedesktop.org, Benjamin Gaignard , Vincent Abriou , Peter Rosin , linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Heiko=20St=C3=BCbner?= Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The more natural approach would perhaps be to add an drm_bridge_add, but there are several other bridges that never call drm_bridge_add. Just removing the drm_bridge_remove is the easier fix. Signed-off-by: Peter Rosin Acked-by: Daniel Vetter --- drivers/gpu/drm/sti/sti_hda.c | 1 - drivers/gpu/drm/sti/sti_hdmi.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/sti_hda.c index 67bbdb49fffc..199db13f565c 100644 --- a/drivers/gpu/drm/sti/sti_hda.c +++ b/drivers/gpu/drm/sti/sti_hda.c @@ -721,7 +721,6 @@ static int sti_hda_bind(struct device *dev, struct device *master, void *data) return 0; err_sysfs: - drm_bridge_remove(bridge); return -EINVAL; } diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index 58f431102512..932724784942 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c @@ -1315,7 +1315,6 @@ static int sti_hdmi_bind(struct device *dev, struct device *master, void *data) return 0; err_sysfs: - drm_bridge_remove(bridge); hdmi->drm_connector = NULL; return -EINVAL; }