Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1966529lqp; Tue, 16 Apr 2024 03:27:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3fJEEDiKSWNHTq6Rf3aPvUtLfdG2SZM07Q1KCNhZ6vz63qFtMBgwEcpDi9lGy84xaNu4KE8yUp6v0d3ANg/DZekuX3KUBplAKP4fQSw== X-Google-Smtp-Source: AGHT+IFaRsgFN+q7Ymac13wyhbe2NJEOoQWsUOWHozs1V74odqlupq+EKp8vZRqtzrDwM1TTqhQt X-Received: by 2002:a05:6e02:1d98:b0:36a:2d86:90d7 with SMTP id h24-20020a056e021d9800b0036a2d8690d7mr16992698ila.5.1713263270928; Tue, 16 Apr 2024 03:27:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713263270; cv=pass; d=google.com; s=arc-20160816; b=s0ke2/jo4eUoggJZFFaKvkaDQ9VJhtkxFrYdZsnMPo0w1Qq5I3MTCjhf9A32IDp3uQ D8NApvVCCauRBmONDYsuT6IYT2h6nGWboBwWT5KYBjiMZ8iY64MzOqhYxbjaUE+Am1Ej kXMeEXfxBZXZE73nu0PyadIGmHsq7Jw0k7WFonkqKYD2onDDhdAQG7YMMKIxvCx0n3Id 8SlC6Z+Cs42va+xYr2Lk4q8T1bN+uic46U0sENJsEnLJ6SUgFJ3B/55t5xjnUb13MpFx NvY0uEpOWW8K4hjLn39HQRD5foyzKhQ3lcfBw6roewIIDwiIv3GEvkr+tZHkORt6KwXC B/0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=jMpD+iqIk7sAa1/rHFlDW/A5fWkcr8iBWlFV+lTM674=; fh=ttDTVVTfUAi8EVqyR+F6BWXiqJ5x9EbOHLe/NRc3GoQ=; b=1Gfz6SWMBY+18HgwtZYeDT73m9LB/awK4AAd4OnYXua7dBqBpWXTUGx9mB2opMhWAD 8SwIiI2I61L+nm28+vU/YVPzU8iWc8ppWeOMjf2NCtzDt+fbhLGnyGxpujqNm0Ci3oot yqAyXWedTrCTYWU/zIDv5qvHf0wCKbwDAhDIbDshoiCsaK/HpNV26SPBgOfrNXNkUBe0 C+Yb0t4/XGo7nt/YGEKOhg7403feAwXoMZHRMJcwvvgW8xybpKYrqbkNqPJKmdW8Ct+v dJg/7E1r980NihrWsjHVVlOqixvvN17RD4OjpxE/F3xsfhEIYldX3YIWeVdMS1CtptDd IHPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iUFkCVwg; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-146621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g132-20020a636b8a000000b005d8b8ca425esi9396288pgc.308.2024.04.16.03.27.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 03:27:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iUFkCVwg; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-146621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6C225282E60 for ; Tue, 16 Apr 2024 10:27:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3453F127E31; Tue, 16 Apr 2024 10:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iUFkCVwg" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD288127E23 for ; Tue, 16 Apr 2024 10:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713263262; cv=none; b=XeY/JCGAer1gVZYrLmpmp8CzuHX/O4Mql7xDjYYequcuDRq60qQpJdcsqQyFPtRAOkYhIU1J/NZkcOaD3U1z7HrWLu1uU2lgV3E8Ji8Hz8lIplZBdwMN12zuZrKKWjLcjEKvqwjU/WvQIkwYv0Qdw9W+/CJiAJTGdKpm2RVRvig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713263262; c=relaxed/simple; bh=jMpD+iqIk7sAa1/rHFlDW/A5fWkcr8iBWlFV+lTM674=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=t8za62Z3wqfqjjJmHICPtYTxzRXXACAFobdfq7sl2qQkj6RuIZfxKwiEsfAnpUOFALxQLqQeEcdXzsWMtvEvouwGsPd7lLXSYkEVHpZpQyZs7rD8r0945WUBxxU1gmRUZC7kKariwIOHDoBxA69+xD3NVQN8Vl0Spk7x6blgLZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=iUFkCVwg; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713263259; 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:autocrypt:autocrypt; bh=jMpD+iqIk7sAa1/rHFlDW/A5fWkcr8iBWlFV+lTM674=; b=iUFkCVwgmH+curvN/qYhgYWhrf9aF2xmG6sSGXIyq4D7mCLh4v75Iq8LmN2lC5p1en8eLF A82zEzmiFTNXkp8DmABDQ3QoWJGaLlvki20vPVvPK2dz8b/9pl8psfwZUX4U5x+xUr5vng QzWWufs6MbFV4Uybe/kXI4Eo74GgsZE= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-158-I05zHnnOMDukKEOlSiBC5g-1; Tue, 16 Apr 2024 06:27:33 -0400 X-MC-Unique: I05zHnnOMDukKEOlSiBC5g-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-343b9425ed1so927759f8f.1 for ; Tue, 16 Apr 2024 03:27:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713263252; x=1713868052; h=mime-version:user-agent:content-transfer-encoding:autocrypt :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=jMpD+iqIk7sAa1/rHFlDW/A5fWkcr8iBWlFV+lTM674=; b=vHDhdoW3zooCRHKTrQ/FVUMnQNOzO+Mt+w+i36Ma2yk4A4hLi4l7jQ6T0ZKyDmQI8L RcedjmupKjAZ6SouSFp5d424aAb1ymuThHEL6fUl2RKv+HrlMt+9gQ2euAh1s6o5u9Gs tLasoG4XvQ5HS899xI2DE2vd3rRrYW07bPL3UZUAr9IoLkjgvHy/UBYVwcA8Oeoj8z8m vKHC4usjOdlVZ6r2r/lCiojZqS4RKJgHGkNGx95D/AB4NcpRZ8Z+9Ww/sNTNFzFaT17R rdT495U33h1M4C+thw3lnnhtAUIMuEjCCJYJwVXGsNeWYkHkYb8auZO2tpkvP+ht4/So /j0w== X-Forwarded-Encrypted: i=1; AJvYcCWJqsOtScg3oMyl5jgSv3o5+VV6jtNWoti1CSbnXWrB/EwClRHmf8j9zLJBFNIk7VsKg4lyKA5DuegfC2p4S7ZZbzN102mCNaF6pelV X-Gm-Message-State: AOJu0Yy5hbbG8d2N0y+hyJAEmFLb94lNnEALkp3FCymSgp6muvF7bL4I sM0yfbUGecB2LkoIm5wiOgnuwr7siqQeA+yNiNx3P5Nmr/jWz/PmclXzFQsuaav3apLzGAis50k dM1Pd4xd/WJeh9fLxod6HPBj8sfPaAW48ueqixOyF06SabOgNTENTTLZ/N4dzdQ== X-Received: by 2002:a05:600c:3556:b0:418:3cf7:7f7b with SMTP id i22-20020a05600c355600b004183cf77f7bmr5227094wmq.3.1713263252098; Tue, 16 Apr 2024 03:27:32 -0700 (PDT) X-Received: by 2002:a05:600c:3556:b0:418:3cf7:7f7b with SMTP id i22-20020a05600c355600b004183cf77f7bmr5227078wmq.3.1713263251734; Tue, 16 Apr 2024 03:27:31 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-231-31.dyn.eolo.it. [146.241.231.31]) by smtp.gmail.com with ESMTPSA id q12-20020a05600c46cc00b00416e2c8b290sm22581975wmo.1.2024.04.16.03.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 03:27:31 -0700 (PDT) Message-ID: <9644a96d17152014c8e7f91e9786dde26f67d7a5.camel@redhat.com> Subject: Re: [PATCH net-next 4/4] net: stmmac: Move MAC caps init to phylink MAC caps getter From: Paolo Abeni To: Serge Semin , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Russell King , Yanteng Si , Maxime Coquelin Cc: Simon Horman , Huacai Chen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Date: Tue, 16 Apr 2024 12:27:29 +0200 In-Reply-To: <20240412180340.7965-5-fancer.lancer@gmail.com> References: <20240412180340.7965-1-fancer.lancer@gmail.com> <20240412180340.7965-5-fancer.lancer@gmail.com> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC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b/EmO/qeahfiG7zTpqSn2dEl+AwbcwQrbAhTPzuHIcoLZYV0xDWzAibUnn7pSrQKja+b8kHD9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2024-04-12 at 21:03 +0300, Serge Semin wrote: > After a set of fixes the stmmac_phy_setup() and stmmac_reinit_queues() > method have turned to having some duplicated code. Let's get rid from the > duplication by moving the MAC-capabilities initialization to the PHYLINK > MAC-capabilities getter. The getter is called during each network device > interface open/close cycle. So the MAC-capabilities will be initialized i= n > normal device functioning and in case of the Tx/Rx queues > re-initialization as the original code semantics implies. >=20 > Signed-off-by: Serge Semin This is a net-next follow-up for the previous 3 patches targeting=C2=A0'net', right?=20 If so, you should have posted this one separately after the other would have been merged back into net-next. We can apply the first 3 to 'net', but you will have to repost 4/4 after ~Thu. Thanks, Paolo