Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1257602lqt; Sat, 20 Apr 2024 07:18:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiM5+T7lb+zF13jZY/fsOtU7R7sTXYHRQorXsPYR1A93ClyXVdgLiPwFgSQDlaW+4MXwG0+y2uv/2Wj+O5kVhRAIqUTjRaZTf7artg6g== X-Google-Smtp-Source: AGHT+IGQvi82OHZ0x8MBVMw1/GFhlRsdIfaDFxvfwgjXN/sCUBKvzq0vYENpjCIhF0DpZtN7WiJm X-Received: by 2002:a2e:9f43:0:b0:2db:ef48:ea38 with SMTP id v3-20020a2e9f43000000b002dbef48ea38mr3272983ljk.45.1713622692156; Sat, 20 Apr 2024 07:18:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713622692; cv=pass; d=google.com; s=arc-20160816; b=vKAwBaWjJBYIBnmKdF1QPHi+LHfrs/3DxnUvI90YlbvrzJg3pz4REdak+Ek73IvEF1 U71Hl7mPbIQc4NeK9du89Oqig/DHcXlcr+MzfGaW+HRdqWvOtwIeMMtEFeA2RmP4mmkp RwnD6yVh6c8Dc0JDxTfXErSeiU5TIFk301eRNL1q/D5a7VMj4ZgsNiuHamXUZUcFKyYB A/Sx0gihTz+Al2yWtfXBnlVtXBTCR04ix8RRn16PKyNf3OIZahLD53zd5ZwjagpcxxQ9 RLSMWhI2JQ5cFt6s6qFk2X+h/pyAxPUCBh3lTUeqUfuQPURMMeL1u4m4KdpuxDPpCVZo bJDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wYKh7leSQOOv10U3kntigwhuQ5oEPTab1stw2kTMjeo=; fh=F4Y3WwkqzCulmbhwFr/3mF3jalFZVo7fzQqBZXFj6GI=; b=EA+OBxeHUKG+l7L5epuHjGqwabEzvKcmC/yNL8Q6fwd5EWg9fUr5v4pqDhjKSmTGhp 1mWVqFPGS9ZSBQD9u5KyoQC1HmGSU3xthoUtJaFFqK5s218XwDwLAPbmhMJyEgpxw5F1 twCMg+FGh5ohmAIeOpXPdk5EL38Y4snZdQvYWvH5ggNpTzXlo6e7yaycaeNQcHsBKMAw K8X+e4RtA+rJuvO17HTL0KeohaehIpRKmqWHTwoOTOZX4j84oXFZPv/kthlE2AaQ9enW DZ+AiaM5lnxtOfVSHHEK3saHQO/vYVaf58BdiVrsQDEFp6cZqZO8+vbTqkFnLKSBUgdR uCgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RF19qbky; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-152291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y73-20020a50bb4f000000b0056e310e665csi3648463ede.2.2024.04.20.07.18.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 07:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RF19qbky; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-152291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DAD3C1F21223 for ; Sat, 20 Apr 2024 14:18:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A84F26AFF; Sat, 20 Apr 2024 14:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="RF19qbky" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 BF461219E2; Sat, 20 Apr 2024 14:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713622683; cv=none; b=QNHT2r/21QujN9sAQKuPMkVe8COPuo5xa60FKieih8CKoF+XrSu6HVSj6DR5RJnwXk4idgC/prv7PVHj4x/vgXKb/Ltu55sok7Kl9ipGLU07hiflxEYDvBODcvVvK2R3jpu7SHAu/Et0P74b4hpL1Zm588CaT+IFNS9jHPvETAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713622683; c=relaxed/simple; bh=IhmcAAcxPMLNcXwD3ROydVIshE7mJpHYxjctvvOo53E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WN4pvFQmMmAN7ObvnRU/lWFtWUzQDLgOaTlmvJeBlbG/U3QYBx3vq6UIVzF+g3murf6fE8jC5POGWobIjXiiEJBcMVbWUnHv1CFd2cyB/JbNYGimKQUBGyLcpUGvIeQ73zeotv9Wf+vFpmDbqm25g9VG9pTRqlwmp3rSllFAT3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=RF19qbky; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=wYKh7leSQOOv10U3kntigwhuQ5oEPTab1stw2kTMjeo=; b=RF19qbkyFprUxuCUrwZDTrTHF1 mFKmgTVVMeiJ+SmCj8BteLRCUCPLEBhVdq7T1odGFJnnYlnWx2o08cdMBHQnFfs4wzub6QAy6q/HO iFPnWrkXCbwdP/BtxskV+q30Xhd8/1cm1dIcq4E6iYCLygu3kYQy1uploTN5Ht4YRQVM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ryBXK-00DVq5-Jz; Sat, 20 Apr 2024 16:17:50 +0200 Date: Sat, 20 Apr 2024 16:17:50 +0200 From: Andrew Lunn To: renjun wang Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: update fields of mii_ioctl_data for transferring C45 data. Message-ID: <01d9fc07-ffaf-4353-b4b2-d7fcaa146024@lunn.ch> References: 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-Disposition: inline In-Reply-To: On Sat, Apr 20, 2024 at 08:41:10AM +0800, renjun wang wrote: > The phy_id is used as u32 type in function mdio_phy_id_is_c45() > with the 30th bit for distinguishing C22 and C45. The reg_num is > also used as u32 type in function mdiobus_c45_read() or someplace > else. For more C45 information needed and data structure alignment > consideration, change these two fields to __u32 type which can make > user space program transferring clause 45 type information to kernel > directly. > > Signed-off-by: renjun wang > --- > include/uapi/linux/mii.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/uapi/linux/mii.h b/include/uapi/linux/mii.h Just adding a general point to others comments. You have to be very careful with changes to files inside include/uapi. These define the API between user space and the kernel. You cannot make changes which break existing binaries of user space tools. Sometimes you can add new members to the end of a structure. Sometimes you can add new enum values after all other enums, but you cannot make changes in the middle. Andrew --- pw-bot: cr