Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2261032ybt; Tue, 16 Jun 2020 01:03:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIGurhl0n9/4xJeT+RJjTJnXf3nDwhB88caM1pbWHHLiZR+pxpLO4QXhBMR66tAk5COate X-Received: by 2002:a50:d785:: with SMTP id w5mr1407551edi.212.1592294593174; Tue, 16 Jun 2020 01:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592294593; cv=none; d=google.com; s=arc-20160816; b=sjU2Ipn3LxEoRbMt5p8yKCbJcR8X/vqV/3sHqIOpo28hxrexQvo1EleM+rZorMqZVK EAhZo8hSN4HHARuOb5Q1fPOQC7646djsVlqjvP4Amb8Wy7ITr1N5snBpBUQqv9LiIahv FjM09XSm3GdbU1mcE/NzXst1aO/+cYLEGZfrYpjR+U0/1/Ier0ySmFgiWTRP0gYcaRvU qFT0rsJQdxoeS3mCn9AZc5bKWaaWoCuAZpNLWxLRH0FVRyPrn0gmi+DYkkvlAsQkW+st sM2SUD6kgyowMHL3OLWPMqpMZqBBb9Lh7P9Jg/u2EnYPQr//9qa2BzJ5ZjMEiAqLXc6l YyaA== 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=HhjqqjzEYPgE2Ky9gjHhAXS7V3IrpqPk8DWTpyD0b64=; b=wQ2gOw4/dRkqi50t0BTrT2FvuJ1jyf/7/3fsTgfkwCKF92y2pGuW5tigzY2ISFvlL4 Dyy24/99hKiQQ3B5JpyYU3tHNI1OMA0peWZajxKXCEpUXw40vFghfu0ZRIYA6ZZK5M/5 aD+DjadzmIQGg92OddQ9qQFzHz2oaYjQLk0Cm3zxpLUgfJztPHZvyFYobjASF4ddKrj2 mt1+xs+Bb+9fhmmJjlE7JIQtUiNB2MNGSr9UABqjoppzzy9S7VH8Oge0m003ZU1d5ZKp NJHosiOnpGU1bg/mquNR7TZVQWP1WNjAY7nwwfAIQ1toF23r4VXm5aH1z80ZkSuMr/Ji mCBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UKukRORk; 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 h18si11163603ejf.537.2020.06.16.01.02.50; Tue, 16 Jun 2020 01:03:13 -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=UKukRORk; 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 S1726804AbgFPIBB (ORCPT + 99 others); Tue, 16 Jun 2020 04:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbgFPIBA (ORCPT ); Tue, 16 Jun 2020 04:01:00 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CA27C05BD43 for ; Tue, 16 Jun 2020 01:01:00 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id q11so19723020wrp.3 for ; Tue, 16 Jun 2020 01:01:00 -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=HhjqqjzEYPgE2Ky9gjHhAXS7V3IrpqPk8DWTpyD0b64=; b=UKukRORkWtcUkfrCjZxk2foD26jM5/R7GXk20sgPvRxGP1ppPKOop+1XSK4OL2KXDd NFZ4c6diNE+fG/QUZN5SnFNviaa0hwYGmI29PO/CKAmaF0zHzDQbuH4p2Lit4hfdQwHQ zRqLVoed9MQw/WeuOkGOc7+nWq2qTp0crQRIREjsV/+iKHqPfkanpisdAno0dDp5DXYd mPbVBwn6VcAloEFMYKCV3wqtIcsdd7s36jfnLt9543myFph2FklVLxD1Dv4Wg++gEQ+Q ZGbNOwdceFxQem00+QPczd5NOM1I728byKYQTRYTxmWPmtpVrle2Wy6OSSXpb2zNwqtW K4yg== 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=HhjqqjzEYPgE2Ky9gjHhAXS7V3IrpqPk8DWTpyD0b64=; b=W+JizyjSJgDOFzBDTAxVFO6dYiHF5l4CtYvvlMSDvMnYx1gbxwjuBZ5QdY0ezFt3ii kGjaQJmtbDWEqeTHybc/OHa5Kn7JHDbKCk4GQGd/xVr8Vdbqycfo4IhfIGxxrwRlKL19 jNaqmPr6RhLyJoza1rnVGPff5iU/ODPkMN4Be/A3vlTNOXJoC53qPDpN8+HmiSvz0Mq0 ODVhuyBrSxeQ8tg/QQkIghPW2PRlAzs8oz2i0eTapSs0RryRmAG+GmGv4zRli7Dwyyp7 FUCaIRW/C+l0yVIDzsrcCH1cU5ugarz7r26x1zPY+yVweABOK22G+8plfOG3XHvm+jAA yoEQ== X-Gm-Message-State: AOAM531ESrJdAhGnv1kLwKpdIOpsudIUv9ohA3j5OUZl7KtyuVgL1I3N sZtu1AOlulTVIVVbf4HPAej0aw== X-Received: by 2002:a5d:684a:: with SMTP id o10mr1607087wrw.4.1592294458894; Tue, 16 Jun 2020 01:00:58 -0700 (PDT) Received: from dell ([109.180.115.156]) by smtp.gmail.com with ESMTPSA id o82sm2825871wmo.40.2020.06.16.01.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 01:00:58 -0700 (PDT) Date: Tue, 16 Jun 2020 09:00:56 +0100 From: Lee Jones To: Charles Keepax Cc: s.nawrocki@samsung.com, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH v2 2/4] mfd: arizona: Ensure 32k clock is put on driver unbind and error Message-ID: <20200616080056.GG2608702@dell> References: <20200615135323.15215-1-ckeepax@opensource.cirrus.com> <20200615135323.15215-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: <20200615135323.15215-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 Mon, 15 Jun 2020, Charles Keepax wrote: > Whilst it doesn't matter if the internal 32k clock register settings > are cleaned up on exit, as the part will be turned off losing any > settings, hence the driver hasn't historially bothered. The external > clock should however be cleaned up, as it could cause clocks to be > left on, and will at best generate a warning on unbind. > > Add clean up on both the probe error path and unbind for the 32k > clock. > > Fixes: cdd8da8cc66b ("mfd: arizona: Add gating of external MCLKn clocks") > Signed-off-by: Charles Keepax > --- > > No changes since v1. > > Thanks, > Charles > > drivers/mfd/arizona-core.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog