Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3576259pxf; Mon, 29 Mar 2021 06:09:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0uds81qCq8YUugiRddPqeRDA9xAEKM8kQiA1ripsuL/4RD3cAAC9u/Q2OgWMaPqRUXXf8 X-Received: by 2002:a17:907:162b:: with SMTP id hb43mr28797737ejc.41.1617023393760; Mon, 29 Mar 2021 06:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617023393; cv=none; d=google.com; s=arc-20160816; b=BC2LD5o/Cy+CWVf+AsxX8rVIwX1SfLEZc+/K4mh7RqmdkiawcADS/UJIQ/1wa/eIWc x05rE677B2Yb85EjuVT6Bk1ZZIbYTty3iRRfhU5CuktQb3eyXpBQTvRaqfdPtG8LwilZ zPxld4eqwEy5XthQH3NG0uvFKQbGioLCPDJHzQBIEsZ8pHldeUu1wTJ72yxD2y3bJHpP XpH6yxFRFCet07dBdsszmBgx4uagehoKko1UKKw0c5Uae1kPhzbUap1wfyPQquJs96B2 881u+l8Wh14u9VvMiZ4tU00vOPUPl0GcK/6OEb1hCjMpfHA3i9LA0IH+Aeb+xtQmAqEA O5Xw== 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; bh=+63Txv4HMbvp0BnWBDVOQtdOyhYc/l6Vd8gKqugtRUg=; b=AzyvjW2RQJpCRv/gBpxRcack/giLyp+2dJ3VLOY8DRfygS4AekWVIbyEZtjrqdS/VX 8WeGbCVRiA0Pefsa01Fhx+dGHNqf5Nu5Wf5mKq586IliOLtLloy0woQfxM6fwW9kJ1/o kqve+fJv5N3Jezu0TuS/pokSeO5vyHhEA8bX3jlNB0J10jIF71CeQXqWZMXx4z6EDCRW HAe4eqC8FS3ndXZBD1Gif6VBQUSsDwhHEUDVhQ7Ib8LGtnO6ZrpMDwHG3SjR2xhaKBfi weCyZVR+VNZoLvjLAmgTjSI7NPiq6um+i9CKOiDQc7J5rNV2XMf00yJqpzXDKVacf4zT j+sg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si12412137ejf.752.2021.03.29.06.09.31; Mon, 29 Mar 2021 06:09:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231330AbhC2NIg (ORCPT + 99 others); Mon, 29 Mar 2021 09:08:36 -0400 Received: from mail-vs1-f42.google.com ([209.85.217.42]:40568 "EHLO mail-vs1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbhC2NIP (ORCPT ); Mon, 29 Mar 2021 09:08:15 -0400 Received: by mail-vs1-f42.google.com with SMTP id v29so2373826vsi.7; Mon, 29 Mar 2021 06:08:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+63Txv4HMbvp0BnWBDVOQtdOyhYc/l6Vd8gKqugtRUg=; b=jTQwNPQwnmSHkZqGRH9yuehUpf7vW9QZDsE4PTWc8kT4ZGuJqKeMRczRV2C5EVUnS6 A+hVUaPo8pVVlFsP1Ik2z9h8674ynp6XkeIlriqpChQJWV1VSkCXcUK/GKYuYLsySUNO L2Wzwh6wvZLnptxswNKw/pk5Ccx5Zxj6MCEtz3Ei/L+MQH1nfqZm8mTjH+Su/Afq2cy6 HJUrtgdApjbwvLmFGT+6/L3KKctwWe77PpWb+ywzvKVl0tJ08R4N9qdulsheDXagQx0N vcv5H/Gt7Ur35PBXkKX3FUSvkxSfOK5P4X+6w8xfaogjGgEzmMbIktvSmFnhTt25Ed1H 7gIw== X-Gm-Message-State: AOAM532qEsM/0CQXHi7I10ryEEG8VimC+xSAZKZcE6Iqq98YcCIq974i CeHFfdd/Hg/6wWLu0KHO2c3HUwY4MUpRNuvrf6I= X-Received: by 2002:a67:efd0:: with SMTP id s16mr14526105vsp.3.1617023294693; Mon, 29 Mar 2021 06:08:14 -0700 (PDT) MIME-Version: 1.0 References: <20210224115146.9131-1-aford173@gmail.com> <20210224115146.9131-4-aford173@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 29 Mar 2021 15:08:03 +0200 Message-ID: Subject: Re: [PATCH V3 4/5] net: ethernet: ravb: Enable optional refclk To: Adam Ford Cc: netdev , Adam Ford-BE , Sergei Shtylyov , "David S. Miller" , Jakub Kicinski , Rob Herring , Magnus Damm , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On Mon, Mar 29, 2021 at 2:45 PM Adam Ford wrote: > On Thu, Mar 4, 2021 at 2:08 AM Geert Uytterhoeven wrote: > > On Wed, Feb 24, 2021 at 12:52 PM Adam Ford wrote: > > > For devices that use a programmable clock for the AVB reference clock, > > > the driver may need to enable them. Add code to find the optional clock > > > and enable it when available. > > > > > > Signed-off-by: Adam Ford > > > > Thanks for your patch! > > > > > --- a/drivers/net/ethernet/renesas/ravb_main.c > > > +++ b/drivers/net/ethernet/renesas/ravb_main.c > > > @@ -2148,6 +2148,13 @@ static int ravb_probe(struct platform_device *pdev) > > > goto out_release; > > > } > > > > > > + priv->refclk = devm_clk_get_optional(&pdev->dev, "refclk"); > > > + if (IS_ERR(priv->refclk)) { > > > + error = PTR_ERR(priv->refclk); > > > + goto out_release; > > > + } > > > + clk_prepare_enable(priv->refclk); > > > + > > > > Shouldn't the reference clock be disabled in case of any failure below? > > > I'll generate a V4. > > Should I just regenerate this patch since it seems like the rest are > OK, or should I regenerate the whole series? As the DT bindings haven't been applied yet, I think it would be best if you would send a v4 with just the patches for the netdev tree (i.e. DT bindings patch 1 and driver patch 4). I will take the DT patches from this series, once the bindings have been accepted. Thank you! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds