Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4697629pxb; Tue, 5 Oct 2021 08:29:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx57eb5K9CnOm9BG1DhIlWbzdPSYyYn5/UvInEnlr6F+j1GYBmJbn5lF1yi8iEnph8yDDxJ X-Received: by 2002:a63:f050:: with SMTP id s16mr16018644pgj.258.1633447789380; Tue, 05 Oct 2021 08:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633447789; cv=none; d=google.com; s=arc-20160816; b=CjIyUZ3Lo6DjmlhQJzFfjlgIMVBEDjxTFrb90IZ3pc98ANvq9ag2VZ5XacqM0wcl9w lLUVpJpXBLJL7jafAl1WL9WGQR0LbJ4ZLmztYXJsx932FD7+lDYZarGXl0Je3robZqpo 2j78uDDl1yZObdsqcvdjBqy4TpnXuykGmRGMe0FeZgtBt+/yiwepCB1BZrOHJM7xOYMt PiHCp5Opydf299PJocZkoN+r4mrs8lFm1wt7HMTmZkjolZnxLcZEiWL/W19lGH/1jXv2 qpEkWFApRLDs+zVA+budoVEpqRyTKfsUiSTJS8VrPFDA9Od6LCiAq3rC/XXrezKLlqOJ KMxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=FGxM0m6YGDsMlNbNdB6JoL6JeLNFkPlp2uYBIY2Dz8o=; b=DnNjp745/1T4X8MLFmqO5+rgVQpmTXB3ia4VG/GgpjWYpISdmr6YObaD8HbdChgMAk NDW5UiQhTmDFcWAzIHjh1d72uVUffeydJsi0aTXsrWbswIDTvY+xL83/aHbWfexwfX30 vNHr3UVPXnzoEEHw1IRGnDU8emwPQxvzHl1lXwdjWb9rnby3QFmv63FR0+y4IIj40CVP 8HtqHEjGjD8ILvOnWpOA06c0NZwe4s4KxLuI92/InH32p8uSLq1S9e/PpK1ccEgiEEdZ RCIcuLlOPY5vkR2yucNvS/V8iFKwVAT+uzJpte0kaVg4xMXqepoZ/YXCjscgZAQIKCrY Ebqw== 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 j1si23327341plt.92.2021.10.05.08.29.36; Tue, 05 Oct 2021 08:29:49 -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 S229626AbhJEPa2 (ORCPT + 99 others); Tue, 5 Oct 2021 11:30:28 -0400 Received: from mail-ua1-f41.google.com ([209.85.222.41]:45650 "EHLO mail-ua1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232866AbhJEPa1 (ORCPT ); Tue, 5 Oct 2021 11:30:27 -0400 Received: by mail-ua1-f41.google.com with SMTP id 64so15147912uab.12; Tue, 05 Oct 2021 08:28:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FGxM0m6YGDsMlNbNdB6JoL6JeLNFkPlp2uYBIY2Dz8o=; b=35mspoO6Scpb5uQYZamxSjZZHZCBwhcg8k7hxBfc+Ngb8sFPZfDS52YLsk8i6Eofef kaviXy7E27RyTMSknC7HabhqyjwyFU5bayqPINsdHZsKb3va7+1o2n0imY9XLJ8zjo5o E4F6ch+I3tWBGY8Yc/7FPvPPKIpKltGBK7c5YCYLyuD7mNi2ou8H2gUUOIKbe6udOFBK VN9PTJDFAHA6NhmVMenny94QUNC4Xim5832JBdfCAr8egOdjJ28U6zErzYSZ32ZRgh6m DW7bkdxoxXOuzq0wSCM4Q6+dSDjNOAn4XkfXDHOqSi0qi8oXJ3TVQkPQJlp/sNUDWtTQ fXBQ== X-Gm-Message-State: AOAM531d2R+B/8GbIh1HCu6CbacLom0x5tHfubOfrKBkbGRh7Ff9OFVd dY+wL68M47R/9uhr8794gqQIGj/wxWlH1bhoVuQ= X-Received: by 2002:ab0:538a:: with SMTP id k10mr13154381uaa.14.1633447716455; Tue, 05 Oct 2021 08:28:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Tue, 5 Oct 2021 17:28:25 +0200 Message-ID: Subject: Re: [PATCH] memory: RENESAS_RPCIF should select RESET_CONTROLLER To: Krzysztof Kozlowski Cc: Lad Prabhakar , Wolfram Sang , Sergey Shtylyov , Philipp Zabel , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 5, 2021 at 5:23 PM Geert Uytterhoeven wrote: > 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. Oops, the latter is not true. reset_control_reset() returns 0 if CONFIG_RESET_CONTROLLER=n. > > 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 > -- Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds