Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp774555rdb; Sun, 18 Feb 2024 11:03:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXPaKoSlzZvH0+SdlPvy5LUS9EAVHJpH9GmfC5Q1VvoS+PGf8/L8ECfAYluE1zqCrI7VZGB2v92m41Sa80YfamiikqgMN3fKe6fmAGOIw== X-Google-Smtp-Source: AGHT+IGW8NLlL2OnsG+oKUs31ucQF28/Fj6fqJVPQtU8Dhl70kd8YcAxYvpQYrOrFUtHtXkHf/p4 X-Received: by 2002:a05:6a21:1690:b0:19e:4e80:38ca with SMTP id np16-20020a056a21169000b0019e4e8038camr9182572pzb.2.1708283024776; Sun, 18 Feb 2024 11:03:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708283024; cv=pass; d=google.com; s=arc-20160816; b=RapCstql+fGGF8slYqphG61auvHDv9+rKDUiq0F+o8FzVGJja74vHe1gexG/ZUBHfq /wlAZETgAPYoQh0V9kOwYpIFtQFP0p6OhVoBVoG9IDnz9oSV9jWvGCrdJJ4joGBuu/3O w1XUyf43wSZsvslZupHcaUfXf2K8EqgjNxqiMhUygvEUfO4skXHGlPp0YF9jqRcTco/q SYz9mgSNDH5FoWyLxcN3c+b+CxPVKsbxIzBQFbkMu03vP5S3U46tU0sq3iEK1EGtbYj0 vRHg8UCV/XiAeaqId632er4DUyV+GOZr6hz/vusDOPNXUzw9V/h29zUi9nI5N2zqMM6f QExA== 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 :date:subject:to:from:dkim-signature; bh=gDLjeqjcDDwD7/npT7DJCTwwYCyrxg7kY3LYI6eWDbI=; fh=OzSk3E3Jw/hoD0sQDoVLvuPafFGCkYCmyzv8Afk0ffI=; b=1IFqGs4NwJdNcwXEjrzUkxnuLxpbBXPed8x8R1MYK3PdQXJ1w+Sqz8kwApnk8wMbwp AoUxI98ziRLicLWLBiSzDaqVDtaLhn8fEGtL16ws2++BmilAKpoMIWHmk2CLb6/6/xYY SvkkUOtW2nedVLxOKUM3JmBqdrEIhlGEzxDA/RO92KhfD0ONe1tYh+xjouxCcQgHDBam gzJq/RYoESYqEpHr/hPl5MEx/yNwxJKMbDqakcjD5HJLmK/P4hGbLErS77dK1WRrN1yh Z4Wu0q7ARyEU9NuD1AvYR95rZld2I/isSq8HTC9Bi7N4VAbjukf5CWPpbJqjkudpd3IS zKGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="U6tPhT2/"; 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-70524-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bq7-20020a056a02044700b005dc4219ac31si3312060pgb.139.2024.02.18.11.03.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 11:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70524-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="U6tPhT2/"; 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-70524-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70524-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1BD152820A8 for ; Sun, 18 Feb 2024 19:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBACA73195; Sun, 18 Feb 2024 19:00:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U6tPhT2/" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 E6B1571B25; Sun, 18 Feb 2024 19:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708282850; cv=none; b=Qge6XWbzobzatsXRB5xgOPFdtE3CvtRAnHMlal+Qw9hontgpq0Ry3elRuWfWjq+nZ6EpdXcdZIQqe0xLaHmIncqAOUccw1HtyjEW1JTc4bBQEK30VW4jcN5+Oj2hvg75JS53LyaSWOlFQfxfZjN2WOHqc0tNaZlMxnNN5JjKxfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708282850; c=relaxed/simple; bh=2LCv+lgmH0ansXxRDGS7Qz4W8gc7nGFuPp9Acdwiv1k=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b363HgrHhZpujbiCacxtSWlI5rLUkuA8h4i16L8ChjVdWCgZcE4gZ4rRgMBhmbrcHJYgVeuPNJo2ul7L2LYG7Fl3/NjWI+uYKX/GLrQHOf6x2TnnLlryqGjNEwjpABYRTVq9P+uXV9V8RSvFUh99w3Yu7Tn4a4MkgA8wOAiSveU= 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=U6tPhT2/; arc=none smtp.client-ip=209.85.221.52 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-wr1-f52.google.com with SMTP id ffacd0b85a97d-337cc8e72f5so1893782f8f.1; Sun, 18 Feb 2024 11:00:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708282847; x=1708887647; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=gDLjeqjcDDwD7/npT7DJCTwwYCyrxg7kY3LYI6eWDbI=; b=U6tPhT2/93tQ8fCXHSIeV585Y/nToaRCIDbhBi3cy/eHTZaPCxIMWG9StvIy9qwz85 ysPsqDVbap9zjNFn2tc03dpKTs8swNI10WXUxGGl12UqNUEmSwrG8dU3Z0CmROvMqK3O xbyGKwauuqCEMh3rqmBRBHOvxKgHx2M6zK/ghbVQArFlN+nGE9rslwO7KEpL8ryFSVlA jIUTBQCCyHxvqtj1ZPWjDtxcaCJPI10LlQPopUiENB7wsvKAvmg4OoN4H7JPHj9fDHDm VGjM4W4nWqnlvZ/X9Hs+cXfXkFtQVB3WUjgTd15Warduqi6WuiVcaW4exVILWHDH3sfx suCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708282847; x=1708887647; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gDLjeqjcDDwD7/npT7DJCTwwYCyrxg7kY3LYI6eWDbI=; b=NlpLjiLlLd2/TUoxtfV9cMNYjMDqF3xfwTwiEo/TaN5gElsKZP7nqkzw2zoQZviJSA Eh19AIet/pbYTiNolotXy77TNxVxvm0iqDBHAxvV/NDcEUXJt975CfbpDaEqsXeM3EXc KHtAbIt+ybUFeIZtHTMz4exei+0b0YHUC+kK9MsFD30sX6VLEIOykLOq/USPgyUFRQ15 bOoFMuoqZwlcInupgXRHrvIgs0X2dx4f6fF8EyVJiaZ/nGfu9+kFoc2Sf20bE4qeXJLM IbkvNgyUoImkbsGBVdfQxxGLfnIee083mqXUAEeqoP8H3iRxAN9OAYwc5LTw8tbU3cOD EI8w== X-Forwarded-Encrypted: i=1; AJvYcCVq8SbjChIOZnCaDyl9BbymZCKCHwM+xyExn5GRYbldBaug9fyTOFnJkTc+ymhudm0xdFkrF2UC7nxkhyVYaarUJ2vk5ycuc4WbHim6jIZY7lUF9VmFgPQ7WcOdfafwbquFCBZ3 X-Gm-Message-State: AOJu0Ywg1ufF9M5AHHxua2n9RHaRMVCVxvEAdnONFysitWqC0GfXmSNf sp0CH/+PeA9JLkPDdTKTcRfRnNANDtvmDJ9OtipK9stRv8xRo/V0 X-Received: by 2002:a05:6000:809:b0:33d:1656:21ff with SMTP id bt9-20020a056000080900b0033d165621ffmr7979799wrb.4.1708282846942; Sun, 18 Feb 2024 11:00:46 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id m15-20020a056000008f00b0033b728190c1sm8115762wrx.79.2024.02.18.11.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 11:00:46 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Christian Marangi , 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 Subject: [net-next RFC PATCH 3/6] mod_devicetable: permit to define a name for an mdio_device_id Date: Sun, 18 Feb 2024 20:00:29 +0100 Message-ID: <20240218190034.15447-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240218190034.15447-1-ansuelsmth@gmail.com> References: <20240218190034.15447-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Permit to optionally define a name for an mdio_device_id. This can be used for PHY driver that might define multiple PHY IDs for the same group of PHY driver OPs to define different names for each PHY ID and better identify the different models at runtime. Signed-off-by: Christian Marangi --- include/linux/mod_devicetable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index f458469c5ce5..9dc6f0cc26b4 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -630,10 +630,12 @@ struct platform_device_id { * for this PHY type * @phy_id_mask: Defines the significant bits of @phy_id. A value of 0 * is used to terminate an array of struct mdio_device_id. + * @name: Optional Friendly name that identify the PHY device/family. */ struct mdio_device_id { __u32 phy_id; __u32 phy_id_mask; + const char *name; }; struct zorro_device_id { -- 2.43.0