Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp438457lqp; Thu, 21 Mar 2024 06:07:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNImlkBMvnLpL3C67vIbrrOCruGM1wYukfQo3Th5cboc7fpbHkSkZSsi7Ehvdz6aU9eDi0VHWtheeNIrwGcraJmPWRLUJXaTmOJd2beA== X-Google-Smtp-Source: AGHT+IEe+7DBY+jc6P8KWy/bbpSt8Lggb6CFFLz+2sPh57T2sAEdqmC0xYOjXYj7aOKS6CqsFS14 X-Received: by 2002:a05:6214:f6a:b0:691:8728:d18e with SMTP id iy10-20020a0562140f6a00b006918728d18emr1813048qvb.12.1711026424731; Thu, 21 Mar 2024 06:07:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711026424; cv=pass; d=google.com; s=arc-20160816; b=dYi9rz1zIPaosDUfSwLBUNaDd1QWoVMBV6Bty1v01sZ01WnH+leAzFkaurcRngup6B mjSKnwCkLpKgeh7EDZiasgV2Z8TMV7C4fgjvKDoTjHAOPdFjG7WmzvcA1dEPRYyWl6dN KCrh8Ex73dl7r4qlAc3hXe8AnrtvfMVf37Ep6iiMQQJ8VCCvbgLhG+8yRqsvz+xoLaIa mSxeW/pLBrmjTOQPxcDVEVNB1N6fJCXt81HEdWbC9nQjmD+zYCo1iNbDmQYeuav9emmR YdyS5wwNPnzju5LRcefldMUZHoIeBAA3Aj8efh7P/7ojbhMNy6CEqW7DBOpdWwmXMZv9 bbPw== 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 :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=6lQU1dHKYz0aWn2kYVD5L2i0npLLqY0Qe96LtlSMcqg=; fh=UvoJ/prXWEG/wqoHf2oP84yxkHuOWWZyVZuqBapSnbc=; b=NrT3AKWi1EPPiRRcqqHyPwYuZAAv9DJrgXNWfcVgukw9ZFaRKPAKgpj59ruySjxqbO PFufPv4/d3eplj0F6rvDLJV57LrpIqViPGJRx5MqcesiLcCX9i1Zp+NAbzfrivEyP8bR lejXQHcrbryQ9T0Lj/vVTZfe5uOIglchY/B1JPcFADTSQvNY0SgYqNlSpHBmmSOa/huD /4ql/f04bUnPs9XKZ7/wu/Y59RhDDjD72hcADT4fZa13CXY2Xq5XAHQ095ULdqy0JHwF U/QARP87dTuspfnchbNMUMB/tShuAX9vXpvn3p4JLsP+WuCM3Geqqc5psIBXBysrinPC YPBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=joRUocov; 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-110068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pt3-20020a056214048300b0068f52b36b81si14903800qvb.55.2024.03.21.06.07.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 06:07:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=joRUocov; 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-110068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110068-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 457F51C217D7 for ; Thu, 21 Mar 2024 13:07:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C17B784038; Thu, 21 Mar 2024 13:06:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="joRUocov" Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 5D2B55474D; Thu, 21 Mar 2024 13:06:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711026413; cv=none; b=JD1XPBK5/kba0img+XfmmceQyzY4zm+cyE4ivcu+4ela9ymqh0rrGCiqvXhQR8rub3Sf8+I0VtcKfqoylaAOtfqXyzwmvaEZk6WGcWuCptXWaJP3ByLaEZQROy05gkpKZXeC4UYaqd9fH7jSf6PUgUAR3qEfy93Xl9ciCZ56tq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711026413; c=relaxed/simple; bh=J7WM9ULq1ctPdLnRjs/NRSRzZV/Z1VC6LsNLeIwE95Y=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=PnXWDn29a3+tjWjl/ko8Xt0Kk3Ov8iyjkMKkV66FYJKPoXPql2c1PQC9aAyyv5h7dozS3NoPLTHtydmG6eSEimww+z+dbekv6ZI7tPrb18g4b2u3p1heAPjBxtN+9grk0lpJZ/HGH+44UWU/JMG7fG2g9h/dWCFlF/5UL53xxnA= 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=joRUocov; arc=none smtp.client-ip=209.85.216.51 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-pj1-f51.google.com with SMTP id 98e67ed59e1d1-29b7164eef6so710796a91.2; Thu, 21 Mar 2024 06:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711026412; x=1711631212; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=6lQU1dHKYz0aWn2kYVD5L2i0npLLqY0Qe96LtlSMcqg=; b=joRUocovLyuQ2Vhh0HKfw0Nx6zwyQNqFgwiq4qvc54jPMtrH8rGCD/ZKXAzOVtOQK4 iaEUXmSotV7wZ8P9CDoKJLcBbrapfbkkaScBAWSF72UpxPiToUk2tVj3Me2ZifKttZh0 9eRyp2czdrqwBmuKBTFzAsFOD+/MN2ZngqhUMC4TugHPXqKMkBTT/FL6bC3/VszjeAdz 9GvP1px4Jf9S8FpoQrNaz/xSoQPpmZvcBRM5fNOv2tVqBxzhOlQWpQcXr0h61Tq8HGnk 0HOHB4mUSt7FTwsVfBNpDRLvJYaQPhWsBjVMkuA18WrEDyJM6Qgh181ykEOHSWoXO1BS jNCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711026412; x=1711631212; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6lQU1dHKYz0aWn2kYVD5L2i0npLLqY0Qe96LtlSMcqg=; b=MzuDPr0o8LqnyNEmfpCeRCkq9h5rcyYeOwqhSa6AcY+UIGy/fv1fQ8wmK7d9dZMFUK wVEylyyisYOR7/bxWXRpQLqHmPL1LQxfcU5ua9pla9KUI5yqyUtgXFvR7I7Fkwshgcat 9A2Nc20jccDCV9T+LEaSLzvBXnTd8RXR3E3zZ6NcF6n8FKIJTWI7Cx5Vem+bUD8SFrmK BG4dGaI9WEbI27GcvPMK+FoMwT6BdvbSjeOSN8WG6Ocz/atUHoVnRS4O1u1JhYTW0Asr yQBuqvNWDAaznqiszfDE85hkoCE6uqlx019K+Yxg2OJ8TNtxqSvrD2TbJj52VeO4zm2B TSPQ== X-Forwarded-Encrypted: i=1; AJvYcCXHbzYzmv1wk0r7OI+TYGi58zlaavRw4GE1v0/R3QeTyNjfh30+DqZ80pWekFjY3HVSnYjvWm8T95wPzc5cGatzHwzhoborsoUWCRv4redvJtygCNYJWt9ORqF7E7emWBF0+0Rr X-Gm-Message-State: AOJu0Yzk2uboOwhxZhLOGWH9d1/bXVWn6MLtsrxuAeIsB+vRptP7TKtZ iDTtGbCyzJHqb+RjtY9wNEXd3NiIa/gz8J9jmP9lyFhSQFehHpEo X-Received: by 2002:a17:90b:b07:b0:29f:7672:7fee with SMTP id bf7-20020a17090b0b0700b0029f76727feemr2058506pjb.31.1711026401913; Thu, 21 Mar 2024 06:06:41 -0700 (PDT) Received: from [192.168.1.3] (ip68-4-215-93.oc.oc.cox.net. [68.4.215.93]) by smtp.gmail.com with ESMTPSA id w22-20020a17090aaf9600b0029fbfb620cdsm3496931pjq.28.2024.03.21.06.06.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Mar 2024 06:06:41 -0700 (PDT) Message-ID: <61624f55-2f1f-4cb3-8845-0dc3988a849d@gmail.com> Date: Thu, 21 Mar 2024 06:06:39 -0700 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: [PATCH net v4] net: txgbe: fix i2c dev name cannot match clkdev To: Duanqiang Wen , netdev@vger.kernel.org, jiawenwu@trustnetic.com, mengyuanlou@net-swift.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, maciej.fijalkowski@intel.com, andrew@lunn.ch, wangxiongfeng2@huawei.com, linux-kernel@vger.kernel.org References: <20240321054742.446481-1-duanqiangwen@net-swift.com> Content-Language: en-US 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 qIWgvr3SIEuR6ayY3f5j0f2ejUMYlYYnKdiHXFlF9uXm1ELrb0YX4GMHz80nRmxvcmlhbiBG YWluZWxsaSA8Zi5mYWluZWxsaUBnbWF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Nr9i/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: <20240321054742.446481-1-duanqiangwen@net-swift.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/20/2024 10:47 PM, Duanqiang Wen wrote: > txgbe clkdev shortened clk_name, so i2c_dev info_name > also need to shorten. Otherwise, i2c_dev cannot initialize > clock. And had "i2c_dw" string in a define. > > Fixes: e30cef001da2 ("net: txgbe: fix clk_name exceed MAX_DEV_ID limits") > Signed-off-by: Duanqiang Wen When Jiri suggested to use a define, I did not read it as meaning a define local within the driver, but rather a define that would span beyond you driver that would match what is expected to be used by drivers/i2c/busses/i2c-designware-pcidrv.c. As a matter of fact, there are quite a few drivers that expect to use this driver name: git grep i2c_designware * drivers/i2c/busses/i2c-designware-pcidrv.c:MODULE_ALIAS("i2c_designware-pci"); drivers/i2c/busses/i2c-designware-platdrv.c:MODULE_ALIAS("platform:i2c_designware"); drivers/i2c/busses/i2c-designware-platdrv.c: .name = "i2c_designware", drivers/mfd/intel-lpss.c: .name = "i2c_designware", drivers/mfd/intel_quark_i2c_gpio.c:#define INTEL_QUARK_I2C_CONTROLLER_CLK "i2c_designware.0" drivers/mfd/intel_quark_i2c_gpio.c: .name = "i2c_designware", drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c: snprintf(clk_name, sizeof(clk_name), "i2c_designware.%d", drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c: info.name = "i2c_designware"; so they should all be covered by using a define under include/linux/i2c-designware.h. -- Florian