Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2149660rwd; Mon, 15 May 2023 07:56:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5J4d7hbcCquw3l6cH7HYF32HF1S+zxUrgNZEQ4jvTMgO4rVV6FkNKRYgyogh+CtNJsF+p+ X-Received: by 2002:a05:6a21:6da1:b0:101:62c7:9db1 with SMTP id wl33-20020a056a216da100b0010162c79db1mr31019016pzb.55.1684162585014; Mon, 15 May 2023 07:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684162584; cv=none; d=google.com; s=arc-20160816; b=sZg7Umaz1Ip1F2YbYavZvN2V2ROSosru84BaOQPZo9q6xJHXfpLIDuabr3t8uSj1ym Yna1oSjR9JlURSLZrFGgCSyA62zq7pJhnG+uoWfc+cwgUlKdl8HzvoWOAMuiuzJLJaPB rPeAnhcHDj09UGBJtf2hnVgHFCD5G7cEJ0MRdbUVPlp96cBkWka+ADXkaAr8FkwslvDP vNWhMxW7ZsbkPeRKAZOZPqP8EYuW0/nNOoDCa6tC9Oi5csvkbcqEPloLw0/sRbBOeT8i eWUrGakLg7o3TcJFxRzCeT6cgNaFI9B5saxrQya4Exhb46Uch0jkQw3gUvPrvUAfwQDj tCqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yOeBM2v4Etecce+/sOhiXeAvHVfGSO4NlKkKx6v1Zd8=; b=AEsY2Z1SJppVGS1Q97TFSyklEh58fj2m1iKwLMlEQkwvBhkhfcq1fJqmkHe9TYkfTS ThA8DGj+me8hE2g43LzsXhKuhzWlJasDWIZ//Irm4Q97DQASEUiInmQhurYEtbtM95n2 sk0GqgAjqYvPtoATsR36syznZZ3/P34E2O7AB42UntkqXQSzjMO2ZsSpPwWgeKQX7tSj qlgCeIyOkRV74RyqWYf11MSfFZ2M5L5OzCm4J7h0SCpuPHonccZTKGhdhK00tMFypvC0 afzl79NZLJXfnIGkutvty2UyFl9KpnLdJxF2lLwC2YyDJwn2fp4F/he6sZ3DBUungtpJ MLBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a637310000000b0052c62c3e1acsi15053956pgc.441.2023.05.15.07.56.12; Mon, 15 May 2023 07:56:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238903AbjEOOne (ORCPT + 99 others); Mon, 15 May 2023 10:43:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241859AbjEOOnO (ORCPT ); Mon, 15 May 2023 10:43:14 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48BC3173E for ; Mon, 15 May 2023 07:43:10 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pyZPU-0001LS-4g; Mon, 15 May 2023 16:42:48 +0200 Received: from pza by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pyZPR-0007uO-70; Mon, 15 May 2023 16:42:45 +0200 Date: Mon, 15 May 2023 16:42:45 +0200 From: Philipp Zabel To: Jack Zhu Cc: Mauro Carvalho Chehab , Maxime Ripard , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, changhuang.liang@starfivetech.com Subject: Re: [PATCH v1 3/5] media: cadence: Add operation on reset Message-ID: <20230515144245.GA29284@pengutronix.de> References: <20230512102637.50917-1-jack.zhu@starfivetech.com> <20230512102637.50917-4-jack.zhu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512102637.50917-4-jack.zhu@starfivetech.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: pza@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Jack, On Fri, May 12, 2023 at 06:26:35PM +0800, Jack Zhu wrote: [...] > @@ -299,6 +312,16 @@ static int csi2rx_get_resources(struct csi2rx_priv *csi2rx, > return PTR_ERR(csi2rx->p_clk); > } > > + csi2rx->sys_rst = devm_reset_control_get_optional_exclusive(&pdev->dev, > + "sys_rst"); This doesn't match the bindings documented in patch 2. Should this be "sys"? > + if (IS_ERR(csi2rx->sys_rst)) > + return PTR_ERR(csi2rx->sys_rst); > + > + csi2rx->p_rst = devm_reset_control_get_optional_exclusive(&pdev->dev, > + "p_rst"); This doesn't match the bindings documented in patch 2. Should this be "reg_bank"? > + if (IS_ERR(csi2rx->p_rst)) > + return PTR_ERR(csi2rx->p_rst); > + > csi2rx->dphy = devm_phy_optional_get(&pdev->dev, "dphy"); > if (IS_ERR(csi2rx->dphy)) { > dev_err(&pdev->dev, "Couldn't get external D-PHY\n"); > @@ -349,14 +372,21 @@ static int csi2rx_get_resources(struct csi2rx_priv *csi2rx, > } > > for (i = 0; i < csi2rx->max_streams; i++) { > - char clk_name[16]; > + char name[16]; > > - snprintf(clk_name, sizeof(clk_name), "pixel_if%u_clk", i); > - csi2rx->pixel_clk[i] = devm_clk_get(&pdev->dev, clk_name); > + snprintf(name, sizeof(name), "pixel_if%u_clk", i); > + csi2rx->pixel_clk[i] = devm_clk_get(&pdev->dev, name); > if (IS_ERR(csi2rx->pixel_clk[i])) { > - dev_err(&pdev->dev, "Couldn't get clock %s\n", clk_name); > + dev_err(&pdev->dev, "Couldn't get clock %s\n", name); > return PTR_ERR(csi2rx->pixel_clk[i]); > } > + > + snprintf(name, sizeof(name), "pixel_if%u_rst", i); This doesn't match the bindings documented in patch 2. Should this be "pixel_if%u"? regards Philipp