Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3707071rdh; Tue, 28 Nov 2023 01:18:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0SqWzBzS20Vj7k978OjUoUaM4yrGAVCoVydG+RZE7NAwi/i0k7r9sRRvZrS9pQB2SZan3 X-Received: by 2002:a05:6830:4af:b0:6d8:29a2:9ab8 with SMTP id l15-20020a05683004af00b006d829a29ab8mr5832324otd.32.1701163132395; Tue, 28 Nov 2023 01:18:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701163132; cv=none; d=google.com; s=arc-20160816; b=RMHHK1UaY0covDLwTXKc4ayzlofJbuWHVHMzjRl9ryiv4zYh1+UNjsy3MWPVrNsmu1 vbTv3cBm3VyZgcvhgQqNpLJd9/AoYwoQXY3ABd2j7t+Id3C/M5yA6PW2Lt2ioOIJk+8V nDDf29CipaRybEvJCN4pni78lDO23AHYxMZtiOQfceK5oHzg5CmErwkjwFqVh2JY/9Sq hrguupTkGTZESuG0qX326gp/QJX/jEaXt5cVQf0ZUUa06LZlTXUyIju0tA2it5MeKKpI EsLjYQymaU9mFJbVgeKoyKtZgVO/Fk10pUApl28tuHsibkN0q54fTnjZIKeBTvTts6xb L21g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BX5EHWclAX+Y7Su5y4Ao52gq2sxmx6CDB37q7Z31L9s=; fh=vn5dg0TTZBoyJN9sZMHop/yw2qMYSHKVcYPn1gLjijQ=; b=pwrUuvwQvb9Rnv1Ztvvxoj9n0vM7lH9boAmLGlpUtzvhlt7L2S4msJ53DfpjNfOfNH c27zrS3W0W2rcZ+7M0HiIqKkor7efPFUJDaVbW1ffhTPZtqASoAAAugsTPic1weFjq7L QZx3d0WCnZ2gliSdRL9/Yml+gjoD9AVDmu+1K8C6QGWJ+EwrIqUT9FR8NsRdIXLm6q8c nsv5Zxj4TRC78QSOHLglP5Fyhmhfk0hpqvJoJNIGbCQfkW8/patCehYkq3MIYNwbKviu PI0EgDS4ZBdjQVtk8UrfKb9Y0ZateIURiAajfZAd1KGDB5n3ACLFi0ucq82NL+QjeH4V OnRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b=0kXp9crk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t3-20020a63d243000000b005c21fbab567si12063426pgi.659.2023.11.28.01.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 01:18:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b=0kXp9crk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 21E528136BD8; Tue, 28 Nov 2023 01:18:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbjK1JSe (ORCPT + 99 others); Tue, 28 Nov 2023 04:18:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234805AbjK1JS3 (ORCPT ); Tue, 28 Nov 2023 04:18:29 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1652B10CB for ; Tue, 28 Nov 2023 01:18:34 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c993089736so32992411fa.0 for ; Tue, 28 Nov 2023 01:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ferroamp-se.20230601.gappssmtp.com; s=20230601; t=1701163112; x=1701767912; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BX5EHWclAX+Y7Su5y4Ao52gq2sxmx6CDB37q7Z31L9s=; b=0kXp9crkOPIScGIigzjnLD4mzhLulOhEhYtWMRkamlQAviqWkrH6i589kemK3FPZlJ Xq8zhG1y8BJ+6mWcV2Lg/fwZZDOtEDBBuyMgznjnsK7f+PmtIw7CMpUejtA0N6k2RIvp ux3dUWUWZvQhzubV94K2fSi3hV2DUvSn2NFbdt7z8lX22lAQFodhNqK48B28r5LT/KpL 4ZAe5LupYOzu3uxapGL0Ssnq96k6MV0gVamARAtCQZcx92ks8AFa1Z5ENsWg31I2oCLy NfqimM1IaRzQj065u5OedsguzPM+O1UzrpvLoFhXuoTKpaC7I4aXmTfbJa3aGbVfmQXH rjIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701163112; x=1701767912; 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=BX5EHWclAX+Y7Su5y4Ao52gq2sxmx6CDB37q7Z31L9s=; b=OeRdDuMk8LskXzbtDwVzMBpWRMaoxN5nR+eMtr3XBkIWhi1WQYBKYnW7r8oklbUClY uqacH2PaH4jZkkVHCPO2PnXjsJ1I+wx7Yrg+NlId/RBqG5RAs2ucvNC46v9Nf9uvTgEm au9nt/H5jSBvvMXA9cBPrwFzJUlZrdjVqb//CgkEqg2f0rfgHREJMCbuJ+13XmR18ngi ynTGbFGiUYZlhRDSWkv0ZtRF9GhglUeTqvOH+WnaQecg8F5/k5Cm/n3tlaB2D1OhBEZK 3Y503JSFIXtJze11l6YTzMIXyHg2Au/XW7BoKJJGwbCGGFMY0DnmVw9W+9Wc/uN59Vrt PNvw== X-Gm-Message-State: AOJu0YxRh5vw7c9DNqTWbGuJkaEpEAi9eFotCLBDYPARqMKeRMzrcv6h S9Z0HAri5hBSGKAoqGeLFnw8xPdpgtI5eMuqYY0= X-Received: by 2002:a2e:2f06:0:b0:2c9:977c:a5be with SMTP id v6-20020a2e2f06000000b002c9977ca5bemr3358646ljv.24.1701163112307; Tue, 28 Nov 2023 01:18:32 -0800 (PST) Received: from debian ([185.117.107.42]) by smtp.gmail.com with ESMTPSA id u10-20020a2e9f0a000000b002c99eb9c39fsm751701ljk.26.2023.11.28.01.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 01:18:31 -0800 (PST) Date: Tue, 28 Nov 2023 10:18:27 +0100 From: =?iso-8859-1?Q?Ram=F3n?= Nordin Rodriguez To: Parthiban.Veerasooran@microchip.com Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] net: microchip_t1s: conditional collision detection Message-ID: References: <20231127104045.96722-1-ramon.nordin.rodriguez@ferroamp.se> <20231127104045.96722-4-ramon.nordin.rodriguez@ferroamp.se> <142ce54c-108c-45b4-b886-ce3ca45df9fe@microchip.com> <2125cc12-1785-4a49-91c3-6479b0f4044b@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2125cc12-1785-4a49-91c3-6479b0f4044b@microchip.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 01:18:49 -0800 (PST) > > > > But the change was dropped in that patchset right? It's not present in > > netdev-next. > Yes, it was dropped. The reason why I gave this info is, you mentioned > in the cover letter that it took some time for you to find this in the > datasheet. Ha, sometimes I have bad luck while thinking. I guess I never understood that change and subsequently forgot about it. > > > >> As it is recommended to do it in a separate patch and also the > >> datasheets of LAN867X Rev.B1 and LAN865X Rev.B0 internal PHY have these > >> register is reserved, we were working for a feasible solution to > >> describe this for customer and mainline. By the time many other things > >> messed up and couldn't reach the mainline on time. > >> > > > > Far as I can tell 'collision detect' is described in the following > > sections of respective datasheet: > > > > * 11.5.51 - LAN8650 > > * 5.4.48 - LAN8670 > > > > The rest of the bits are reserved though. The change I propose only > > manipulate the documented (bit 15) collision bit. > > > > Is your point that the lan8670 datasheet is only valid for rev.c and not > > rev.b? > It is valid for rev.b1 as well but the current datasheet for rev.c1 > doesn't show that info. Thank you for clearing that up! So if I get you correctly this change would in fact be correct for both lan867x rev.b and rev.c. > > > > Andrew suggested on the cover letter that it be interesting to look at > > completly disabling collision detect, any strings you can pull at > > Microchip to investigate that? > Unfortunately I can't commit anything from my side as we are occupied > with other activities. But definitely I will try my level best if time > permits. Alternatively you can contact our Microchip customer support > team if you are interested to do this testing at Microchip. I get that, might do as you suggest. > > Also any input on my suggested testing methodology is more than welcome. > > > >> We also implemented LAN867X Rev.C1 support already in the driver and > >> published in our product site and in the process of preparing mainline > >> patches. But unfortunately it took little more time to make it. > >> > >> https://ww1.microchip.com/downloads/aemDocuments/documents/AIS/ProductDocuments/CodeExamples/EVB-LAN8670-USB_Linux_Driver_1v0.zip > > > > I'm aware, we've been using a derivative of that work at ferroamp for > > development. But it's been driving me nuts, being the 't1s guy' at work, > > and maintaining out of tree drivers for weird dev boxes. > > > > It's not my intention to beat you to the punch, I just want a mainlined > > driver so that I can spend less of my time on plumbing. > I completely understand. Also it was not my intention too. Just to let > you know why it is delayed in reaching mainline and a quick reference > for the existing implementation. Enjoy! I get that, in an ideal world FOSS would be the top prio for all industry actors. I'm lucky enough to get some time reserved for it. R