Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp394994iog; Thu, 30 Jun 2022 02:58:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uG+1JQnem3i40gGHwhmzzWet4x1NlOSjvpBixwxBYEg7gTMsUnm8xYgAoIzpQdPWbn1ts3 X-Received: by 2002:a17:902:f683:b0:16a:6456:5369 with SMTP id l3-20020a170902f68300b0016a64565369mr13451074plg.136.1656583085497; Thu, 30 Jun 2022 02:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656583085; cv=none; d=google.com; s=arc-20160816; b=njtdNZLJFrgWDxE8Mwlc93ic9fPofRP3FpnxHRvaCUzLZ0Bk+OSexuPbS/GZaPwxjK FQZS/zLJfVV2urH5Lxcl78cUFWOMeOVmSac0sytnMpoVMt0N+beQJKfpFttu968c0u6c wSrjf2ldZ0lC9W3XkgNEmLX6XXCeTuQZx4WqacLlm8uRYPlKoYzDDgxcxSsBwOTROnPf etA14cjNauhK7ErK+HJbhF5sL1zfY85FG2RWsUVz7hXBGP1Zbp3bBq/j5D6J/uGibrM6 QKOG0Gnn/Jawij4GdnQyMNfCIEIySjQE0YrDQqz+6oOcdfDW4vNuU4HRCMGaOCBrxt7g 8Z+g== 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=E9Vssd5sS4spcwdMP9Swa2WTwEcZk2KwnOex4FXzpQQ=; b=qQuWXs0lz5vYjx5KSvF472ehmbFqZ1KWtVPREU2Q/Q2Pzpz9e4PYjI5n4neaXtaNVe XCh/l1C2D0U5BFxYX+ZORZJguGDfUlP/nkiVSddgdkgpRlTO8TuH1uh22pWf72q8ULOR QcqtjFgFfa4QsOZdw2FCr0a9VlDZNaZQ+Gka6d4vEBVo6IhHpjQTQ9HBXFgrRygYG54B 4UI9BFBB1BGe45wCnMEHcwvWeeJBZs+6UCOfJQAMVw+/mrehtasIm4pdSu+cJPltNj4Q 8lSaG6r4mJjrZnDhbgLxi0HOPs6JX91SlkEoaQai4TXXi+d7DbQgGHTIBbOG9Jui/k2H it+Q== 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 y20-20020a1709027c9400b00159071eb8f6si22877731pll.502.2022.06.30.02.57.53; Thu, 30 Jun 2022 02:58:05 -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 S234184AbiF3JRg (ORCPT + 99 others); Thu, 30 Jun 2022 05:17:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234247AbiF3JQ4 (ORCPT ); Thu, 30 Jun 2022 05:16:56 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A147A248DC; Thu, 30 Jun 2022 02:15:47 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id c137so13952945qkg.5; Thu, 30 Jun 2022 02:15:47 -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=E9Vssd5sS4spcwdMP9Swa2WTwEcZk2KwnOex4FXzpQQ=; b=5A73qbb7M2HWdUOpVTFz1MxrxR0zILLX93wQTFnDa3K+a5kIO1XXBFFCAbteNUuExl UqLaQ/uwl0wVXT8pAUX7ZrdwHtUHeds5MA+xqS6UDteonpryxo7YxLzebcGy6336FZQc SiLwE2aOu7Uhz9umTksdVNMFwG2UktqRqMlBQzQoTEQhtRE0D5q7kYpVjwUF/2vvjpad SxWqJfVmm4o2a3xYvI4CLaVIVMRPpNwmBtZrkevaNXZV5fuTaAVd2sZZbkc5XHmVGivq AWhDEdwdKgpKYv3V0fc+lZXIbFeO4/VnrxjW0vRo6g7iRXorioPh+6O+9MpKwP+RGFUd XSYg== X-Gm-Message-State: AJIora8oh8dEi2eHL4DGsT6/SmtLmNoCEkE9lYdiscSDjnSwzjalUzWH lk5fWAXzf85iJtzUFahOkuC7sw/od19aKQ== X-Received: by 2002:a37:5383:0:b0:6af:373c:ebfb with SMTP id h125-20020a375383000000b006af373cebfbmr5436369qkb.475.1656580546377; Thu, 30 Jun 2022 02:15:46 -0700 (PDT) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com. [209.85.219.174]) by smtp.gmail.com with ESMTPSA id o16-20020a05620a2a1000b006a68fdc2d18sm10996020qkp.130.2022.06.30.02.15.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jun 2022 02:15:45 -0700 (PDT) Received: by mail-yb1-f174.google.com with SMTP id d5so32641787yba.5; Thu, 30 Jun 2022 02:15:45 -0700 (PDT) X-Received: by 2002:a05:6902:120e:b0:634:6f29:6b84 with SMTP id s14-20020a056902120e00b006346f296b84mr8111243ybu.604.1656580545430; Thu, 30 Jun 2022 02:15:45 -0700 (PDT) MIME-Version: 1.0 References: <2fd9b9e3f60fe555d9dcad499c90e3ec869aa96e.1656341824.git.geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 30 Jun 2022 11:15:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/7] memory: renesas-rpc-if: Move resource acquisition to .probe() To: Krzysztof Kozlowski Cc: Vignesh Raghavendra , Sergey Shtylyov , Wolfram Sang , Lad Prabhakar , Miquel Raynal , Richard Weinberger , Mark Brown , MTD Maling List , Linux-Renesas , linux-spi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Krzysztof, On Thu, Jun 30, 2022 at 10:48 AM Krzysztof Kozlowski wrote: > On 29/06/2022 20:48, Geert Uytterhoeven wrote: > >> You sure? Except rebasing I don't see that. rpcif_sw_init() received the > >> rpcif so it had access to all fields. > > > > Yes I am, don't be misguided by the name of the local variable. > > The rpcif structure is allocated by the HF or SPI child driver, > > and thus not available in the RPC core driver's .probe() function. > > The rpc_priv structure (as of patch 4) is allocated by the RPC core driver. > > > >>> I agree patches 1-3 could be moved later, if you think it is worthwhile. > >> > >> This would not be enough, it has to be first patch to be backportable. > > > > I can make it second? ;-) > > Why? The point is that this commit should have Fixes or Cc-stable tag. > If you make it depending on other non-backportable commit, stable folks > cannot pull it automatically. Because the current driver structure does not allow us to fix the problem in a simple way. Hence the need for patch 4 first. > > Note that that still precludes (easily) backporting s2ram support. > > But S2R is a feature so it won't be backported... Working rebind is a feature, too? Actually non-working s2ram is worse, as it returns corrupted data (haven't dared to try writing after s2ram yet ;-), while non-working rebind means you just cannot access the device anymore. But note there are still issues with s2ram... 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