Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp3022136rwl; Sat, 5 Nov 2022 16:00:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sfF+TyIxdWMIiMBrZTo1wOs5N3nc3UHqv0xV7tbkL+gwmsZ6B9kVh1dUcVoPFJmWeJsYR X-Received: by 2002:a17:906:5da5:b0:7ae:5c14:1c with SMTP id n5-20020a1709065da500b007ae5c14001cmr1706484ejv.330.1667689214941; Sat, 05 Nov 2022 16:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667689214; cv=none; d=google.com; s=arc-20160816; b=UZZ7QThMnAHF+yPSP9UD3lZUM6AFishYU7c+xK2pTkSZwa3HH0zjBv4I5PPIV9+g5e sQ4gY682jXVx8NrOqCtG3rrVuzIwJ8tMfvabojoE+GxIAOQWMxxKoMBM2l3xhAYj6Esj 04gmu8M9dOiyag5dRU4rdWr13FjNShLGkn1px8xh+zE1vPj0QaOimCplcaajWQW8u9Ie 6TLXQhXSWcYn88BmpuDP+VQy9IYQqPyQ3QSxDusF/hiRhQZadd676m1/WqG123w0bDKG DLXsano/T7MJVowMrfhRddbeUWYY5uSkZKiwE1AOhVHmjqA64IHht0p/jgLrhJ7scEGV PPbA== 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:dkim-signature; bh=zP0zVoNY9bRmSC2JqzCNWw7/QwV/09WG5UmPPgvch3U=; b=1J47c6T91mtWvv1g3BrkH+8bYxHSdowPivi7iywBPKQzqzfcVvs3usCw7jO1laCk6u yhedeJQRSSTvf+IWI4g4MCsgtLE9fo5DswbJH8e4fpXzIlnoZjtD1dbiNJKt5cn0YEPC 0uDpCXPklFTpChJICZ1cyNl6dtnhX2tjMqBknu6T06dGbbMjA9XWOtMtnxcDrCravou2 F2XutRwZD9UA3wRaMXBm0dhBzd9HJUYLdmXkFHLowcU9hpUCAvUk5YWztxY4DPVHllS1 ByFt6awuTwrOrHJsgMPLUory5V4GPmVSzVgvLEWSE67+DQMzxeJNyZ/V6lqbNs9sWvHo f9hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=ITEnNwVt; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a50d785000000b004592ebc28a9si4225333edi.59.2022.11.05.15.59.51; Sat, 05 Nov 2022 16:00:14 -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; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=ITEnNwVt; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbiKEW4O (ORCPT + 97 others); Sat, 5 Nov 2022 18:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiKEW4M (ORCPT ); Sat, 5 Nov 2022 18:56:12 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B121BCBF; Sat, 5 Nov 2022 15:56:10 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id v17so12415275edc.8; Sat, 05 Nov 2022 15:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zP0zVoNY9bRmSC2JqzCNWw7/QwV/09WG5UmPPgvch3U=; b=ITEnNwVtzwYUXM9GiBOje7UESNtMaKpXoKTRvxf9P/AI6w0n1UztX9zzK7K7sjBfMl cx8tCJSd64ZPIjwBsDwnGdcicIERP2qeIIPbUPQBuocsbFUQuKYvBbMjBpyVu2f25xtJ dFdHZ/gW4KeeLzrmGCERzCRRMSksSaRNElzMiVi5LBGmR+f2SQ/+3gYUdizT/oO1gpNw s1ntGXJ+DVDMyw7PnmdFu9XqHcWtA9qlvdMvA1nIkzDVkXwN4R5q+vuRo8+TbBBpun6w 1z8Ga3WWhamod0INV2QTHj+EfMT3ONa0gejegma55sdo4/DD3R03P8JyXlu/UsFrOF0p KpEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zP0zVoNY9bRmSC2JqzCNWw7/QwV/09WG5UmPPgvch3U=; b=DgWVEuEw3Z1tzGd/U8xmwC/X7LIltrvzP8sGX0WgJ5b9Qxhv4GIs3Ebw8/mHhI79xe OHW3GhlZ6y8IR96aBr+6Gf8+zMZUOvQZyKmYz5m/BrVjfJiDnja/iTpBehhT+th+lT4U SStCYuSPEDZj+b4u/J/I38OBPfbLw7MBaAqRfSlM6WH7Pw/j1PB/Sir4g4rDacYwcbnx 2zI85JCXNgm6j2V5F7y0CRUeZ3r1Cq+qeAPlCMBCrY6LCZ2aVdOGbQzZpVFuMOfpXk2p +o3J+QxbVHcFo36UoutmoCUeLrWRPB1i74W33pXrC1/mjrQBpf6U6QXk6JeaYLXCturK YYiA== X-Gm-Message-State: ACrzQf03UjlHJ4ABv7pk82a2SgxyWKRc9e9ELPcieMRfyf+TwbwgOfxU lOq61svKg4nhIzfQpaxIzPlvM7dKfKjqCFBsoWw7fjFSAVE= X-Received: by 2002:a05:6402:31f4:b0:461:604d:2607 with SMTP id dy20-20020a05640231f400b00461604d2607mr43491798edb.330.1667688968775; Sat, 05 Nov 2022 15:56:08 -0700 (PDT) MIME-Version: 1.0 References: <20221104083004.2212520-1-linux@rasmusvillemoes.dk> In-Reply-To: From: Martin Blumenstingl Date: Sat, 5 Nov 2022 23:55:57 +0100 Message-ID: Subject: Re: [PATCH] net: stmmac: dwmac-meson8b: fix meson8b_devm_clk_prepare_enable() To: Rasmus Villemoes Cc: Andrew Lunn , "David S . Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Rasmus replied to me off-list yesterday. His reply is important so I am sharing it here. On Fri, Nov 4, 2022 at 10:02 PM Martin Blumenstingl wrote: [...] > If we want to propagate the error code returned by > devm_add_action_or_reset() then we also need to do the clean up within > meson8b_devm_clk_prepare_enable(), meaning we need to call > clk_disable_unprepare() in case devm_add_action_or_reset() failed. > Your change just propagates the error code without disabling and > unpreparing the clock. Rasmus replied to me: "devm_add_action_or_reset precisely calls the reset callback for you if the add action falls..." I was not aware of this but it's actually true, which makes the patch perfectly valid. Thanks for the heads up Rasmus! So this patch gets my: Reviewed-by: Martin Blumenstingl I suggest applying it to net-next (even though it carries a Fixes tag) so the various kernel auto testing labs can try it out on as many Amlogic SoCs as possible. Best regards, Martin