Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp507584pxm; Wed, 2 Mar 2022 03:06:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKUI+adn0HuRIXojjwlZgPSN4XOvJeojFVGah9qTHi8iyj1OxbTCMLPeRGkCjN2ZAxVDP8 X-Received: by 2002:a17:906:c113:b0:6d7:7b53:9cb with SMTP id do19-20020a170906c11300b006d77b5309cbmr3707113ejc.197.1646219176513; Wed, 02 Mar 2022 03:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646219176; cv=none; d=google.com; s=arc-20160816; b=PK/NfQgNDk3+wwA0ji5dNYyU5Xg3AJwl3r2HhCkA2x50nRXroWi6V/Xo+qKL6q5DWL e+HhuOTnEt5y0kFDvAqQ6Fl2PDfozY3hPcFvu9+duvXkfeibX3T4TBDaXomx9ofCYcly Xa0gV3HWBJvVhbg0p+9AJbphB6QYJM9riWJ6aEAHtVRjRmQjdK8DFkKJwT+s9in118no rghFq8UugAYpFAKsiCF1eoJCGVBx1bfMtdppgHAUe/O4eXgiWOxznJX0RoKmI/LFWcfp nnoRdnr3lvKrvkpqdlR8AugVpylXv88GOh9S8YuXSWdgt+T6aAAGClfBELdWDvFcxYbF e32Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OWcYs/qg3q/XJzTEhfWMtGCjD8xt4afj14ut1xUKKDA=; b=LzzGvWfLykv7Dv8Gmhs8PIm0f42mFLHONx8bWmglNUvBnCdWg9FEwzpyqP4q5t/Epo DP6/BSt7YzlCCeiLJ5yLfsC10t06QqKo9W+16zElr4HN84yPt7eZ1uI+Y3eQ2cOKrv6b glwSDOTyW2LKj2G/PT/iDYt3dnHfamZrAsOy3ax8KDvZuMupb7eYHvnTfUr56qG/VHCK +WbT/CfGQe7qp9ak/clmIa7JVJvk4BB2fM0YYiik8Omh7e7F6ZvQW/cAbB7ycgfT4MJ3 JYjqBjCo+9gW2UBeL8Keh4VPmBo4R77Wlnvd3Yd5t3f3OSBEb9mYHxmHYBjqhVqaCqSH 0SjA== 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 bs9-20020a056402304900b004108168dcd9si11686265edb.27.2022.03.02.03.05.47; Wed, 02 Mar 2022 03:06:16 -0800 (PST) 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 S230076AbiCBDM4 (ORCPT + 99 others); Tue, 1 Mar 2022 22:12:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239295AbiCBDMv (ORCPT ); Tue, 1 Mar 2022 22:12:51 -0500 Received: from cstnet.cn (smtp23.cstnet.cn [159.226.251.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FB44AF1DA; Tue, 1 Mar 2022 19:12:08 -0800 (PST) Received: from localhost.localdomain (unknown [124.16.138.126]) by APP-03 (Coremail) with SMTP id rQCowADX35t24B5idqyQAQ--.22138S2; Wed, 02 Mar 2022 11:11:50 +0800 (CST) From: Jiasheng Jiang To: broonie@kernel.org Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, f.suligoi@asem.it, kuninori.morimoto.gx@renesas.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Jiasheng Jiang Subject: Re: Re: [PATCH] ASoC: fsi: Add check for clk_enable Date: Wed, 2 Mar 2022 11:11:48 +0800 Message-Id: <20220302031148.46395-1-jiasheng@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: rQCowADX35t24B5idqyQAQ--.22138S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYD7AC8VAFwI0_Xr0_Wr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z2 80aVCY1x0267AKxVWxJr0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v 4I1lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc2xSY4AK67AK6r48MxAIw28IcxkI7VAKI48JMx C20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAF wI0_JrI_JrWlx4CE17CEb7AF67AKxVW8ZVWrXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20x vE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v2 0xvaj40_Zr0_Wr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI 0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUg4SrUUUUU= X-Originating-IP: [124.16.138.126] X-CM-SenderInfo: pmld2xxhqjqxpvfd2hldfou0/ X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Mar 01, 2022 at 08:44:12PM +0800, Mark Brown wrote: >> +err: >> + clk_disable(clock->xck); >> + clk_disable(clock->ick); >> + clk_disable(clock->div); > > You need separate labels for each enable so that we don't end up > disabling clocks we didn't enable, that would also be a bug. Thanks, I have submitted a v2 to fix it. Jiang