Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp98438lqq; Wed, 12 Jun 2024 18:33:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaodhPtuVYtSFiXUDbh+3T2iCBRPzrsW3RtDLxXtEh5Jo7XyZ9L5YHriLaUMbCAPDJ064clohCweOtbcA23QLnpcC3EthoI1czz9v/Zw== X-Google-Smtp-Source: AGHT+IGzd6rwgp0h0CpeY1pO0AdI0HeC9Oy7pkjm6LKNMvrt4nis/t07UZqHwVNyUiFvaIs4iv/u X-Received: by 2002:a0c:e74c:0:b0:6b2:9819:7552 with SMTP id 6a1803df08f44-6b29819765bmr24969976d6.16.1718242406144; Wed, 12 Jun 2024 18:33:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718242406; cv=pass; d=google.com; s=arc-20160816; b=P6gys+bjpESsOUYS/9o7G0vCJYTxxTgNrCsgdF+u9zynMH57nfD8HybMGlKIZUlrG+ 4qf7Kyxr6VvL6COqLJPNx1Me0QNfC0zcyMGZyjovTqBljCoz+ecbLrpfokBP6WFe0LTh Bki0PFQi/KxU75v19u+JT7i+CcZaRUB2zIbWthI52BUHw0lARjFxajA+vkD+ymv5Z5Zg f9E4bqjd0Rbi9RH96eJeHhkHu6xbDXSNbgzt4uUa1qzrhz5IJWEHtGxNrhbGFZjWQAEl 6mDZnbrkEYLhnnb46xT5Rz0ZgJ4H+4clgPyZDd9ImvN8yoxh6Ocanv8wOjBiBxazwKZw PuyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=qYTWI2kYO4qnIUZdtNVf10DQLYYupZG663I5+zZvKEo=; fh=UzckK48RcKlHjA4bhKvtWfpCrJD65JXmMLO0NwJq1jQ=; b=fU98+IM7Tlamts6uS5iCp+LT3j+Ro3jZd6ZpSZh4LbYbnRNcosoHqtvtIwSPCXcMng uJzS/se6+rIZeVPw/zGBQqjj66aoF62efQ7zyZ7LYeW1ZWzDRlevSouXnMtoyZlZBESg loevR1BG+jobSWs8j0zm0GGC4Hwwac15IimDfS9SGHWxTbgYj+JbYYc2Y1xGOYhoafZl ei+CAyPSU5TCGe/8D8vS+eKTNpEgvR9oSByrtMOY37fSNosSKyuNLl3Rro/gdG+y2x8B dW2sv7p3kkYAtidM0csRYuQuCKsI4ZuTmuh6PWrkUVg/6tsfD/VqcegTCBQSeJ/+9gPE HODg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="u3RG/+Qm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5afd52esi4216176d6.303.2024.06.12.18.33.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 18:33:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212434-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=@kernel.org header.s=k20201202 header.b="u3RG/+Qm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 D6F201C21294 for ; Thu, 13 Jun 2024 01:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0457310A0E; Thu, 13 Jun 2024 01:33:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u3RG/+Qm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 197B612B83; Thu, 13 Jun 2024 01:33:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718242391; cv=none; b=LJzQ2wnaiapMVyb13OwnpKjEsykmLY8evavB60QAzAInhe9pIIG4xby2TG/t5r/7pbkfxF9zbYO3KOGkNRLsSWPkiI9kVyeS+NM30vpIAaIG9rWm6wmoyaSfpGuZ84Qast4TfMFtMzl8Q64qetfTMQIhTV+J3C+FhIUaK2X06LA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718242391; c=relaxed/simple; bh=MWyhtnST40YbbxnfAwXhylv+xDPKS43fpIQmIg3zRfY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bia6OFGjVLN0IUtAIECFBISqPaaKqi0P9rOZGGhCOpJgZd10HMk1oFoa1tuz8Y17nQOgQ63XTTNahXxSXJDKCWdGWWKyTLTv7lsYIkWv+bP1H1hUPWYFOjpbzJ8iEYCvO77Fdwtfd0UoOmiRnMhfL6IHR2EoR+9KqL2tESL+rBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u3RG/+Qm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 360CEC116B1; Thu, 13 Jun 2024 01:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718242390; bh=MWyhtnST40YbbxnfAwXhylv+xDPKS43fpIQmIg3zRfY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u3RG/+Qm0PoyYf3nxwJ+VxfzLwPHD1Jgst78ruQL5zHjKP6qDFM22E7ou7pzmq+di /BeEYw0am4NOhQkdHMoVfqTBpEFngr9HGz0GY/msd5qd9ns2qJcFhqtGAut3QFYtgJ UJUgNFShqug1imhOYfBh8RWRl4Q627tO7twZ4HN/RJ4qv3jy54Msu7qgcPFHkMCLI+ Uhjfb911Oezk4R/Pzg0WwjIIpItuifd2pDFFoLk4wUaZyqJJRoH+B8Qe/05bkYx9Ps 0ixAxX3IIrNAUz7Uf7OVxlwsAgOvjECeo5ogaFnoJtebiW9ItV/GdKiyLbk1zrgFhk bF7IXpFM/rsGQ== Date: Wed, 12 Jun 2024 18:33:09 -0700 From: Jakub Kicinski To: Rengarajan S Cc: , , , , , , , Subject: Re: [PATCH net-next v1] lan78xx: lan7801 MAC support with lan8841 Message-ID: <20240612183309.01782254@kernel.org> In-Reply-To: <20240611094233.865234-1-rengarajan.s@microchip.com> References: <20240611094233.865234-1-rengarajan.s@microchip.com> 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-Transfer-Encoding: 7bit On Tue, 11 Jun 2024 15:12:33 +0530 Rengarajan S wrote: > /* define external phy id */ > #define PHY_LAN8835 (0x0007C130) > +#define PHY_LAN8841 (0x00221650) For whatever reason the existing code uses a tab between define and its name, so let's stick to that? > #define PHY_KSZ9031RNX (0x00221620) > > /* use ethtool to change the level for any given device */ > @@ -2327,6 +2328,13 @@ static struct phy_device *lan7801_phy_init(struct lan78xx_net *dev) > netdev_err(dev->net, "Failed to register fixup for PHY_LAN8835\n"); > return NULL; > } > + /* external PHY fixup for LAN8841 */ > + ret = phy_register_fixup_for_uid(PHY_LAN8841, 0xfffffff0, > + lan8835_fixup); > + if (ret < 0) { > + netdev_err(dev->net, "Failed to register fixup for PHY_LAN8841\n"); Don't you have to unregister the previous fixup on the error path here? In fact the existing error path for PHY_LAN8835 is missing an unregsiter for PHY_KSZ9031RNX. Could you please send a separate fix for that with a Fixes tag? > + return NULL; > + }