Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp841412iog; Wed, 29 Jun 2022 11:16:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ueaqW2toyN7MOgh63aA7PMyk4vJs2snBACLsrF4HblXkNcdCuUfsk0hxLmSuHQBMEjAMow X-Received: by 2002:a17:902:aa41:b0:168:8d12:540b with SMTP id c1-20020a170902aa4100b001688d12540bmr11773703plr.35.1656526600286; Wed, 29 Jun 2022 11:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656526600; cv=none; d=google.com; s=arc-20160816; b=YwanccwoALxYhIv1/EaV3lRnfU39ibmDvw6lMDjwTP4jB1YAYHwcBrQFrGFXECbqFu 1VdaPPU1Kp3mNTf2I5pxasueMNmqkmDbdKpR5kuAWCeeYu+DCrqqQHP69DBuPBYCSeNi wNPSqGwlbx0OW60B/8MbdVtTCJtlfRkCqpcAgTu2pflaQTB2Q1qCqE5cE+N1I9I0CSSS hd6LmxJ2lr4ejyhajXNC/+88hXD7vapZjw3ji/VQXKYI3BIFmljFC3qxRgPhiEGHOMye I9YFI1MVUJzZxm2fx1rLohHRto8niJt1M/tBHVyeglxoVNwPn9dhOfmZ0gyGQYdJEeRM SVVg== 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=DzOAMNLdQF+lhggmTo9ureVMvFbgR7MbeRD6xA099wQ=; b=V4BuVQRmiWRr+BejCqtbp9maKBeBcLkvJtlDOTOtilSgpZ+xS+BZTAxWeHHso311vL sA+UgXXD62PFCg6DtY8XnzCozPa0297lOByCFnPzRF+9IDP1w90FnsRk3n388Z8nJFJc CFCWohv5kHbfo/sSpPEZPNatiM5eiuVXy8Fxl3VcwpRcctaxWnwy4kypVCZ4U7yPde6b UEv5DXqOKoLezaAj35C2R6smny6gRd3R8xHKEAuWRTNOuVyMRCYaIcPdOTdr0ygkdNgG nFRrh2ft9KGdff93eYuhYLHs8nSVX+6GiYVJ7P1qvzugqNv4WNDHMUXAn3dc+v95f7t1 7qbA== 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 h191-20020a636cc8000000b0040de29f0800si3429213pgc.822.2022.06.29.11.16.26; Wed, 29 Jun 2022 11:16:40 -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 S231292AbiF2Rzr (ORCPT + 99 others); Wed, 29 Jun 2022 13:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbiF2Rzq (ORCPT ); Wed, 29 Jun 2022 13:55:46 -0400 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14AF323BD9; Wed, 29 Jun 2022 10:55:45 -0700 (PDT) Received: by mail-qv1-f49.google.com with SMTP id cs6so25971685qvb.6; Wed, 29 Jun 2022 10:55:45 -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=DzOAMNLdQF+lhggmTo9ureVMvFbgR7MbeRD6xA099wQ=; b=RQ5ve8rD2CSP+lq/zP7sX6+sMTfpHKydrqpsLR91hASgv48dmeXuSZrek2stgXVoaE Xz5deSr0sIg5ssWLmlbNRGsA7UG+n/iYx92UaEVTC6XPvOYko7ZS3GROItBwOFW7cpAk zY/bCsgOmn/Npnz6NL9QLeI3fbOxo/ykThUIFqd00jp0+z1Ozwm4Gmbyj9XRAiu26/xs YENaIsVaOrew+tY97KZ0L1Awelraewu97Vgh4gQED2mo/saYEof7d1mI0FXe5p+iNE/8 k3UdPSJYmFfVa+XGc6II+zrF3L5mya3p7NbHsiaV7/9KKRL3z1TVf+uk7I/eobNkTpQ8 TCSg== X-Gm-Message-State: AJIora+hWQxgWSCghZEI5vcyCrn1iljydO7pZRQ/kvtbHzP/+zrBi07S 4KGOUd6utEKjqReA/uHlh9fB2xv6CTLDTQ== X-Received: by 2002:ac8:7f46:0:b0:305:139:fcfb with SMTP id g6-20020ac87f46000000b003050139fcfbmr3643365qtk.648.1656525344078; Wed, 29 Jun 2022 10:55:44 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id u13-20020a05620a0c4d00b006a71398f06fsm14092019qki.32.2022.06.29.10.55.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 10:55:43 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id v38so18615854ybi.3; Wed, 29 Jun 2022 10:55:43 -0700 (PDT) X-Received: by 2002:a05:6902:905:b0:64a:2089:f487 with SMTP id bu5-20020a056902090500b0064a2089f487mr4890186ybb.202.1656525342858; Wed, 29 Jun 2022 10:55:42 -0700 (PDT) MIME-Version: 1.0 References: <2fd9b9e3f60fe555d9dcad499c90e3ec869aa96e.1656341824.git.geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 29 Jun 2022 19:55:31 +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 Wed, Jun 29, 2022 at 7:44 PM Krzysztof Kozlowski wrote: > 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? Unfortunately that is not as simple as it sounds, as this really depends on patch 4. I agree patches 1-3 could be moved later, if you think it is worthwhile. > Plus a fixes tag? It's been like that since forever. 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