Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp204617rdd; Tue, 9 Jan 2024 01:08:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQZCUcqwfH3m5JooWkz7ei18BsqndZ7hbLZj+XVKsFReciV5YtWrCQVHbsRrBfBng9i6bt X-Received: by 2002:a05:6871:750f:b0:204:2c51:99a9 with SMTP id ny15-20020a056871750f00b002042c5199a9mr6673943oac.72.1704791330924; Tue, 09 Jan 2024 01:08:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704791330; cv=none; d=google.com; s=arc-20160816; b=xyCbbnoAKEA/GLhty+N2Sc0g4HAIgBRXJ/n2lUAZEfxMD/6Hi0dMcNDdMXEhZBYg0E T78is7PD2nOXxwR/MXzyUalYCo7Ery/P/CDqolItXvpBQRJE7Qs2V/xXKaBv4qUclHCq xsledofv3XfC/6t/Teg99ENI8p+73XrvA0g5F0S+PaBGR+uJ0Dm9l+mrU9B6Oa1FctiL Gh6vdaoOnsY3M6NzTiVFWkyi6uEabRuv/+h6QGChOn/pMG+fu5vav6tPV6Fwhoi5roqi igZJ2PvOosW9p2GFNcT+c5IdjivIF6iS1UCq9MuhKx+aSr7CfaExZymEwwpykL+BVtj6 544w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=gtCrSZlSBDkIDJvzoZWE7jOWIkfQ+U8/frHWlfbIG48=; fh=2d8vdc1+sCdftT8rkNNFyFqvZmpTWu0xYwxsa2NPCMI=; b=OSYU+81TmvIXD35fB/kys/se6pfq/KrSkvJKVK0xfe0j49OnCWtHTBoYO+D0VsAEfV ALAT5Cg9te73T0rfZ446UwuyVhUHut9HplnsxLY/pQb7zDy7C+X/I3IxT/W2mZ/zaoRC xDtYTkI2xgC/QiHJJ7VJoUK92pHa7g5bUXX42mpqKBRFhZ/I8l7IpgKk6nXUOFkOLLr3 k1E1M1UHO2j64K448wBEBSE+6QeaaphxNhSSB2x+d2/0HA46RAj+mSOQ9w94Yt8yfuQ9 yo7TlUYV3gjrFn+VLoahwM3tahK2fwZFn9qGoOds5KeAT37twdZh5MqYCxTTSRJbQFla pjQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20632-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d70-20020a633649000000b005cdfef90ea6si1172115pga.336.2024.01.09.01.08.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 01:08:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20632-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D4D12867DB for ; Tue, 9 Jan 2024 09:08:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 435B32C865; Tue, 9 Jan 2024 09:08:16 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 893ED35887 for ; Tue, 9 Jan 2024 09:08:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rN85E-0007cY-31; Tue, 09 Jan 2024 10:07:40 +0100 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rN859-001R7l-RJ; Tue, 09 Jan 2024 10:07:35 +0100 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1rN859-0002H7-2R; Tue, 09 Jan 2024 10:07:35 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] gpu: drm: bridge: cadence: Add a driver and platform ops for StarFive JH7110 SoC From: Philipp Zabel To: Shengyang Chen , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, tomi.valkeinen@ideasonboard.com, r-ravikumar@ti.com, aford173@gmail.com, rdunlap@infradead.org, u.kleine-koenig@pengutronix.de, bbrezillon@kernel.org, changhuang.liang@starfivetech.com, keith.zhao@starfivetech.com, jack.zhu@starfivetech.com, linux-kernel@vger.kernel.org Date: Tue, 09 Jan 2024 10:07:35 +0100 In-Reply-To: <20240109072516.24328-3-shengyang.chen@starfivetech.com> References: <20240109072516.24328-1-shengyang.chen@starfivetech.com> <20240109072516.24328-3-shengyang.chen@starfivetech.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Di, 2024-01-09 at 15:25 +0800, Shengyang Chen wrote: > +static int cdns_dsi_get_reset(struct device *dev, struct cdns_dsi *dsi) > +{ > + dsi->dpi_rst =3D devm_reset_control_get(dev, "dpi"); > + if (IS_ERR(dsi->dpi_rst)) > + return PTR_ERR(dsi->dpi_rst); Please use devm_reset_control_get_exclusive() directly. Also, consider using devm_reset_control_bulk_get_exclusive() instead, to control "dpi"/"apb"/"txesc" resets together - if the hardware can handle deasserting in reversed order. > + > + dsi->apb_rst =3D devm_reset_control_get(dev, "apb"); > + if (IS_ERR(dsi->apb_rst)) > + return PTR_ERR(dsi->apb_rst); > + > + dsi->txesc_rst =3D devm_reset_control_get(dev, "txesc"); > + if (IS_ERR(dsi->txesc_rst)) > + return PTR_ERR(dsi->txesc_rst); > + > + dsi->txbytehs_rst =3D devm_reset_control_get(dev, "txbytehs"); > + if (IS_ERR(dsi->txbytehs_rst)) > + return PTR_ERR(dsi->txbytehs_rst); > + > + return 0; > +} regards Philipp