Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp355981iog; Thu, 30 Jun 2022 02:07:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1shxxSqeoy/58PZB5l9/N9ffdywkDth/LF8ANuksWupNmtA7EPWJih/GpbZhD1yBLmPpjYD X-Received: by 2002:a17:902:f34a:b0:16a:e2d:3e9 with SMTP id q10-20020a170902f34a00b0016a0e2d03e9mr13768089ple.95.1656580054050; Thu, 30 Jun 2022 02:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656580054; cv=none; d=google.com; s=arc-20160816; b=PFTe74vFL4e/t1byAi79ZMkhw+mu+Hr2XERzKZMDw0SZk7fDXQk76e4RvYFCR1qz5d xG+bAoqJSplEGPZcKDmJqiOEyTL5VVTBLih3t7gjSoXNfmkuxLLeUJwzQ1rI3sufQ3z3 3T6IRiNDKbz7uj0i65Hu5JlxqSyCEHqlnfX/hwhE7LGITP4ANan5Q+tpLF58pQmn9nEM UlcunW7d49v0+aueJ5cxGbixP0w6G847o3nlehW+RvqlsYGafnebyhvoMT+APl3lUD4I JkiBy3OGmqw8+01zQTAKIyn/vtclgDj7/9pkYuxrakclGyopFT1PllTfrt5EjCsPyvS2 jKrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KJ6oqzacpWT0tfg5DNbwZFGWq7BtF7yMtkVN7HxcDnk=; b=jk2ZC2XN9ZHib+AMmYMXkXWJwCtM/7N1B5MxMoxYo06hf4BbM9W4hLver1hFQZ/koa ZKtcBBBaYh5kpvZ0FRH3hWfxttAySynbZj9UOjWMZ3vSjMPEhYl0crOe2+VaEi5xg+Wd kga1xl6LDI8PWOh7rJr9a5zt9K78KDdiUNpMkdoQ5nvqMzuVXyCFIFf6FpWhNjhbF3za ZWYNX1/dw2fZ+B/Aie2pz//cFPcqAfZ4yLTJSpyNYjQqA/oEwky9okGaauSy38vhLXi9 WaB+9abnAEWzIlQYa3IILeImh39di2f9wvfz6zMuwcDbEEugUUtCO8xlLNM/ZlHxjEv/ EQWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tNO+oZo9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a056a000ccd00b0051078cc4fd5si1171827pfv.354.2022.06.30.02.07.21; Thu, 30 Jun 2022 02:07:34 -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; dkim=pass header.i=@linaro.org header.s=google header.b=tNO+oZo9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233730AbiF3Isz (ORCPT + 99 others); Thu, 30 Jun 2022 04:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbiF3Isv (ORCPT ); Thu, 30 Jun 2022 04:48:51 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB8CB40E67 for ; Thu, 30 Jun 2022 01:48:49 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id n8so11636617eda.0 for ; Thu, 30 Jun 2022 01:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=KJ6oqzacpWT0tfg5DNbwZFGWq7BtF7yMtkVN7HxcDnk=; b=tNO+oZo9shQdh1rhNWDOTosr5geu8ztqOhGSN7j0kUgWKRvrTDNpKMMQTxwugbtmoO eTQkFwTN5/tFn8QUJ9KoVI+ocrRCGUBL00/1JEOeHcl8PW0KwQv/rvIJe4EgJ9vbbNDq 3YCN25Rm7P4ptDfHHe/qjx2zazpEJbfRq1r/Ud0YyjKBppd4eBph+AtNEGkqt20bU3pB AHiJoIOTXky5f8d6vG5gO6foGmgLQTNzQ9HB77R0gNExx6L3GKaebwFGQY3ZatD3hVYa BSfnovPSQAsQ+vn+kI8/vwt0vdt/brsr8BuVk27z4bOXYjlhTu+e82O16agQGYg7qd0N nrtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=KJ6oqzacpWT0tfg5DNbwZFGWq7BtF7yMtkVN7HxcDnk=; b=vNnU5obcU8+pVptqCdyQFP3PXtFJUaLDbc0oCi92kVxTKsJZaA7gnEg15bTcXxArUK VpmEaQeEqfz9YKZIhKb5OYjlw8pTUdaOy6V7mi5c+i2DT0Eg8cPcuqfGySE21YZva5Zy ACsBeR3r3Cf6gdsqfYUc7tI/wZbpa8/FJU+zjY4FmRf+egVg9A8bHCCrvecbKPY5kOFt j/LAlet4olDzbvFr1CjurG5Nv0LFIsWEPHM5ahmFTC8e1OLn4go2wJhoR3Km2GtCwYVs DK9TF14gu1OPMlxe7HzpyNAvNTdDv4aasdAl+hQYX780k0IZw4tpovHBwm97ZcD0xuC8 GrFg== X-Gm-Message-State: AJIora8VYHwE1vfCK4OvpZ+hRSBX/UMB4GV0qfnJUjIChSvYTaQSbFAn zfiQa32Sl2bqYY9pw1g4+KAHUA== X-Received: by 2002:a05:6402:11d1:b0:435:d76d:f985 with SMTP id j17-20020a05640211d100b00435d76df985mr9900795edw.8.1656578928360; Thu, 30 Jun 2022 01:48:48 -0700 (PDT) Received: from [192.168.0.188] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id z4-20020a1709060f0400b00722f069fd40sm8714366eji.159.2022.06.30.01.48.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jun 2022 01:48:47 -0700 (PDT) Message-ID: Date: Thu, 30 Jun 2022 10:48:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 5/7] memory: renesas-rpc-if: Move resource acquisition to .probe() Content-Language: en-US To: Geert Uytterhoeven 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 References: <2fd9b9e3f60fe555d9dcad499c90e3ec869aa96e.1656341824.git.geert+renesas@glider.be> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > Note that that still precludes (easily) backporting s2ram support. But S2R is a feature so it won't be backported... Best regards, Krzysztof