Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1457375rdh; Fri, 24 Nov 2023 13:16:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHM80q8gGOlVSf0P05n8WKXxGE4xXXHd53bKZRbaljvx/fTuUrOt6m834WdP2yyTy/gFHSe X-Received: by 2002:a17:903:2311:b0:1cc:32df:8eb5 with SMTP id d17-20020a170903231100b001cc32df8eb5mr4667128plh.6.1700860577141; Fri, 24 Nov 2023 13:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700860577; cv=none; d=google.com; s=arc-20160816; b=FsUdAe6jiTT4vU4Gc7puOk8GvDy4I38ovUMMQ8oul+pd8IdYuAs8GQTX7HRLd/Wbcb KuCB/WXqFFxMCdvjDOugjaLJevN+mNFDdau7FsIk1KfgtQsEf6bCWFquqI/1WcmQ8soK 3bJ1jcXTb0O1DOu5uoXalowTLI6HrJ+r6qdyoAPrMjOsj+PsELpLzwkOMVgk/tzFZPQy wTMyft6BjiZcu7bCFf7OKPRMCXu8ajVNal1igYnF0tYUWwqydFr0MCvpx2rVc4+bjUXu /ZNR4PDRX6JEXJeDswMx4AS0MADPdvLH0XQ3FqJzEiuqhMJKvl+coMatIMVCg8sk3G57 Xnuw== 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=JnubXRxqwunb9d9wAijOwoMF4ml5sMiS99lc6deFk3g=; fh=nGBoZt4+kP3+rfkGrTC/iVeVVkp7LZlm3MgVwF0znI0=; b=P80nBFJMRcPAGK35mrFURlF6u0jSUfWl69u5olNjB2dN5Z3pzv3rTYtJu/t24ChTpV gqM9o4izxD6ctDQ5btdM97KJzBsL4p4LlvslJtQ16vmw0asLK/4NS/hMI+K3WIcqqsKh 1FmKs9iICkk1QQ+0vDO3CAdO3MdCc6ayIzvax7TvqGYCFdBxepXQMgy0DsiiRjYUUEgx +uKMhzgfmK128CA3lYVrtSuykBzzyf127ngk/NsozeTF1aU90KcMmD4hSQq6DyV8siQV 4NWela1la3Qgpzq98pE63GukwDZvqnLgKcBNnmdzGXUsGOVXRWziNCr3hHbhozf0CRXz vYNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=kDjgvOws; 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 f15-20020a170902ce8f00b001cfaf05da38si967704plg.58.2023.11.24.13.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 13:16:17 -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=kDjgvOws; 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 3D15F80A0560; Mon, 20 Nov 2023 00:48:14 -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 S232679AbjKTIrG (ORCPT + 99 others); Mon, 20 Nov 2023 03:47:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbjKTIqy (ORCPT ); Mon, 20 Nov 2023 03:46:54 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B855B10C2 for ; Mon, 20 Nov 2023 00:46:40 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4084095722aso15794415e9.1 for ; Mon, 20 Nov 2023 00:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1700469998; x=1701074798; 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=JnubXRxqwunb9d9wAijOwoMF4ml5sMiS99lc6deFk3g=; b=kDjgvOwsGrktkE6c+4SJ7VsHqDJ5DFCbTuJwiiMqs/PQWj6VgIf2NTgz1Ma+IsMVdo qkIqBM95A7M3eSW+/NB4dfMErnpCwuK5OU3/cEUIQQk4blNSArVLAFA/0fyu2ky1O5hh RTVgN+x0nthlUWB5nkH+eB5JDaGCVBeVgV5GebEH15NWuxywUfrTpkcplCf+X+mKWpvG s16cV5JgkUkrw3qO1nr5fMNRkg1ILPzRyPzxzLLnYUz5JgOwLCOpIZZKmhALcSUG2AmJ acJV7Y42jlCY8Om8VsxoTZmSr4zHkIduE9W/hqABNxUZOFU0sr3vHvv1n9gLx0tiYO04 P8zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700469998; x=1701074798; 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=JnubXRxqwunb9d9wAijOwoMF4ml5sMiS99lc6deFk3g=; b=tcJClvIp78YIh45umwHHyYRdtFgI4FMU1rWtRelMpgEoIe/AWVvvKXRHeGpY09hHOO B24hH2x2oLJfDtaHiauQIGN7HslxxDa7pVnr4OIQw3oSs68l9JaYHHQrp3/tfU186gaW 1hj9+YSmDFIu0uC6kTyTtcnVtXRP0aNFxSKlPyMb5oYmhzguOr/8shZ8yXGjtdImvYaM 5lzbDyxI8WQxfBRcwTEe5ObXu2F3pKt6bXnbwLh4O/o/ioo7stjl5/ca2gjVOOS8gnNk M1RzxevY4YTLGVPWgQC/tyQmcT6gouNXL5zpw2QCWk0wMzPL+1SqT8WKQNoYoaPK7zJ6 IKnA== X-Gm-Message-State: AOJu0YzPCaRi6IhzopKEsXA8h9FtoXy+5jAi4HxLTBrbJ7ljNgHjLnpX 9sninAGAa3BwBlFLMSvFI6NFeg== X-Received: by 2002:a5d:64c6:0:b0:332:c527:66e8 with SMTP id f6-20020a5d64c6000000b00332c52766e8mr1784413wri.7.1700469998154; Mon, 20 Nov 2023 00:46:38 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.183]) by smtp.gmail.com with ESMTPSA id b8-20020a5d45c8000000b003142e438e8csm10435267wrs.26.2023.11.20.00.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 00:46:37 -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, p.zabel@pengutronix.de, yoshihiro.shimoda.uh@renesas.com, geert+renesas@glider.be, wsa+renesas@sang-engineering.com, biju.das.jz@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com, sergei.shtylyov@cogentembedded.com, mitsuhiro.kimura.kc@renesas.com, masaru.nagai.vx@renesas.com Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea Subject: [PATCH 09/13] net: ravb: Make reset controller support mandatory Date: Mon, 20 Nov 2023 10:46:02 +0200 Message-Id: <20231120084606.4083194-10-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120084606.4083194-1-claudiu.beznea.uj@bp.renesas.com> References: <20231120084606.4083194-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]); Mon, 20 Nov 2023 00:48:14 -0800 (PST) From: Claudiu Beznea On RZ/G3S SoC the reset controller is mandatory for the IP to work. The device tree binding documentation for 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 --- 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 ddd8cd2c0f89..8874c48604c0 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -2627,7 +2627,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