Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp912012pxp; Wed, 16 Mar 2022 21:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6J0i+/cgrq8hEMRlKM2NLeTU2xLQBnz0hQABZQwCn4ExGF3BKA4OkinxQMYq73gLrBoq6 X-Received: by 2002:a17:90a:d3d1:b0:1bb:fdc5:182 with SMTP id d17-20020a17090ad3d100b001bbfdc50182mr13968066pjw.206.1647489839373; Wed, 16 Mar 2022 21:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647489839; cv=none; d=google.com; s=arc-20160816; b=AX7DHkUvsMIqRZbUi9iFEwxbyeJNgU979FGkR/RH4RL62gvrle+DM/b7DAo75Q8Tlg xksS1m1K6l3gFxr/vzvVQT/7PDIjbUsjcvAQfStYWHfVx5ztaQ3NP/RZzdpo9VsWEmKa AwjGBiql3sYLKnFy3Q/SOmtTZFzwUpITwpbX9cUNNSbsryRkIfIPhLcJZ2dI1mrHeIz/ wtbqZPPeaQY4WNUAtMbkqVInlBRGPFrBaCgp+7KXCukbztg49yFEtZy8BcqsDYYtomO8 EFq4dQewlDRizis3AUcFr4qcOEjBBDCfXz1Hq0H1tdxFNObyOpn5iPVoVoHLTDC1MKJS 3rdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fvUEMkANfvf1LokJRMq/1veBU2UqMcQQnQtywgAigRI=; b=rFuwDm67gPfojHgFj0B4THWEtVmiew2vM+CGGwzBGBLLgVsU3DNyVEE5s/HMNh4hy2 4wpNFKcXrdvr5fegsrvthsa9bc9VQULBLUwf9uRLMRGuGRVlShyJoP11qSOtwm+whFiP EJImi/jpqPaRkQeR/hE2Eu5bdNcDSfOeIL/zY+BICsUSP/1Ta4FohHhHdlmO1LvqtavC W1GZ4SCQctcTDyhlR1Ypg7kwJhjPLSflZsR9dyUXyGVJx9ayJyw4GWx8hJyW9+2NzrJz xUWt/rJ80qjB/qttibX64q1wrX0rL8v38fkxi67ayu8UhKbOyxRR8Xvfx/n9CngHCNCl NTZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d80bWado; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g4-20020a655944000000b003816043f104si993262pgu.761.2022.03.16.21.03.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 21:03:59 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d80bWado; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E499391AC0; Wed, 16 Mar 2022 20:45:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233023AbiCPPdv (ORCPT + 99 others); Wed, 16 Mar 2022 11:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357296AbiCPPcz (ORCPT ); Wed, 16 Mar 2022 11:32:55 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AFC46D1A5 for ; Wed, 16 Mar 2022 08:31:38 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id r127so2118016qke.13 for ; Wed, 16 Mar 2022 08:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fvUEMkANfvf1LokJRMq/1veBU2UqMcQQnQtywgAigRI=; b=d80bWadomzISLDXuQxFymTYBDQhXnZ/mtf4OPE9nlrZvuhycUpl2BR/lqMnLjFexkA cz93kqCvObc57xjq3czpcd98F7WCOFLuTgy89Jlu6YiZaWR2qG0Ofnh/IIB5sGS8QDPH s555AxxndZayMBMuqYX5BZcSh8qXJgPIWcuQZRYjU8hFtQWRxN0tFuvz9gBlyKOYnsNj 5LlQJ43C8qjEsJsEDf9UsdLk4X4pPb0gdjfO2INSV/eYPE5WvVjZ2V5sknTYvu+WAiyJ mcmAI/v9qLw+9b2EW07rneccOuXY1qFjZ2eolCpce3CmVpz0L3ggkcNBfYKzX82tzc5t C77w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fvUEMkANfvf1LokJRMq/1veBU2UqMcQQnQtywgAigRI=; b=kCN4MP6NqQU9D52rg/RffC03AlPRD0TZ8J0d0cHHmgCvWwajeWNBrvGy2X7K5BtGtn JKz0nwTKes4hjEa0bciSQRNeiVY+cyZO+zBXKGb8CGFvNJ5PGHGti8UGYaO4UExPgTyj kUfvcEL9hWKbRmZGKVMsbVhqZo7XGIY6cfkFrVOBZ+JTQt7VAlXHYTxUM4ScDc0rNYxE s/tZmv8U08xAb4NLXBkaKlcoqLN3pX9DmDQHKQIcvPuhg1Jleu6PkuC+af5oOlXwZiAx RKYIZzZ0DoL3UYJjmppnBHdL4bl45+NthiISd81Dd1ztRU2CDNk87OBCfWb1hWMb9pWC uvNQ== X-Gm-Message-State: AOAM530hTtengVCP2otZenWsyzLeDiFOf/x7XdWqKRowiF5lpFKzcSK7 SWoqrsG+hKpnWb2BON5I2gU= X-Received: by 2002:a05:620a:2808:b0:67d:730d:d4e4 with SMTP id f8-20020a05620a280800b0067d730dd4e4mr244493qkp.431.1647444697108; Wed, 16 Mar 2022 08:31:37 -0700 (PDT) Received: from shaak (modemcable055.92-163-184.mc.videotron.ca. [184.163.92.55]) by smtp.gmail.com with ESMTPSA id k10-20020a05622a03ca00b002e0684cf81fsm1475321qtx.73.2022.03.16.08.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 08:31:36 -0700 (PDT) Date: Wed, 16 Mar 2022 11:31:34 -0400 From: Liam Beguin To: Miaoqian Lin Cc: Kishon Vijay Abraham I , Vinod Koul , Roger Quadros , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks Message-ID: References: <20220316024155.23464-1-linmq006@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220316024155.23464-1-linmq006@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 On Wed, Mar 16, 2022 at 02:41:53AM +0000, Miaoqian Lin wrote: > The corresponding API for clk_prepare_enable is clk_disable_unprepare, > other than clk_disable_unprepare. > > Fix this by changing clk_disable to clk_disable_unprepare. There seems to be a typo in the first sentence of the commit message. Maybe something like this would do: The corresponding API for clk_prepare_enable is clk_disable_unprepare. Make sure that the clock is unprepared on exit by changing clk_disable to clk_disable_unprepare. > > Fixes: ed31ee7cf1fe ("phy: ti: usb2: Fix logic on -EPROBE_DEFER") > Signed-off-by: Miaoqian Lin Other than that, Reviewed-by: Liam Beguin > --- > drivers/phy/ti/phy-omap-usb2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/phy/ti/phy-omap-usb2.c b/drivers/phy/ti/phy-omap-usb2.c > index 3a505fe5715a..31a775877f6e 100644 > --- a/drivers/phy/ti/phy-omap-usb2.c > +++ b/drivers/phy/ti/phy-omap-usb2.c > @@ -215,7 +215,7 @@ static int omap_usb2_enable_clocks(struct omap_usb *phy) > return 0; > > err1: > - clk_disable(phy->wkupclk); > + clk_disable_unprepare(phy->wkupclk); > > err0: > return ret; > -- > 2.17.1 >