Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5922867rdb; Thu, 14 Dec 2023 03:46:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbOsSd4P4fJSg3Fw4/GtJI0Ut21Ce5dQ6kSqZMGHRJOvZvdUix5GqjhBhAeU+rQbQVmm19 X-Received: by 2002:a05:6a20:158b:b0:190:1246:7d23 with SMTP id h11-20020a056a20158b00b0019012467d23mr12800552pzj.55.1702554414774; Thu, 14 Dec 2023 03:46:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702554414; cv=none; d=google.com; s=arc-20160816; b=bKrah6klTIkIr17x0pVsTVVLulRbeunrm7RLwRVxTN3L7Wxfnq21zQb39O8aRKKfIE 68PTnoKhw49wjlZftO4Jpr1SQ88x+dThEb1O17Uqy727W7LIHZQem7WNcSeVJwVqJTSL u+5kWM6RFo5nKFAhpDSUK5kMtYLXWXLLEOMo7z3nGWQAcQ+CeLFZdPnTny6S5vLX+TGf 5OYTLfh07WnrmuP87umXOuz56/F0JfWJjEjlAFGdMoZyVRjC/Lt6bnglLBU/RkkzsREm lVM3SXFMi4IXjs0wIS8vzYmAzn0o4uNvx7cZo3vRW9dh1SoBS68LidfIF2IANZmT/zM7 rE9A== 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=YimeFaEHAC3lIu4QGMGIH0XFkFOK3pB7g8Rtk8OXULw=; fh=JRNH3R6BkbckLgmyv72Fq6g69IcAiTiL2Sp+o8fsz+8=; b=XQ2gXLNocNq9f5zv+4M/RBuVJR9PJuT5liXAgpiv72X5/3Au2cohB7iRWRxpNRBt8H e4nKK6UTmOp5JJhZ78Nb8GUYbrMOfNVDRRQuBw1VJXRzDzmrZQhXPTqqgfEqr1hQ/HWZ uBCBWDTPKMm/83r0lRYNOKuX+ftfkp+DVDsayJLl20JNDAXbqdwVd5ccl+rE2BB2g7px cQ/GrQ9qji3CsBWWLzQ6Gf2KSrVSemCTq/LIL9BElsWWoas+BLMs496z5ZkPxQCPbt+t VCL1f0u71CwXQotRoClb47rHyCCEE7UowBFenvyKuoKRr6AxiEx6shk5BHPpo/gUzXVg fGjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=NVaV6MdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b15-20020a65668f000000b005a9debd7854si11049676pgw.828.2023.12.14.03.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:46:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=NVaV6MdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1CA858106F77; Thu, 14 Dec 2023 03:46:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444127AbjLNLqa (ORCPT + 99 others); Thu, 14 Dec 2023 06:46:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444114AbjLNLqT (ORCPT ); Thu, 14 Dec 2023 06:46:19 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D9312C for ; Thu, 14 Dec 2023 03:46:24 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-55193d5e8cdso3483636a12.1 for ; Thu, 14 Dec 2023 03:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1702554383; x=1703159183; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YimeFaEHAC3lIu4QGMGIH0XFkFOK3pB7g8Rtk8OXULw=; b=NVaV6MdFFn44vQOJ+T5Ea3KVQg2gyfSQXRtVBG80811Bw1y0QPFHPnbE4xxMd+RmZU ShxVe3PU8hmFyrjsBHGkZGl9MSKMm69RyYy0apLcy6a1d/bTymZGSqOPk3xjWv4vCduE 2NPAi35pRpgZu49R0TkEIcgE7u29CEj/sDijwTHMbMBU47gGANB4NDekfWi5fh2jGKPr EpamgjlewSiqBb/ttqQUdgoB8sX4bze6b7gj0qOWzI4wR7bAat6hkDyZQQm4OhNspXFz cRIF11Ide+Z/p0WaZ4taEohoG8LPWitYv3Xd9k/BJyE5RYsmKykNZkZJIKQPtTdJnM3I mu3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702554383; x=1703159183; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YimeFaEHAC3lIu4QGMGIH0XFkFOK3pB7g8Rtk8OXULw=; b=VpCBNerHOqgXlpp+0PM4LmnKizI11RdCLVm00z6RZpGhF8b/0KYYs0ULLqB6IvMkZ8 IdbaH1OiJrt9kXeAUBMQ3Hy1EYXATBCMT2fQm4d1nGsCT81Q3eYJaqDnX+ALHdsgQDhb EQu0c+PfOWOnhIvh/h7LTkqurFUVfE3RVE4TlZoFqk2Si/Rebe7ZRR02sjSzDxAerQL1 REqE9EcnGul1Droi2lp+CV7kUC7wn/IuP4q9yC7IcD9e4NJqiMlcTl8pH/uRN5Vh1Pad sPbuXwL8vN+kovGzbDFTh5EEvXKfyAOa5/EDGreqdjBdn9OrRCSqMicETIeuk46IEbdg 5j3g== X-Gm-Message-State: AOJu0YzYdbASuD/2wSfCSIJk/8VXW44PyJoVSV3NVp7XpkAO+RuiEHMM HztpNsgpL6CFe7TDLgmemi6I3A== X-Received: by 2002:a17:907:2955:b0:a02:8b23:895d with SMTP id et21-20020a170907295500b00a028b23895dmr3746075ejc.35.1702554383237; Thu, 14 Dec 2023 03:46:23 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.103]) by smtp.gmail.com with ESMTPSA id ll9-20020a170907190900b00a1da2f7c1d8sm9240877ejc.77.2023.12.14.03.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:46:22 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, p.zabel@pengutronix.de, yoshihiro.shimoda.uh@renesas.com, wsa+renesas@sang-engineering.com, geert+renesas@glider.be Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea Subject: [PATCH net-next v2 03/21] net: ravb: Make reset controller support mandatory Date: Thu, 14 Dec 2023 13:45:42 +0200 Message-Id: <20231214114600.2451162-4-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231214114600.2451162-1-claudiu.beznea.uj@bp.renesas.com> References: <20231214114600.2451162-1-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:46:52 -0800 (PST) From: Claudiu Beznea On the RZ/G3S SoC the reset controller is mandatory for the IP to work. The device tree binding documentation for the ravb driver specifies that the resets are mandatory. Based on this, make the resets mandatory also in driver for all ravb devices. Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov Reviewed-by: Geert Uytterhoeven --- Changes in v2: - collected tags drivers/net/ethernet/renesas/ravb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index aa5e9b27ed31..b4d5a14ac4e5 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -2645,7 +2645,7 @@ static int ravb_probe(struct platform_device *pdev) return -EINVAL; } - rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL); + rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); if (IS_ERR(rstc)) return dev_err_probe(&pdev->dev, PTR_ERR(rstc), "failed to get cpg reset\n"); -- 2.39.2