Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1522BC77B75 for ; Sat, 6 May 2023 14:56:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C5B2685FA5; Sat, 6 May 2023 16:54:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="cKSrfo8A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 29F3B85F9F; Sat, 6 May 2023 16:54:20 +0200 (CEST) Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 786CD85E44 for ; Sat, 6 May 2023 16:54:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-55a44a2637bso43138607b3.2 for ; Sat, 06 May 2023 07:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1683384856; x=1685976856; 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=QQ56p4SZS4RHzA+PWJpwxjaQCIJRwdtcyOX+F2eH1gs=; b=cKSrfo8AScn26iErKi8/5PqAi9i1939R2p8FgD7feX5pd3LUhhL1n9hmhNU8yAvZ2w 6DtgrJZPBoJGL7lnO2BKpNHW0jy9NDcAjOseKCtTfyHdAo+NFhM19ubb6v6AIyy7K+oA VVg5+BBlGzI7wUTJq0Q6y4iCA9kbPj8jJgP9U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683384856; x=1685976856; 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=QQ56p4SZS4RHzA+PWJpwxjaQCIJRwdtcyOX+F2eH1gs=; b=D0CkfGsMK91mDMI8H5+ENaCRDO5W3h6Akf3xORKkD21xyixKAkAjprlMSk2Y31yQmz Ymf84bvPnJv/5zob3p8T1uJxPqRyyQddgSE1N/Hy+JZ31RH6j8RcRaL8XpKS6gchiRk7 NQPLWDv2wGtXsQmpOe5hjJxGIDvHjRxdBEZT+oTTyBc8bym54eowiFMrnvySTXO9tMXZ hyLBIBlwVnm+J/SARbHYa+X9aNaYW5EiQnZ+Ui4QDPlUUQi6k7JIIMcZBSWT4PpV+pVr pffz2twptufFx7Vf3xFUufr2WGyXUynQgt5DHOYqTaReqJKnMQO+HoFza/g+4g50vmMN KkCQ== X-Gm-Message-State: AC+VfDyjp+Rpqetlw3twljOH1S/10uEkcirIrd8m5jsjtZH7cbJeK8aI 51PVanEmCaJmKdNv7zL2KiIzyg== X-Google-Smtp-Source: ACHHUZ7bLCPYQhsQB108tl89iiXWKDAV9R5hav0bz6F05kkynGeJ6C0CkGEQ79uNXV2cnNIOWMWbbg== X-Received: by 2002:a0d:f304:0:b0:55a:382b:5e0f with SMTP id c4-20020a0df304000000b0055a382b5e0fmr5895368ywf.12.1683384856252; Sat, 06 May 2023 07:54:16 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-4494-b767-dca3-461d.res6.spectrum.com. [2603:6081:7b00:6400:4494:b767:dca3:461d]) by smtp.gmail.com with ESMTPSA id c16-20020a25a2d0000000b00b9e6f1f9c76sm1102399ybn.29.2023.05.06.07.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 07:54:15 -0700 (PDT) Date: Sat, 6 May 2023 10:54:14 -0400 From: Tom Rini To: Nishanth Menon Cc: Marek Vasut , Siddharth Vadapalli , Marek =?iso-8859-1?Q?Beh=FAn?= , Vignesh Raghavendra , Michal Simek , Ramon Fried , u-boot@lists.denx.de, Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH V3 3/3] net: phy: Make phy_interface_is_rgmii a switch statement Message-ID: <20230506145414.GQ293044@bill-the-cat> References: <20230414220645.37092-1-nm@ti.com> <20230414220645.37092-4-nm@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RhRom3mXe0oDTB20" Content-Disposition: inline In-Reply-To: <20230414220645.37092-4-nm@ti.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --RhRom3mXe0oDTB20 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 14, 2023 at 05:06:45PM -0500, Nishanth Menon wrote: > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > with Linux") reordered the enum definitions. This exposed a problem > in range checking functions to identify the interface type. Though > this specific api wasn't impacted (all the RGMII definitions remained > within range), this experience should be used to never to have to face > this kind of challenge again. >=20 > While it is possible for the phy drivers to use the enums directly, > drivers such as dp83867, dp83869, marvell, micrel_ksz90x1 etc use this > api. >=20 > Reported-by: Tom Rini > Reviewed-by: Marek Vasut > Reviewed-by: Marek Beh=FAn > Signed-off-by: Nishanth Menon > Reviewed-by: Ramon Fried Applied to u-boot/master, thanks! --=20 Tom --RhRom3mXe0oDTB20 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmRWahYACgkQFHw5/5Y0 tyw1Kwv9EoXkR0IBd8IXSGc6ivG4syldD2382IPul8mwNM1EZFGJatHlsFuU8mmE Jc3cKeFB0+mrNDR6SBf7fmz+Quv1sKxUu+EuUgGJpjmwO71InOqBRhlL+RyFs7O0 TmrAH4Vl/K25RnZed8eeMjAX4hGDcVFXbrSHzw5lfqkygiYSmIbBd3hQvn0pZoYJ ihhq+RNI83ocIV2ERS+P6PwnCteMFBLrkN73SnJkB7raGKJ+X1YOyNZNWDBqF7wq dEl+xELw8FvRkUEohZFrdfs6hF4XFeoNmC8cKCoioTGLOrjGAEoAOG1IwaSilFTX EebX9sKJ5+ctLzf4YsaAFwC9Tgx58CAaZbsBHVlGQNJ5oqxdwuBc7CsBVPDh+e6H wzCQFUF5BkKiA+du/5zwttbaRQJAQZ5Gzw4PvY3T2zrEgX06/JVRMORTtpCtHkvH zjQSmsCq0aQrrOgqT+xviAyGFgRejZ9EbPbu6Edl9mDZ71ZBIOUHbsSHvi53kSQD zMSnxoIi =IRqr -----END PGP SIGNATURE----- --RhRom3mXe0oDTB20--