Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1854092pxu; Tue, 24 Nov 2020 10:24:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0NJ8mGoeIkKc067XOpfSKmXgT4UYpol1p6nYRDd1m6O9lda8RQ94hXJYwbGOL0ZmrV2eM X-Received: by 2002:a17:906:748:: with SMTP id z8mr4916809ejb.546.1606242247213; Tue, 24 Nov 2020 10:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606242247; cv=none; d=google.com; s=arc-20160816; b=BFRqJZWJZMW73TyRScVqQQkYZgwlP02J2EYVI/xPBY6no4Ixq99mtY/6noTHchAVS5 RgifaHJbdjOdc6Gxcxftu2x4+WpHLX+swD8q44Ng+sDLqQ2d5GmgcbTd9jxHplGSnuSe +zv9YJuMv9GsOJyRC6PJIBYNVlZOnWByVWZe9YKszO1Ktw/STKOrlsMIuFHWvkkm05B5 dr8NZ/reahW+UzHcWM6ROqcZLrxXaRu1TvPULEiKhwa3hNtou5ljJcLQJUTiDPh7LD4Z pOvjFbf4VhilIIPGuRrHeHmxk4tkz0KA90PiVzM1j19X45xjMgM8dPaX8OU/X/EcOSEv Ga6g== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lOXjqWp/EDocUOsHP0psXVvpJIskpYJTvzKYdVMCdtg=; b=N/+Tns7Cukfmv4qMyBwpOS7LEtGvG3PBnlMl1ibSEXu9x0B2/XqI22759Wi3tBESXt zIrLkr2AJl3gIxa8D3uvZPAsb62Yv6fO7ZSHm2jmi/OjPI/43nIwDWEIXaLQ5CsxeHuY NR/+RhsetvLdugih3TboE2KryJG9VQloIln8BFOy63ppZYJK+IcdaGR4MTNy5XIuRnJ0 p1dav1+zN0tfCuhq3SoAFzVvuIrM5pzWX70lIMMEVFG5KhggMdJczI/C/0TUHwQf7SfM k34pBQcTSe1klUmQvhbB1/MZk5imlAKy784cqfWei+3hLGiz9g9zEalN0kg5kHm2Nj+h Sj+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vst+HhGN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm22si9231332edb.342.2020.11.24.10.23.23; Tue, 24 Nov 2020 10:24:07 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=vst+HhGN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390898AbgKXSU0 (ORCPT + 99 others); Tue, 24 Nov 2020 13:20:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:47078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390824AbgKXSUZ (ORCPT ); Tue, 24 Nov 2020 13:20:25 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AA105206D5; Tue, 24 Nov 2020 18:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606242024; bh=lOXjqWp/EDocUOsHP0psXVvpJIskpYJTvzKYdVMCdtg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vst+HhGN7iL5UenlTFysw1eusW9jH8Xax/gzhxICa8NjweLOyvWFzLZNdH9kOjAGr Ij7vfEkoNGkG0xy1uUCQMz1Agv9yjJX+knDS6zLeB/sq3DfFEsJwC/eXvv7HALqRGK 5gCZMNiCWVrWaa/2ateZuxRp+bG566FTQyEw+ncE= Date: Tue, 24 Nov 2020 10:20:22 -0800 From: Jakub Kicinski To: Antonio Borneo Cc: Ahmad Fatoum , kuba@kernel.org, Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , , Maxime Coquelin , , , , Pengutronix Kernel Team , has Subject: Re: [PATCH] net: stmmac: add flexible PPS to dwmac 4.10a Message-ID: <20201124102022.1a6e6085@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20191007154306.95827-1-antonio.borneo@st.com> <20191007154306.95827-5-antonio.borneo@st.com> <20191009152618.33b45c2d@cakuba.netronome.com> <42960ede-9355-1277-9a6f-4eac3c22365c@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Nov 2020 15:23:27 +0100 Antonio Borneo wrote: > On Tue, 2020-11-24 at 15:15 +0100, Ahmad Fatoum wrote: > > On 10.10.19 00:26, Jakub Kicinski wrote: =20 > > > On Mon, 7 Oct 2019 17:43:06 +0200, Antonio Borneo wrote: =20 > > > > All the registers and the functionalities used in the callback > > > > dwmac5_flex_pps_config() are common between dwmac 4.10a [1] and > > > > 5.00a [2]. > > > >=20 > > > > Reuse the same callback for dwmac 4.10a too. > > > >=20 > > > > Tested on STM32MP15x, based on dwmac 4.10a. > > > >=20 > > > > [1] DWC Ethernet QoS Databook 4.10a October 2014 > > > > [2] DWC Ethernet QoS Databook 5.00a September 2017 > > > >=20 > > > > Signed-off-by: Antonio Borneo =20 > > >=20 > > > Applied to net-next. =20 > >=20 > > This patch seems to have been fuzzily applied at the wrong location. > > The diff describes extension of dwmac 4.10a and so does the @@ line: > >=20 > > =C2=A0=C2=A0@@ -864,6 +864,7 @@ const struct stmmac_ops dwmac410_ops = =3D { > >=20 > > The patch was applied mainline as 757926247836 ("net: stmmac: add > > flexible PPS to dwmac 4.10a"), but it extends dwmac4_ops instead: > >=20 > > =C2=A0=C2=A0@@ -938,6 +938,7 @@ const struct stmmac_ops dwmac4_ops =3D { > >=20 > > I don't know if dwmac4 actually supports FlexPPS, so I think it's > > better to be on the safe side and revert 757926247836 and add the > > change for the correct variant. =20 >=20 > Agree, > the patch get applied to the wrong place! :-o This happens sometimes with stable backports but I've never seen it happen working on "current" branches. Sorry about that! Would you mind sending the appropriate patches? I can do the revert if you prefer, but since you need to send the fix anyway..