Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp697196iog; Wed, 29 Jun 2022 08:26:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v2hEi+zRvVdmoF16xBHL7EyHt9XsB1S8/0Vm+xVnICkwvMvRURVHfrTvHXjlPchnTvTggX X-Received: by 2002:a05:6402:11d1:b0:435:d76d:f985 with SMTP id j17-20020a05640211d100b00435d76df985mr4923481edw.8.1656516399944; Wed, 29 Jun 2022 08:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656516399; cv=none; d=google.com; s=arc-20160816; b=lRDWEJrtJQEEeOSLZgv8QOIV+x19YEaf3m0KlebkHtbXzrvSiZUfvwAidTchLow62H pgR3gmfwe0RqR/uiIHj5yyRE45rowH3NYILPHvaJzuLWXey7ElVJOZo6BzCSZ6S947AH X1EjUlgcP8ni/6/R6hZJV0Oyblb6pv3IB6uMK6uddQcULEhmfyQUxnZrGGKhK/urtVoT N1DfY7/poiDuZO28jxPqU9BcoyosKZPqU6l1h9WD3ts+lWPihMCIxU3u4UVQfU4nBVTB wNTFzdmjfWzTg3974a4jHj5BA4h6RHPjN7IYQ/zA0Lez6Xl/WT1k7eU+BisZ9csDJtDc m/UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=FEsRVNwN1dkEUcGiLX1MMFceH2+jL7s57tZfsE6sK1A=; b=FidIuRcdhe3XgCLilhGOrL0HQWNNbPYtCKCaCLPwKZachBcvyIWWi4YPTJgzx64+bs c1eobP9ta0UmPl2N9mUICNjSEfWd9m/UbysJaaH7xxg1tHc1F4KAFcwfkB/A6A/RNFjQ EvkwstpIjvxHJ837wEqlr9g682L32jkqnIwEjbSId6S45FuZjA2o6mPV35cOkkY0vOtD yHIPmnaapjz1/tsz0LoJKF96+qgiW1VCTJyaS/FNtlJ2CldM13VUqv1d5y6oiPImRcGW xVCDzoDjI4xpICijNsC7VkQtWKivTYH8CvcHunEioWM+EIdZ88L4BQjC6xeMR+36geqf sGtg== 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 cq2-20020a056402220200b004315dd76796si18467111edb.482.2022.06.29.08.26.14; Wed, 29 Jun 2022 08:26:39 -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 S232833AbiF2PRL convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Jun 2022 11:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233315AbiF2PRI (ORCPT ); Wed, 29 Jun 2022 11:17:08 -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 6C6CD1012 for ; Wed, 29 Jun 2022 08:17:07 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6ZR4-0004v3-TM; Wed, 29 Jun 2022 17:16:58 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1o6ZR0-003QJs-IC; Wed, 29 Jun 2022 17:16:58 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1o6ZR3-000BbH-01; Wed, 29 Jun 2022 17:16:57 +0200 Message-ID: <094a0d4e1c1b40f51ce7bec42e410500265d7a6d.camel@pengutronix.de> Subject: Re: [PATCH RESEND v5 7/8] clk: baikal-t1: Add DDR/PCIe directly controlled resets support From: Philipp Zabel To: Serge Semin , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski Cc: Serge Semin , Alexey Malahov , Pavel Parkhomenko , Thomas Bogendoerfer , linux-clk@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Date: Wed, 29 Jun 2022 17:16:56 +0200 In-Reply-To: <20220624141853.7417-8-Sergey.Semin@baikalelectronics.ru> References: <20220624141853.7417-1-Sergey.Semin@baikalelectronics.ru> <20220624141853.7417-8-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 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.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 Serge, On Fr, 2022-06-24 at 17:18 +0300, Serge Semin wrote: > Aside with a set of the trigger-like resets Baikal-T1 CCU provides two > additional blocks with directly controlled reset signals. In particular it > concerns DDR full and initial resets and various PCIe sub-domains resets. > Let's add the direct reset assertion/de-assertion of the corresponding > flags support into the Baikal-T1 CCU driver then. It will be required at > least for the PCIe platform driver. Obviously the DDR controller isn't > supposed to be fully reset in the kernel, so the corresponding controls > are added just for the sake of the interface implementation completeness. > > Signed-off-by: Serge Semin This looks good to me, the issues with the previous patch still apply. [...] > +static int ccu_rst_set(struct reset_controller_dev *rcdev, > + unsigned long idx, bool high) > +{ > + struct ccu_rst *rst; > + > + rst = ccu_rst_get_desc(rcdev, idx); > + if (IS_ERR(rst)) { > + pr_err("Invalid reset index %lu specified\n", idx); > + return PTR_ERR(rst); > + } e.g. this should not be necessary. regards Philipp