From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E92DCCA47C for ; Wed, 29 Jun 2022 17:44:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbiF2RoQ (ORCPT ); Wed, 29 Jun 2022 13:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbiF2RoQ (ORCPT ); Wed, 29 Jun 2022 13:44:16 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB4634663 for ; Wed, 29 Jun 2022 10:44:14 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id eq6so23186799edb.6 for ; Wed, 29 Jun 2022 10:44:14 -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=tVekIMrtplwlYMH10GYN3NLEVF7rPzw2Ll0nVajDUj0=; b=w9vxn/UmjXGR/AxVPDa1AWAET4ZJSi/d7RKxJWbXb7NdzNnJmBooZ3j04DTGg2aRmv tLPrXK0sXmcc+VPM9SnLizG97ehS7Wgm5m2GgA5Y/E4F+mSUJXnfqgUkhNW1qbd9Vbuk 3Ku48VOLtWJW7RyymLVXW+QViJ949T9Cpv5uNHg8Ii5/eClbUPoeb/EK4c4PddVjOiOc lmCz+tWzOphiK7etLDCgy2KJd1B0za2hnkJ1Uis67labgAnMFEuqxFukByyYRGGnZeI/ EZx8HDGnCJdPxUiYOf3z4h9gyfvL/maNLCyHKmpGAIbAO0fCEmF0pKDKQjKy6BtB7Hlb aNZw== 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=tVekIMrtplwlYMH10GYN3NLEVF7rPzw2Ll0nVajDUj0=; b=ExDqhcRoq5MmgzDhF417aREC01ekNUsetxkHpxeNgA16vctFuCUzSQyJREqMAWps3E dpG//wp2lejxkryZP/kjvKz6bAB10KJCml+2mhRpYUy1Iz1E7TVVXwmnhARNVKGojSPw kNXfvz30/S35k7wDo7HE0wGlPtTIBeJvkV9UTy+eAxXRNFiWqO3BiHrydkC/K4gbyt3e 0/7B50RzPc1E4+Sr0ER7tRhgq23uTKGtyTedffSC9N5Mh95Pn2XDlxPl9DIY0gZ30NVE tnCMlbDAdpQCwfpLTempDqHuICBxhEfHuu34AZAoy4JFH+OY7nmaP3Fwx6hlU1uHGnWx /85w== X-Gm-Message-State: AJIora+hzR/rcKMRCfeuZUeuorW5j8VvYd1pkIBJL9OnPUAj7ONugcBX xX9+ww+4VJxbozqrxthZ7gT1Oi9e+Z1VVw== X-Google-Smtp-Source: AGRyM1ua6BwpBragxQEeeAoYqEOJa4FdY4s48iFIdywyOYpjX3jiRhNVEbP0A5P0HdINP+n6ybuMGw== X-Received: by 2002:a05:6402:847:b0:437:62bd:bbc0 with SMTP id b7-20020a056402084700b0043762bdbbc0mr5713257edz.285.1656524653206; Wed, 29 Jun 2022 10:44:13 -0700 (PDT) Received: from [192.168.0.187] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id j12-20020a1709062a0c00b00722e1bca239sm8074199eje.204.2022.06.29.10.44.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 10:44:12 -0700 (PDT) Message-ID: Date: Wed, 29 Jun 2022 19:44:11 +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 , Vignesh Raghavendra , Sergey Shtylyov , Wolfram Sang , Lad Prabhakar , Miquel Raynal , Richard Weinberger Cc: Mark Brown , linux-mtd@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <2fd9b9e3f60fe555d9dcad499c90e3ec869aa96e.1656341824.git.geert+renesas@glider.be> From: Krzysztof Kozlowski In-Reply-To: <2fd9b9e3f60fe555d9dcad499c90e3ec869aa96e.1656341824.git.geert+renesas@glider.be> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org On 27/06/2022 17:31, Geert Uytterhoeven wrote: > While the acquired resources are tied to the lifetime of the RPC-IF core > device (through the use of managed resource functions), the actual > resource acquisition is triggered from the HyperBus and SPI child > drivers. Due to this mismatch, unbinding and rebinding the child > drivers manually fails with -EBUSY: > > # echo rpc-if-hyperflash > /sys/bus/platform/drivers/rpc-if-hyperflash/unbind > # echo rpc-if-hyperflash > /sys/bus/platform/drivers/rpc-if-hyperflash/bind > rpc-if ee200000.spi: can't request region for resource [mem 0xee200000-0xee2001ff] > rpc-if-hyperflash: probe of rpc-if-hyperflash failed with error -16 > > Fix this by moving all resource acquisition to the core driver's probe > routine. > > Signed-off-by: Geert Uytterhoeven This looks like a fix, so how about putting it as first in the series, so backporting is easy/automatic? Plus a fixes tag? Best regards, Krzysztof