Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4862315pjb; Mon, 27 Jul 2020 07:06:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8qNdpuoeiXuwucErYIVkNoBjOyMOuMi6y/T8izHlHo2RteWPL/Hu6Ti3Qrt0smqt8W+zS X-Received: by 2002:a17:906:b353:: with SMTP id cd19mr12704598ejb.395.1595858764061; Mon, 27 Jul 2020 07:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595858764; cv=none; d=google.com; s=arc-20160816; b=xTJhkvY+VoeS8hrT3GwDl9bWQ1D+G4dZ3Qm9FK/mMHksIol4l2Vr65Y7w/TbLsyglf ibYXQUU5ktp7UuTpEPseOvrb08aBF5GXSl/LLZZhz/FBjFaNVhmUKdpO8yTJVKroGBeC sa27GX0UfbFufulkU4bTV9Qu5RzCzobEqLcKQANu39pxb0dslP3yVntFDMb3zWxWcEEG K6A5gONITsD9yUmNaVj/D1ZhZ+MwJRdvb1jlkXjeWJYHeKC3kvH6RuSxxuOHMoMC5gK+ s3c2oiqcKO0MnPHaS0cF87WTS/7yVAYMzHcktktbLYSUKGCdVEm4bmk2gWO56FRg6Xvy nbyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zOqkerDrdn9vlD/gwQA8/RReYXl1a8hHd175h8KJrac=; b=he9MNQ00cGddt1I55jp5gL7b7d+5aQwTxnJt4ytGmoj03ebdUmv4KJtg78FQkdoQEa jJ9n74Ylps6HTd66N9Igbiw2hb5LMZ1Z2b/oo1UcTus6ehBUV35Ln76mIc90DcTkXqcX isiMXDrm7e/d55DcGWDjeRXMfPdeX088MTYbin8zcXwKjeihYG5Wc5E9cXkuK02Jh8p9 lW4/nE8pPJBqc1wLHBEdyC46sn3URJb6rJGUR0AhfD6LMC1O7Of/wYYLyzj/FeFWlRSu ytEDXMOklmkqRpSILgENeShUsKqpAZG9KjGAeX3G7RyArH3Avxqado4uCgH1oX0HW22g 3vYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AiOurE6E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si5725012edq.567.2020.07.27.07.05.42; Mon, 27 Jul 2020 07:06:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=AiOurE6E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728062AbgG0OC1 (ORCPT + 99 others); Mon, 27 Jul 2020 10:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbgG0OC1 (ORCPT ); Mon, 27 Jul 2020 10:02:27 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A032C061794 for ; Mon, 27 Jul 2020 07:02:27 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z18so11452355wrm.12 for ; Mon, 27 Jul 2020 07:02:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=zOqkerDrdn9vlD/gwQA8/RReYXl1a8hHd175h8KJrac=; b=AiOurE6ElgW2rXkMTDBSstfE+k4Vc00fc8vo3xfcDMLup+XhcGNb4SNSRI/WirBEHP 2uEx8j+26V3vwWD2TsCfRc7tw6YUXfEvDDnZbGyHBp2VA8d7MbtWdjKPuh7HYIYeZBbE Sxv1PaL7iA2ci6sB4zQsgfcFg+S7lXJBsR/UVoFhtp3JWtP+kcIHprF/eX+cHzRxpzht WXTmbbfr5Zz3H+p892+D8OzE/JL1GpIfSv/McxmcQYaHZ+eU3Zu7b6agCQ/YEWtTHhBy uNitL+IWwT7Cgp400dApTLTj3Fqb2BvCjiklYkqVU0HsExNA4+ZL/p2oDZyaiiEc4sWE 5cww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=zOqkerDrdn9vlD/gwQA8/RReYXl1a8hHd175h8KJrac=; b=taIKJ3B56OL2l4cvwgh6TlowgbYdM6OWDZ0haTXCuG3ELuMik9cdLGCbg7ikRx7o8P 9BKU8BH7q18k6ELoeyzj+xG0dCNN12ScjThY/8fcYqiKg2IudUQPOVw+3Lofl4sBG/mj kwyS+TPOVV12ael6qNwYjVnpIA4TzCgUUNwzQP7LoNF0xVymV6JP8wiFIsyqE54CLU88 g+wHc8EEwaFOtt2/5MWeVoX+/OzAyxHKVYl3SwFvLx4/fZhbY8AOSzMb/D1eXBOZJkoU 26zO4oevtdrUpcuZDNYtmmFCRqCh2enymielOl//JH0s3Jz542j/rXTyKPviFAEuHoon YCFQ== X-Gm-Message-State: AOAM533JcHjT3iJKtvGVmOuUD5KM/Nwf9sTQbU6S27sCONs50nBT1M6M bJdMl1fLcFD5eoG04xE/poH5jw== X-Received: by 2002:adf:9404:: with SMTP id 4mr19951626wrq.367.1595858545754; Mon, 27 Jul 2020 07:02:25 -0700 (PDT) Received: from dell ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id f9sm12514999wru.47.2020.07.27.07.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 07:02:25 -0700 (PDT) Date: Mon, 27 Jul 2020 15:02:23 +0100 From: Lee Jones To: Charles Keepax Cc: linux-kernel@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [RESEND PATCH v3 2/2] mfd: madera: Improve handling of regulator unbinding Message-ID: <20200727140223.GT1850026@dell> References: <20200723105459.5530-1-ckeepax@opensource.cirrus.com> <20200723105459.5530-2-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200723105459.5530-2-ckeepax@opensource.cirrus.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Jul 2020, Charles Keepax wrote: > The current unbinding process for Madera has some issues. The trouble > is runtime PM is disabled as the first step of the process, but > some of the drivers release IRQs causing regmap IRQ to issue a > runtime get which fails. To allow runtime PM to remain enabled during > mfd_remove_devices, the DCVDD regulator must remain available. In > the case of external DCVDD's this is simple, the regulator can simply > be disabled/put after the call to mfd_remove_devices. However, in > the case of an internally supplied DCVDD the regulator needs to be > released after the other MFD children depending on it. > > Use the new MFD mfd_remove_devices_late functionality to split > the DCVDD regulator off from the other drivers. > > Signed-off-by: Charles Keepax > --- > drivers/mfd/madera-core.c | 23 +++++++++++++++-------- > 1 file changed, 15 insertions(+), 8 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog