Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2830435rwd; Mon, 15 May 2023 18:10:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44scCu9t3fj27aZUhsMdncAU6fLojCeePoiKjgE2TtB9rWoDxO6SQZbEIXPLZWdAeNo+lO X-Received: by 2002:a17:90a:ca96:b0:23b:38b2:f0bd with SMTP id y22-20020a17090aca9600b0023b38b2f0bdmr35318450pjt.15.1684199399833; Mon, 15 May 2023 18:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684199399; cv=none; d=google.com; s=arc-20160816; b=Kfok7EbkkqFQe5usJEkK4TOqF5nLMYX1MS15Gt3grR/Qt1EqvAwZIUOT3U6f8YheNO nkKTqkHdWFuDp8Df42fm/sbneedCRHJlxuNkSx4jH92vUy7maU6w10kaLHCxhxzc7fH2 YKHb+r998MXLDWetu9V8ab7KuPSpXLvrzMoV6ZXdY4TLpC9CSvVNxQqc7cLB0RZB5U2y WfvzH7SY85LkhH0qybgpTxtV3UsEc82P8ix8MGFXbiI0P70aFqoHss52ObNCSslUIA/J ZqQsWGjgxDLlVgIQcgVNzsTevlrCiZsBLjG7LCwfVG1WLknu8Ibx100E6fAFOoT0Q7tv FJwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=XAuk7B1taEs9N4Mg12aLTFlBQ8r4s8Fs/egqJZWOK7E=; b=RhZD+3pIFqCrq+1I4pGy8cn8cZo7C3MeuWjZ0xeJ3B/3myDS/gXh6DDDc7a2H1Zmef lh8onnr49LWGBrv6TJiuLVNj79ux/V448Di4DtaiAgFmm5odjXe9kaJlQqQW4m4ZhiQl Ab0bpjuGfuPwurGX6c9rfFiyDscn4decsWnsViAix0TgZ+/QeBivluPT8I5KfyoAF2WV ORyG4GYnEdR2GFFlOfMrkzx4G7sLjvepL8q/SB3BA019ucbi+USeE25KoLtRwPlg/NzR xXngrb/1U5GpetQhLze0s/A+rcKDPwtqD4fGnIwaXMbgC+/bo3wm2K2UY1F3CvqIW9nd Di6g== 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 u187-20020a6379c4000000b005034a5a0a58si16596864pgc.434.2023.05.15.18.09.47; Mon, 15 May 2023 18:09:59 -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 S245715AbjEPArx (ORCPT + 99 others); Mon, 15 May 2023 20:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjEPArv (ORCPT ); Mon, 15 May 2023 20:47:51 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E339630FA; Mon, 15 May 2023 17:47:49 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 391377FFB; Tue, 16 May 2023 08:47:47 +0800 (CST) Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 16 May 2023 08:47:47 +0800 Received: from [192.168.60.149] (180.164.60.184) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 16 May 2023 08:47:46 +0800 Message-ID: <62d1ca89-7fe2-5435-c5c6-9158c58cb97e@starfivetech.com> Date: Tue, 16 May 2023 08:47:46 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 3/5] media: cadence: Add operation on reset Content-Language: en-US To: Philipp Zabel CC: Mauro Carvalho Chehab , Maxime Ripard , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart , , , , References: <20230512102637.50917-1-jack.zhu@starfivetech.com> <20230512102637.50917-4-jack.zhu@starfivetech.com> <20230515144245.GA29284@pengutronix.de> From: Jack Zhu In-Reply-To: <20230515144245.GA29284@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [180.164.60.184] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Philipp, Thank you for your review! On 2023/5/15 22:42, Philipp Zabel wrote: > 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"? Yes, will fix it. > >> + 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"? > Yes, will fix it. >> + 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"? > Yes, will fix it. regards Jack > regards > Philipp