Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp770891imn; Sat, 30 Jul 2022 02:20:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vBPUSoUkCeCsjfQqJX1nyV/0Pc34aWzZ8TC+Da+fwrhEW2DtR2iCaepliYzJbarqlz3LgQ X-Received: by 2002:a05:6a00:8cb:b0:52c:6962:2782 with SMTP id s11-20020a056a0008cb00b0052c69622782mr7460138pfu.81.1659172810956; Sat, 30 Jul 2022 02:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659172810; cv=none; d=google.com; s=arc-20160816; b=bTfRT7g84MjahJVx2m33yVWkLjAZY4oyjFq4UwmElye1SIdQYHlxkQ+PTRxxwm73tK DFnDWCzQJOfkzkR/SLZE7HjWElseuqb4bVO9inVQ9eo/TEQIXtayKrRsoI9o+SU9MQ6i 6M5JfJOgjh8iC4jy7ePABsFQgAsfbsf3AiV1AXTBpRHOVCC8MagQj5EjtErWUMOwuB7m B5bfCdvbL40sZz68Hr6pc1/N5ZrMMcqHjMh32sWvdakaFO3NUt08ryzuVCIWNX+m6N53 S1scSdnko732OxJ2mbOKKY3OHUfxCalZIPXxm+U4WPwmPB4q03j0mqYxsMGUR4zCmOLE 7Y0w== 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=2ikzYAjzqfaF+a4GkobxDatu0soZrTXVKMloqR9b6tU=; b=W2jnq00jkZaJvefzRYrzd+NDgxCkiKuoA0rlA7+YL40yoFHt1dqjmGVajPePEjSeAO HB9u4C6Wt6uYrAPnWAxxKytKgBPOL5BTtcrZpRn9M/KD90xBpwqUL+TwQcwu3Fzf5dDL Ir4mIH4HKfIBpStFFZ80/NDKoAlj/CicmGPhqCrR9ndMgkMSgyaZwi7WjoQoe+A7k0gV d2h5UFNdzspgFk5ZDoFrfOm29gUfRJlcl2gITBsoi9EjBfcC61dKfKu2hxHwc++cb/u8 rt1XaQoXA0uIJDIqNjW9TUXFDYRI6ifZ8XFRH9ZWcNYITRmv1lzJM5OzchXoWBne8I2R 3Yjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="ODVq1f1/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a631e12000000b0041a4be147b9si6617143pge.631.2022.07.30.02.19.56; Sat, 30 Jul 2022 02:20:10 -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=@gmail.com header.s=20210112 header.b="ODVq1f1/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233796AbiG3JQb (ORCPT + 99 others); Sat, 30 Jul 2022 05:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231502AbiG3JQ1 (ORCPT ); Sat, 30 Jul 2022 05:16:27 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EA4A3F33E for ; Sat, 30 Jul 2022 02:16:26 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id i13so8272100edj.11 for ; Sat, 30 Jul 2022 02:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2ikzYAjzqfaF+a4GkobxDatu0soZrTXVKMloqR9b6tU=; b=ODVq1f1/LK9nGxTfjwXO4ssEzwk81G34edDpsOIHpHTuvnSmZevpPG/84UYDkXBv8U CLgbMgUZM8dS1bS1AyLYl9eEjgXp3UpwCxBos92t40mUCmBL3QUrK5RfTtU0vwM/AzDe gmM98LP8su2vSEdNxfnnqf5nFNmj1zOGilWCgwL/9zXisxjzzlMldbxrv42qo7OKN4nN 27y9j7VR8dYZ9tQS/gG1Z4hMSlz1BdNwI7wotbL/IkpHLM3nNYdF72nwzeGiuQZSM/0c J5AvjWooDFx+mBcmo+4oeRfdmWr2nWcGaUn/UAI5dUv0Ma/OVWJCC+ckBWsKfufFtS+7 xQUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2ikzYAjzqfaF+a4GkobxDatu0soZrTXVKMloqR9b6tU=; b=7e6xWZ+0uktcZvJ8rDokJtJP772gt6rYm1oGKGTyr0g7NV2EUgp5vQ/4ovIPBx5iJj eyZpBU8ICr5TEQSMvThnioGEM/kTQfkfz6j3w8Nev7LAzMeo8YmOAT1dkECIGjZaaHCy 7WFAY2NFSvm8grrZeWMeUF5Y28ISTbnaz/YdWYyqL65d35PRa+UNjcvyX9VNmm9ZSDhM pOvhoUAk6tgQh8sIaTz1H6Oexp2nTqGjDh7Dl0VuroHcGTAF9JpnuEpAdO8aKcdxtSaA yICeORgaB8Pve3p36tY6bXol0Tnuzs2LQxNu7szHxokHzq61qWfGIvJaAhmnw1rOJd5v uuVQ== X-Gm-Message-State: AJIora83+wTBzoOHBz06dnyUrTmS2F7SfzsqjfoCMxsxZw390b2ji6Zr f/BcYzvQ5iGK4Gaz/gbyV5I= X-Received: by 2002:a05:6402:40d2:b0:43c:5a4d:c3b4 with SMTP id z18-20020a05640240d200b0043c5a4dc3b4mr7329019edb.95.1659172585551; Sat, 30 Jul 2022 02:16:25 -0700 (PDT) Received: from jernej-laptop.localnet (194-152-27-124.dynamic.telemach.net. [194.152.27.124]) by smtp.gmail.com with ESMTPSA id p24-20020a17090653d800b0073045f26d41sm676395ejo.72.2022.07.30.02.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 02:16:25 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Martin Blumenstingl , Chen-Yu Tsai , Philipp Zabel , Jerome Brunet , Samuel Holland , Thomas Zimmermann , Daniel Vetter , Emma Anholt , David Airlie , Maarten Lankhorst , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Kevin Hilman , Neil Armstrong , Maxime Ripard , Maxime Ripard Cc: Maxime Ripard , linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Phil Elwell , Mateusz Kwiatkowski , linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Dave Stevenson , linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, Dom Cobley Subject: Re: [PATCH v1 31/35] drm/sun4i: tv: Add missing reset assertion Date: Sat, 30 Jul 2022 11:16:23 +0200 Message-ID: <1822091.tdWV9SEqCh@jernej-laptop> In-Reply-To: <20220728-rpi-analog-tv-properties-v1-31-3d53ae722097@cerno.tech> References: <20220728-rpi-analog-tv-properties-v1-0-3d53ae722097@cerno.tech> <20220728-rpi-analog-tv-properties-v1-31-3d53ae722097@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Dne petek, 29. julij 2022 ob 18:35:14 CEST je Maxime Ripard napisal(a): > The reset line is deasserted at bind, and asserted if we ever encounter an > error there. However, it's never deasserted in unbind which will lead to a s/deasserted/asserted/ Once fixed: Reviewed-by: Jernej Skrabec Best regards, Jernej > resource unbalance. > > Signed-off-by: Maxime Ripard > > diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c > b/drivers/gpu/drm/sun4i/sun4i_tv.c index ad6a3739bfa9..74ff5ad6a8b9 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_tv.c > +++ b/drivers/gpu/drm/sun4i/sun4i_tv.c > @@ -605,6 +605,7 @@ static void sun4i_tv_unbind(struct device *dev, struct > device *master, drm_connector_cleanup(&tv->connector); > drm_encoder_cleanup(&tv->encoder); > clk_disable_unprepare(tv->clk); > + reset_control_assert(tv->reset); > } > > static const struct component_ops sun4i_tv_ops = {