Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2269639rdb; Thu, 21 Sep 2023 13:32:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQ+F3B+BAgL2Pid6+k+XSkACkpW0HKCn7LZttzlF+ifWML7RNhl+/mVSgPZSA3s7hnF4F2 X-Received: by 2002:a17:903:2581:b0:1c0:6e92:8cbd with SMTP id jb1-20020a170903258100b001c06e928cbdmr5203142plb.28.1695328337494; Thu, 21 Sep 2023 13:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695328337; cv=none; d=google.com; s=arc-20160816; b=UE7DphoEFPiBCyubq8w4hX8SoB8EvSqNA2tjtXt9XRO2lmFpZL+/e+kDlaygQSXBKo CpqTW/kaZboJOIj8utYBwmGba9zOnDFoLY5l188h9QDl/niX73xVnzucPeibuEKm6LnQ w2lqO3tQ0mjKkcZJyli06gyWbeG+2N9elWcBSKiKjcs6cz8OTT2ymo86AOcGAtrNEWVe /44fBJ4ig35MNjctEpNYTLWxZcPDfUXFfPXYNEVXD2L1CInwzAt3a2pyqZS6hK6JyGhS C0yip6JDBZTISstNzxaTezGq1cQuVeOKWLZ9IsewXE3p0BrwTMPvVrmQ41fbSj5ooD43 FPBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=M8073cadbomZvzn1x3/jFCjzqqbS1eUbDSTmbFgCsS0=; fh=9zHeZpHf4737iMG9Rw7ZGisuq3HnXorDDx0Z+W72nv0=; b=0ur49L/xSXZ+P1TwfT+cgwVtYPe5GzMdBsfEQF5Z1YY7JO2YsG0pIZntPck3E4TX4B /3Xz15ZhMQmw0cpuLDEJj7Ty1xl1BXN9f9kbEq6cSf/FYI1v6of1FUO3dSLc9tIS0YJt yWTRTZy3KXsY+2N+MpQ9up+RZCacZa0XGVG+aq18VrAA6NKje9NfyKyb4dv1AnSakHHA PbVF5B0ePXLisMe3Nr1e9HQMiXOdQ+3zPcQ5wfNfSFnP6xLqDMXx07/GOa+EzUqylI06 ooArvM+47GlHykXMKPkB97wZYkVnyMTjV00g+pGWHsgpGhBYKdvxVYzKX2VeSV5zlitp JGwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ail57T0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h4-20020a170902f54400b001b885fbe17dsi2377655plf.532.2023.09.21.13.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 13:32:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ail57T0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A507E8060476; Thu, 21 Sep 2023 13:20:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231307AbjIUUUZ (ORCPT + 99 others); Thu, 21 Sep 2023 16:20:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbjIUUUA (ORCPT ); Thu, 21 Sep 2023 16:20:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7A97F835 for ; Thu, 21 Sep 2023 10:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695317040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M8073cadbomZvzn1x3/jFCjzqqbS1eUbDSTmbFgCsS0=; b=ail57T0wAXAFyCDL691B7TuGjUyUx+JIdmcEVYJf5ApJj5tTEZHLWHxkHHSHxIq5pmuDGR kQxcTsb68F7K41Lw1YOlRCe1hFCDIXS4nRi85WBDVfE6DFvz9ijP1FwXq5vAvJ9WBui2ib IuctH1p2C9RZNUYvtUWpsfWuxt3Cw8A= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-198-hYUE15ZtOPKP46EnavZSnA-1; Thu, 21 Sep 2023 03:55:19 -0400 X-MC-Unique: hYUE15ZtOPKP46EnavZSnA-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9ae5f4ebe7eso12546266b.0 for ; Thu, 21 Sep 2023 00:55:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695282918; x=1695887718; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=M8073cadbomZvzn1x3/jFCjzqqbS1eUbDSTmbFgCsS0=; b=j8BVUmF4aCU0VkluNxWS2f7UoMFN81Beofl90xnWcivVsrXCeD+qkWWzF9PmaK54k2 tlHvabSEXt+nkRg/Zj3iyn5uASmWJEW2AExZ0WizSQD6zjqTR/AkTN50Lr1TEGhw8h4H WtF6sjcKSeyRe0SffXcJ92A/fKDYOrRMDEyWYXgtHiS+5SqPHyKzrG+uEsxkzgz3SnZN 68Rdy/OF+qRtjlFW/PpMp17J6JS8yKWGTxP+Laxk56cVkWIZVZiXcdh0JsyvFM1cbSAe rf2/JQZgPVflCptjY9Ddy98SYL1zhifMSLX4O6SQBWQl4mFLHCz192dopEw3BgUjVtsi yjhQ== X-Gm-Message-State: AOJu0YyKvrcUyjHxgNPcjcDBGcUhSsiQmEbeMlhiMYbk5h2aEOjHuJAp D8gQ9Y3rd418czA6koTuqOezVOF8vVZVWobpI3NBucPVubS+nsR9v1iOz/nw6ZjZi/OoPk4KAlF VTLhBPLUxtPUPRAhCGLZqAsLX X-Received: by 2002:a17:906:d3:b0:9a1:d915:6372 with SMTP id 19-20020a17090600d300b009a1d9156372mr3807375eji.4.1695282917999; Thu, 21 Sep 2023 00:55:17 -0700 (PDT) X-Received: by 2002:a17:906:d3:b0:9a1:d915:6372 with SMTP id 19-20020a17090600d300b009a1d9156372mr3807366eji.4.1695282917682; Thu, 21 Sep 2023 00:55:17 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-251-4.dyn.eolo.it. [146.241.251.4]) by smtp.gmail.com with ESMTPSA id y4-20020a17090614c400b00992b510089asm647510ejc.84.2023.09.21.00.55.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 00:55:17 -0700 (PDT) Message-ID: <9eac9749406d91fd42520479b4c463417717246f.camel@redhat.com> Subject: Re: [PATCH 2/2] net: stmmac: dwmac-stm32: refactor clock config From: Paolo Abeni To: Ben Wolsieffer , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Maxime Coquelin , Christophe Roullier Date: Thu, 21 Sep 2023 09:55:15 +0200 In-Reply-To: <20230919164535.128125-4-ben.wolsieffer@hefring.com> References: <20230919164535.128125-2-ben.wolsieffer@hefring.com> <20230919164535.128125-4-ben.wolsieffer@hefring.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:20:48 -0700 (PDT) On Tue, 2023-09-19 at 12:45 -0400, Ben Wolsieffer wrote: > Currently, clock configuration is spread throughout the driver and > partially duplicated for the STM32MP1 and STM32 MCU variants. This makes > it difficult to keep track of which clocks need to be enabled or disabled > in various scenarios. >=20 > This patch adds symmetric stm32_dwmac_clk_enable/disable() functions > that handle all clock configuration, including quirks required while > suspending or resuming. syscfg_clk and clk_eth_ck are not present on > STM32 MCUs, but it is fine to try to configure them anyway since NULL > clocks are ignored. >=20 > Signed-off-by: Ben Wolsieffer This patch is for net-next, while the previous one targets the -net tree: you can't bundle them in a single series. Please re-post the first one individually, specifying the target tree into the subj. If there is a code dependency, you can post this one for net-next, after -net is merged back into -net-next (Usually within a week since the net patch is applied). Cheers, Paolo