Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1354055rdb; Mon, 19 Feb 2024 12:31:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX0C9MiI1hwvmAPlwaMIOnSHDaU3lDc9vEJBcFWLAx4nX9qqN1/7ZcSy+OFN06IiFXsEAMcvZMhNd69aLCFTfA79sqQq9fwKF+JwvMjhA== X-Google-Smtp-Source: AGHT+IEVOIUVKpvFpBZlNBNbEO/j5yizKyinCDGxJskLpx7xO2zoBhoVdyZBdHoFgKEhu0kY61sT X-Received: by 2002:a17:902:e882:b0:1db:f95f:8891 with SMTP id w2-20020a170902e88200b001dbf95f8891mr3819606plg.11.1708374713929; Mon, 19 Feb 2024 12:31:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708374713; cv=pass; d=google.com; s=arc-20160816; b=mhP2gLCKMv8XBeOWu9tImwUFpOJk4NnRUPZ3Dhm4ewq7GCiD1D6tV483IqzVozPEjK inbSgiACJf7GYDojVCwrbVmdWctY4OYhspqYJy+kdv9bVkCwY+bIWXyF+O7hGzJy+oSX XFOj8mXCIU3c69hDAdJ0ErfeC/qXyEii49S8wUw2D1RY5K2yo8mF9xHOBG7LBB1zt0f7 WbHpFdvFNL+X5y1hWVEARUVVkL0B/2TOR8fDGJNdCQjGh+RbN4MqOnB5RPuuy67q11Kc /UDSxwaKj8b5kxWu7S+f/9mDXaN6TPgS9CrCQDi5M2C3puayJ7cTA8K/3nGKvbsxRHPk nFXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=e/xxPCmI7O5Vn7789fiRXPJc1b6HMLkN+s1b1aXSSnc=; fh=RuDFs5i7dfJfX6ksUQgCi2hY/6N80L4dENBLvmM/dtA=; b=fKGsesJK2G+wgSYGw381uGsyGsSdsdKgm6oZs4akthZ2KsQWNrgIBxFd1SytFDFvWy mE/84i5jX5+H8nHjkdH+Dqv0q07UEGn31DCWv8P1FGEC+80MQH/cNmo03/KaLUShXO05 iQaNSPEI/vPybUyQR0bxsomg/N56BviBdefiHrvrp/qGbqIg1Hgx00832DJEJs/NluRT AVhqKnLk1Y+HmBAre/l9bvv2vLuD2eyUUBr63tb7jRe4vKcrjGs92Kn5pSwNr2uwIIsB ZSXpUmMZrzEMxP0JzCK5hzZMssoWppNFtItSHn739GkdQM+3BMlKl5tK2FD1BjRycNvc cmfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VAfrnbQy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-71947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ei16-20020a17090ae55000b0029724b7788fsi5008937pjb.9.2024.02.19.12.31.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:31:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VAfrnbQy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-71947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9997CB246CD for ; Mon, 19 Feb 2024 20:15:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61F25524D9; Mon, 19 Feb 2024 20:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VAfrnbQy" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 364FE535A4; Mon, 19 Feb 2024 20:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708373724; cv=none; b=BJRHYP3YCAY/KwoB6sqKPYi+fvLiJh1z76xdNelcM1KKfXPkO7Frfurx650BhPVuio0WN8dNFFQeo3sfGqtqApwbgpQZuTk5OaFJQHXw/ZXbxoGso1JgaEo8THTi7Lub/l4t1rPczwzacAqLfFlD3W86cpfil0bdwLrRpP4re78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708373724; c=relaxed/simple; bh=1i5Z5tmkT3Ig7YFX38izakWgveapzbBQPWyZs2wxtg0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ajgbZvX7849DcbDXi5grajjimi70AzKHhO3k0Lf1hFNIsgC3ojVnY2lxi6E4bxzKXzt/6pvai66wjSm09aB24Nbs2u7sjzyBdARS5hesI6dh7rFGkRWGYmhf74d8qn/qTU1XyBWVsS+yr9jeyKTjBoIFU+oeVbSuobHLkorkVrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VAfrnbQy; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1d8aadc624dso36527655ad.0; Mon, 19 Feb 2024 12:15:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708373721; x=1708978521; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=e/xxPCmI7O5Vn7789fiRXPJc1b6HMLkN+s1b1aXSSnc=; b=VAfrnbQyOGDmy53TEjyhU/zSz0Ov0TxBJ2shtm6Qnri+6tu4On0v4+g/aQ1+m9ao+A op0gCrHpb6HOSaE+lhqp7ajosE/vfFybv6qTqKUUei8SANt+/WOiqIiLzWDR1/GQ5AwX unSKTw8V+Zb77J8CWXCamhwHadwkyEyzz0/WUdCaqDiVv3r4/BwqOD4QIOBLY8TyAEDf bmhGSFqRryCnceEmjYD5GGH7j2pWQ0gGWOSxpIEgElU4XfVTZm0chOVMZeeEzbIbdDQU lqfWy2ovxxFDCGMqeMP4EWtxb1pKPRJp/1bbuVx1i9TBXRLl+T56NeyFSNmIqes32vhB wy/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708373721; x=1708978521; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e/xxPCmI7O5Vn7789fiRXPJc1b6HMLkN+s1b1aXSSnc=; b=V+u/9NUCxuXOr1k88XDawBn6rIsb7b6R/0CuDKCVBQK3jarbsb93tYcNLtUr++KQPT rD4L0+EL9JQVmOiIvV+frP3aAUBGEi6Sfqo+AyEQ751wHMlI2wxII5dc25gUpNrdD+y1 0QENlgABm43Kq4av9S8S/d6iat2v5PXXvn/QmKtC6VCJHIqMEky7tAvsKbTPvO0OM/FM hk8r+A2iRUWFc1VTIiCYYNrS9y/7+lNBt3wl91csqir0MstsFKNmUTTvHOis8+aL3miA LTzO9VlludWR89tI3VpxM5/QopAtoIEOSRus5ByDPx6oFa3x2DCF5fSZrVgRkf1doT/K Fq1A== X-Forwarded-Encrypted: i=1; AJvYcCUkaOAIRTJlBk6HLW5DhIO7ZoV7+sXza5CBFsoshGj2S5AbYsybNO9dDm/Dn1vYA+GVjmyH9iOY7jTKpxNNjnZ40StCRsAQcbaGx+H8jZA6maJFCsMkLZKy5ECrULSmYr45bcQ1 X-Gm-Message-State: AOJu0YwQMC9YYZusi7H6sucDP4MJyeaIgBhLGqKfAodWzbafOqvKD79W QZz7SOrqQEgiZYH3Wgf0wDtgnZAvjllB6YDXfXxSechsA0FJWUPt X-Received: by 2002:a17:902:b285:b0:1db:e089:7461 with SMTP id u5-20020a170902b28500b001dbe0897461mr4615033plr.31.1708373720938; Mon, 19 Feb 2024 12:15:20 -0800 (PST) Received: from [10.230.29.214] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id jx7-20020a170903138700b001db68cf242asm4808036plb.49.2024.02.19.12.15.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Feb 2024 12:15:20 -0800 (PST) Message-ID: Date: Mon, 19 Feb 2024 12:15:14 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [net-next RFC PATCH 6/6] net: phy: bcm7xxx: rework phy_driver table to new multiple PHY ID format Content-Language: en-US To: Christian Marangi , Florian Fainelli Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Broadcom internal kernel review list , Robert Marko , "Russell King (Oracle)" , Greg Kroah-Hartman , Pieter Jansen van Vuuren , Nipun Gupta , Andy Shevchenko , Puneet Gupta , Abhijit Gangurde , Umang Jain , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240218190034.15447-1-ansuelsmth@gmail.com> <20240218190034.15447-7-ansuelsmth@gmail.com> <6146eb3b-720a-4523-bcc7-8e2656aeafef@gmail.com> <65d384ab.7b0a0220.15279.bf48@mx.google.com> From: Florian Fainelli Autocrypt: addr=f.fainelli@gmail.com; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwHXZOu8hL4nqwlYHRa9eeglXYhBqja4ZvIvCEqSmEukfivk+DlIgVoOAJbh qIWgvr3SIEuR6ay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iy8AuTYQ48m vIyQ4Ijnb6GTrtxIUDQeOBNuQC/gyyx3nbL/lVlHbxr4tb6YkhkO6shjXhQh7nQb33FjGO4P WU11Nr9i/qoV8QCo12MQEo244RRA6VMud06y/E449rWZFSTwGqb0FS0seTcYNvxt8PB2izX+ HZA8SL54j479ubxhfuoTu5nXdtFYFj5Lj5x34LKPx7MpgAmj0H7SDhpFWF2FzcC1bjiW9mjW HaKaX23Awt97AqQZXegbfkJwX2Y53ufq8Np3e1542lh3/mpiGSilCsaTahEGrHK+lIusl6mz Joil+u3k01ofvJMK0ZdzGUZ/aPMZ16LofjFA+MNxWrZFrkYmiGdv+LG45zSlZyIvzSiG2lKy kuVag+IijCIom78P9jRtB1q1Q5lwZp2TLAJlz92DmFwBg1hyFzwDADjZ2nrDxKUiybXIgZp9 aU2d++ptEGCVJOfEW4qpWCCLPbOT7XBr+g/4H3qWbs3j/cDDq7LuVYIe+wchy/iXEJaQVeTC y5arMQorqTFWlEOgRA8OP47L9knl9i4xuR0euV6DChDrguup2aJVU8JPBBgRAgAPAhsMBQJU X9LxBQkeXB3fAAoJEGFXmRW1Y3YOj4UAn3nrFLPZekMeqX5aD/aq/dsbXSfyAKC45Go0YyxV HGuUuzv+GKZ6nsysJw== In-Reply-To: <65d384ab.7b0a0220.15279.bf48@mx.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/19/2024 8:41 AM, Christian Marangi wrote: > On Sun, Feb 18, 2024 at 08:26:29PM -0800, Florian Fainelli wrote: >> >> >> On 2/18/2024 11:00 AM, Christian Marangi wrote: >>> Rework bcm7xxx PHY driver table to new multiple PHY format >>> implementation to reduce code duplication and final size of the compiled >>> module. >> >> I like the idea of sharing as much code as possible and creating a smaller >> module, however by changing the name, you are creating an user-space ABI >> change, we rely upon the exact PHY name being shown under >> /sys/class/mdio_bus/*/* and this change will break that. >> > > Thanks for putting this concern on the table but isn't that generated by > dev_set_name and PHY_ID_FMT? from bus->id and addr? > > Can't find reference of the name entry in sysfs. Am I missing something? > The name seems to be used only by logging to print info/err/warn. The name will appear under /sys/ like this: ls -ls /sys/class/mdio_bus/unimac-mdio-0/unimac-mdio-0\:01/ total 0 0 lrwxrwxrwx 1 root root 0 Jan 4 21:27 attached_dev -> ../../../../net/eth0 0 lrwxrwxrwx 1 root root 0 Jan 4 21:27 driver -> ../../../../../../../../bus/mdio_bus/drivers/Broadcom BCM7712 it might be OK to change the driver, but I can tell you this is going to be breaking a number of our scripts here... -- Florian