Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1275287lqb; Thu, 30 May 2024 06:01:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7vlR0DdwTGp/NebBKLYKNA9xV/i7iwyR2bWXjvpLzxwyqs+MJfzXQl/my+BcN7T6+ybxCvMZ+MAT7FSVWyyQg3qLywg77njmd7Gpr6Q== X-Google-Smtp-Source: AGHT+IEr2IkKiOISiBxHMcNox+WOfgQWzM+XM7h/ffzmGCsLIkO4zbarki/cYZKXkd5u7/Py7XLC X-Received: by 2002:a05:6122:a15:b0:4e4:eb50:fd5b with SMTP id 71dfb90a1353d-4eaf24bffd3mr2248245e0c.16.1717074077683; Thu, 30 May 2024 06:01:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717074077; cv=pass; d=google.com; s=arc-20160816; b=xRz5nMVnPBXhxqLtVd4ZZuNmwVfE53dKeYPS5kkBKVJao7jpyBfE9kEQoRKIGQ/t5v CLTTecT7jeAnkh7GVxdbQWlVsZzHW6BhRFWv522V8hrENEsEinNNuX/6na7afKMc3xgN 6AGoGO2ahTS2SzyQ2A+AIsWVUgdMfhN7sRCCaIUBUcUEXtJSlsb04z2RallNGwICdp/2 BAYQcPmnpW3ZQ9ONbkXPo6oGsJgr3NOyrcBu90UuwOCchca3z+ieX3IufwAmy2RHZZ6j 98xrl6yBhT0qGE1Gi7+Sg6/to1ixmy4jC4EI4sJKMOfndkkgZ/6VTJ+XxEOwfxkHvTVz D6gA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9qH6bqXZWDj2VvkhQa8r0x2CDiDZr/N+uYFn9yj//1U=; fh=meepCrudNWAnjPxIoH4xygC/KFVrggvw17ORqX2eKnk=; b=s9J+iT8I9IbG/FUMyh2hRREEuTEo2HplhvAsFV73I2JRXTT9eBf7okr5YXrx1Q1VrU JkJLckJuIchu7iKujYCMFLnw86+X3cbYz1vjXPyr41Hn/ikP0z5fzYCq6N4MEXB9Gveu 4YWcRLZAcYArHyjRngocPWWDQmaG0gBPTcRgNKGjADBv0gbmscHB+oi8UTnE0Rui54Eh dSgjvOuWSmK0Z3uiNFmcue/uXfF5l1IJ+YebuCFaWJqDNXMP73Edu1DE6UZIoDudh2kv A/n0DabFM5RAUYIbYOLrEZDXgemApXXPdhJBWgFkv/B/W2se1VYzWD4aVKphFQZ1JwEC 8mhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ED8paIrY; 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-195399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48a3a3b62c4si3463138137.644.2024.05.30.06.01.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:01:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ED8paIrY; 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-195399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195399-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 49B0B1C235D1 for ; Thu, 30 May 2024 13:01:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F63F183065; Thu, 30 May 2024 13:01:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ED8paIrY" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 5855617CA10 for ; Thu, 30 May 2024 13:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717074067; cv=none; b=cjh9VRsQvsyIgbcvp3TAbfAQGTId/qUyfqsxO6N5+zI3djmBdYqoM3PeJpTsHoC6TghAywRzq4PTClAYMZ5DCjcsv8xK7VhqJJITUhKlFcjaCiC+Kyj2OaFw4gHDBLylbPornX1Lk2xjFYPMtbN/noBNNzn7Mjwk1jcVkdxtvxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717074067; c=relaxed/simple; bh=QbG0ygvFhemxwXbo8UH3vbamKCGJA+4BeTD1i2CVlnk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mySV7eKe/Cjmt8CZ+hMT9/Xjob2pvHt+e4iLAr0zH8b93ryCDFvLfx1hySyWPVtiP3Jpm54lQhZL8ChyS23slVIm/P+Wv7xrEj5lsXCjWZ/d8Y3s93qxlz4fEqWMxGkRTXc2/XQ4EdQKSCemmEuvDFSOyOW4V090IKJXOnqPgqI= 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=ED8paIrY; arc=none smtp.client-ip=170.10.129.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=1717074065; 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: in-reply-to:in-reply-to:references:references; bh=9qH6bqXZWDj2VvkhQa8r0x2CDiDZr/N+uYFn9yj//1U=; b=ED8paIrYZWhr4SIW2g1q+PCn8bQ7osKJaRdKp8lT4MvvwYdT/ydcskt2lk+LJpnaoxDWxV LVCpyXtamtEEbTJDvFQM25zQamDPAJhs85LptYY+QsZPnbm1hzNojN2s332h1qHMWMi69M 0iE+zYKFttKEEqEgdV+7dLlUcxJXNqw= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-151-bls7KdYsPWmsqtLQu_quZw-1; Thu, 30 May 2024 09:01:03 -0400 X-MC-Unique: bls7KdYsPWmsqtLQu_quZw-1 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-43fb02db6d2so8923751cf.0 for ; Thu, 30 May 2024 06:01:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717074063; x=1717678863; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9qH6bqXZWDj2VvkhQa8r0x2CDiDZr/N+uYFn9yj//1U=; b=Fr91aO6a2rkG5/2+D8/4b2TEr5LbFRkWUntgp3E3GZ1YE3nH1fPbmU/mTXYBixUNxV eUkeiePCYORR7XVZZNbPdScXMs+dY8M9+Qlj0HMKUdS90/ZfvsCrCDj2+ObbrYbZLHu1 c5YarWy59RfUwZHwDvMea0CzsmePPPnevbg0uCQrmi4s/0SbyIuFyotPIuSqM+LctNjH Sb1nKuSidhPF9kMagscSTD1HwmGD4BEcV65+xNMe87y9FC8LGe3Nd1fE5JpyZqrLWq4Y GWLxPzWurnl7UXyzuVVRPtvI9PrTCrSacHxh69FD9cGopqh2Ag1ibHLvDRkbBdgxgi7R VYww== X-Forwarded-Encrypted: i=1; AJvYcCVhAoLYLhMVk1MsJJ4M1ljG+9dBCl+XNKPMrnS2sBdfHQSHgAD4mkZgIUXfEO45ZyQ2lUC/3ZzdfGgSEhZfoBLxNdJ2ztxFkdLcE5gt X-Gm-Message-State: AOJu0Yz3SvFNB/+0fnFjrIfd/zJIFO4wOJZ2FvQZd2ymdTekKPbIpTwY /GrjNSwph71bQjNyZl1dtB6m43c/UCv8jn31SYIbsMKx4/peWJQ5vAVq0t+pRhddGdI5+b37yur s71usGrjw0+Wz5MnNI0iIW6WSNSmXGlajWTS/Cm1nlov82wk7ot1qyE+gKwL/FdsMrD1vWw== X-Received: by 2002:a05:622a:83:b0:43e:3d8b:b6b9 with SMTP id d75a77b69052e-43fe930e9e0mr21741941cf.44.1717074061989; Thu, 30 May 2024 06:01:01 -0700 (PDT) X-Received: by 2002:a05:622a:83:b0:43e:3d8b:b6b9 with SMTP id d75a77b69052e-43fe930e9e0mr21741561cf.44.1717074061340; Thu, 30 May 2024 06:01:01 -0700 (PDT) Received: from x1gen2nano ([2600:1700:1ff0:d0e0::33]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43fb18b0e3bsm65135651cf.68.2024.05.30.06.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:01:00 -0700 (PDT) Date: Thu, 30 May 2024 08:00:58 -0500 From: Andrew Halaney To: Andrew Lunn Cc: Sagar Cheluvegowda , Vinod Koul , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Jochen Henneberg , linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: stmmac: dwmac-qcom-ethqos: Configure host DMA width Message-ID: References: <20240529-configure_ethernet_host_dma_width-v1-1-3f2707851adf@quicinc.com> <7w5bibuejmd5kg3ssozaql4urews26kpj57zvsaoq2pva3vrlo@agfxwq5i65pc> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, May 30, 2024 at 12:22:52AM GMT, Andrew Lunn wrote: > On Wed, May 29, 2024 at 03:50:28PM -0500, Andrew Halaney wrote: > > $Subject should be have [PATCH net] since this targets the net tree: > > > > https://docs.kernel.org/process/maintainer-netdev.html > > > > On Wed, May 29, 2024 at 11:39:04AM GMT, Sagar Cheluvegowda wrote: > > > Fixes: 070246e4674b ("net: stmmac: Fix for mismatched host/device DMA address width") > > > Signed-off-by: Sagar Cheluvegowda > > > Also, I think the Fixes: here would be for adding support for this SoC > > in the driver, not what's listed? Might make more sense after you have a > > proper body though. > > This is a tricky one. > > Fixes: 070246e4674b ("net: stmmac: Fix for mismatched host/device DMA > address width") is when support for different DMA address widths was > added. This fix cannot easily be back ported past that. > > 070246e4674b first appears in v6.3-rc4. > > dwmac-qcom-ethqos.c first appears in v5.1-rc1. However, Qualcomm did > not start hacking on it until v6.7-rc6. It is unclear to me without a > deep dive when Qualcomm actually started using this driver. > > We might actually be looking at this the wrong way, and should in fact > be looking at when a DT patch was added that made use of the driver, > not the driver itself. If it was not used, it cannot be broken.... > I should have been more specific, sorry. I think this should be: Fixes: 8c4d92e82d500 ("net: stmmac: dwmac-qcom-ethqos: add support for emac4 on sa8775p platforms") Which appears after 070246e4674b ("net: stmmac: Fix for mismatched host/device DMA address width"). Reason being that specifically Sagar's patch is indicating that for the SoC's/compatibles that currently use emac_v4_0_0_data structure, the DMA address width needs to be specified. If we were modifying structs that were added prior to 070246e4674b then I agree, but at least the change as is I think could indicate the above Fixes. Thanks, Andrew