Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4693271pxb; Tue, 5 Oct 2021 08:24:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkraBJozCaE2amP45qIsrp1BW/vn6FbUpC0ZJBcrocxJL4c9XYEoYbzOS5e/OZ0T9s5p0D X-Received: by 2002:a62:15c3:0:b0:44c:667c:2731 with SMTP id 186-20020a6215c3000000b0044c667c2731mr9863660pfv.17.1633447452651; Tue, 05 Oct 2021 08:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633447452; cv=none; d=google.com; s=arc-20160816; b=MnZ6ufHHzXU16CMAHlozaN6xVKbalIq1qAQY4PMsJV26JgXi8XSSSn2V7IT4EOcE1A 8wmjBBwwXXiJonxKhFXgIk3IG5sxi0XjF1c1pZsfhqxcxe5nyOFElaNZS4cNgbY5a/VK v2lDzlvX01ZZIjog231Gj94j8QafAVEFvFqBWpYkvHzhqFNlYhRsNghlpVjzB0X/CWc+ hmWlEzQ9rWP47l/e5IMvpfDvUQXIiSVIaSZVMRRUGiHaMtpXncT1m87lbLiI6IUBB2hw xvXmK+IGtL8/gWL3Rgw9QFWdpEPKZSVZh+bAezZveEFObKkvwexOoNtbsVs/jQ+7LTRN D13A== 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 :message-id:date:subject:cc:to:from; bh=GVI9Kx9dcY/Axy5oobDgjiH1kZUMBm466xpXUQh25ec=; b=nthtIMWgYX0cSQc0y9XQPc9yjl6dq/f7cvVK3VyxaK7L5za1kTdkPGdkjrJouCXFZn f1f2R3WuH9ZuloRwp+zzMeDSTgpPa6RMqnZGDVfjVP6XSNgmGFw/ANoym9mGlqDI02LD aAM9D/CI6ROwi4WznIcpAv8aRTgm8Jw7vgVqXCYxa8ZcnXwej6e+bih5/phDbYojT6aH kvEjib/EKDtwdfedJ16zaUa7Lg+GvJCvlUUQvalMXYJ/39c7B49ooKYhpiiJG6ChgGY7 V9uzpBJu9qVRlhMI9EVPkICdzynCPs6mjE4mcNrMoZLZp6SNZWKacM2NWy6l0fj+uJPc eMjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d27si26872494pgd.98.2021.10.05.08.23.59; Tue, 05 Oct 2021 08:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235551AbhJEPZC (ORCPT + 99 others); Tue, 5 Oct 2021 11:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbhJEPZB (ORCPT ); Tue, 5 Oct 2021 11:25:01 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2558C061749 for ; Tue, 5 Oct 2021 08:23:10 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:9ca4:a53a:9ffa:e003]) by albert.telenet-ops.be with bizsmtp id 2FP72600e11933306FP7wH; Tue, 05 Oct 2021 17:23:08 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mXmHb-002HVs-Hj; Tue, 05 Oct 2021 17:23:07 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mXmHa-005kzp-ON; Tue, 05 Oct 2021 17:23:06 +0200 From: Geert Uytterhoeven To: Krzysztof Kozlowski , Lad Prabhakar , Wolfram Sang , Sergey Shtylyov Cc: Philipp Zabel , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] memory: RENESAS_RPCIF should select RESET_CONTROLLER Date: Tue, 5 Oct 2021 17:23:02 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Renesas RPC-IF driver calls devm_reset_control_get_exclusive(), which returns -ENOTSUPP if CONFIG_RESET_CONTROLLER is not enabled. Even if this error is ignored, later calls to reset_control_reset() will fail with a scary WARN_ON() backtrace. Signed-off-by: Geert Uytterhoeven --- drivers/memory/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig index 72c0df129d5c5065..547f956f6c29e9bd 100644 --- a/drivers/memory/Kconfig +++ b/drivers/memory/Kconfig @@ -210,6 +210,7 @@ config RENESAS_RPCIF tristate "Renesas RPC-IF driver" depends on ARCH_RENESAS || COMPILE_TEST select REGMAP_MMIO + select RESET_CONTROLLER help This supports Renesas R-Car Gen3 or RZ/G2 RPC-IF which provides either SPI host or HyperFlash. You'll have to select individual -- 2.25.1