From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 3856745BD6B for ; Tue, 14 Jul 2026 13:10:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784034645; cv=none; b=T/kTSXukSpINJOovZLvBXhVy/SJ3lRL3tWfxU0jkBmgqcvIttIPLrMH9Od0MHAcK0DvhI4/cgkIqSM9CTSa7GX5r9Cvewyvge3A7VIx9I9mkl3RSyzjDgvKkQIfItOvlCiCLC7CPbGl1GJ+RedQ3PoAUgDD0ziTeIZ6GNUUtdis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784034645; c=relaxed/simple; bh=Wt0XsrpFCYOVOMQtdvuVWC8FpSQrK3dbcXgQQELA5E4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lXZ6LTUFIZ+L7w6lnhAkAFYt/7kinZK2hgeaIp7pdzi6ZM60CAu0ja76WY9wTE5Et04fogpngmiGYwO9c68IDS0PlEYvi2sMawD5vokO+XjFM0ZAwQsm2HMmSpfnk1njGJLQ5ZN8F5oLDeq/m5cp1IS0ZLvt7s+FusuM0MmMIq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20251104.gappssmtp.com header.i=@resnulli-us.20251104.gappssmtp.com header.b=VF2gBOr/; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20251104.gappssmtp.com header.i=@resnulli-us.20251104.gappssmtp.com header.b="VF2gBOr/" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-493f2e39e81so17545395e9.2 for ; Tue, 14 Jul 2026 06:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20251104.gappssmtp.com; s=20251104; t=1784034641; x=1784639441; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=fl2dG+Oml92bsky/TLYXt/NwIn7LAhhgtCJrCDemdtI=; b=VF2gBOr/6hwaVX5t7Z/v5+td9WpqPxLIk+n9Iy20iZrynA5ENJ6zeO/1jM5aDp1XD7 XVv2VCX8zOtyOucd+U1Ymr/6WNixaUqajIoPcJcYjiuYV2DmnmwEECGjbOHvXv9rho9A KqW9Z76nH+8cyFA95HRT3gefjXambuXJgepAdDJa87XSOkWrOeHTbX+xxSvp7cndUAAO ogZn8LvTbGo1WIygX83ds3gHluGoZqntxKZW5wgOM2/V08aUlwCgOHxJvcbZu5NBxaXt OXYmP0KtxfjMly23HeEPGdaebGPaTeLnznPP+GtAg6PUs0s3nqB34itZmnyA49ZDckxC IbUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784034641; x=1784639441; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fl2dG+Oml92bsky/TLYXt/NwIn7LAhhgtCJrCDemdtI=; b=FjqgAn+ZVHBvrq37lgG8US48/xTpgAuChUfpJncTOnVXo0vu+xO22+4pv0/emUgr+P WNrHCy3DABo5FDsVey3yazCwWeDDNI6csr5tVjINKQi7LkP6pJFFcJVJJOPSQdhDOSgX LiVpdWVDTFdlNvbdNk+cSH63uioEAKxSCik867CCL0d7JkkepszjAHpMbG0FPxoOLDpA dUhdQ5xOcObAiS3MnS63V6FqdUeW+AhWKOJrJ4EpQG5qlYCqtAOiZIS6J53wrNNwkZOx RVHTBpDVVQv7OFxgYkZ8SHUlFCAg/bpfJi6bNp7cBPLKxnC9o8OdcohOHfK6ZJRsooAE aiDg== X-Forwarded-Encrypted: i=1; AHgh+RoJwfyQH/IwVe5izOhlyzWaLETk3CsC/6PJYP8cqsQo3x3meEP77BQcq9npTgCCUBKERC1gewiheLZhmsc=@vger.kernel.org X-Gm-Message-State: AOJu0YwHLUV9QJtuMHjDIZilmqqgGbhHMeIEKvNe/94nVExyknQdpBi1 4d7oCaEdfhtfHTrdFbbq7A1WUg/2nDz2YIfOF6aDTmyHOrDEYznEidvEHcjlM4o4rCQ= X-Gm-Gg: AfdE7cm7gMrPX3/na8PHZ+kq+LaUGi7YVTcY7hgAQV6b2ZD2di6SYxge7V5x0IhNcAN a1uZ0oR7Qoj6E+2Hxildc4l6VpJEx7FVBNFa2Oof2e96z34H5NdkcgkimH7oggo3AscUFaCp6Tv 9tlk0KPKibI0YY5dzCpT5AlQEbGvSQKxvyC5XRBS4OZc7c9h5xxxIkC3SzFNucIFBtl/oDcjHdl k2nyGqrV5KTlK5uwp+9jJK/DNkm7F89UGKl7y1P/M9Pmz7WxKeVVF15AAvGubIVzpSX8AaQ5zvz VC0er6KAC84ig8ZUOy+FfAt55hH6LS+Qrs45RPcDX9imBwloF2oho3M0abxFEWA6m0ozXcTmNyn mKSTVCb2x92WEZCflGoete2JFjqINri3K1U4bPzqZyaFkKTCNe8OTjIe/iD33bb4Yv7HfheK68q qGKV1pPurZ1FqexeuMtPOBzA== X-Received: by 2002:a05:600c:3e1b:b0:493:e890:9e0b with SMTP id 5b1f17b1804b1-493f883157bmr140435405e9.26.1784034641364; Tue, 14 Jul 2026 06:10:41 -0700 (PDT) Received: from localhost ([140.209.217.211]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4950a32b9f3sm85941695e9.13.2026.07.14.06.10.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 06:10:40 -0700 (PDT) Date: Tue, 14 Jul 2026 15:10:37 +0200 From: Jiri Pirko To: han.junyang@zte.com.cn Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, ran.ming@zte.com.cn, han.chengfei@zte.com.cn, zhang.yanze@zte.com.cn Subject: Re: [PATCH net-next v8 2/2] dinghai: add hardware register access and PCI? capability scanning Message-ID: References: <202607132221104795CMBHxJGy8iTj3qc36Qw6@zte.com.cn> <20260713222804514zLeRvL3Su1xlklpOdahhF@zte.com.cn> 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: <20260713222804514zLeRvL3Su1xlklpOdahhF@zte.com.cn> Mon, Jul 13, 2026 at 04:28:04PM +0200, han.junyang@zte.com.cn wrote: [..] >@@ -48,5 +85,34 @@ struct zxdh_pf_device { > void *dh_core_alloc_priv(struct dh_core_dev *dh_dev, size_t size); > void dh_core_free_priv(struct dh_core_dev *dh_dev); > void dh_pf_pci_close(struct dh_core_dev *dev); >+int zxdh_pf_pci_find_capability(struct pci_dev *pdev, u8 cfg_type, >+ u32 ioresource_types, int *bars); >+void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int off, >+ size_t minlen, u32 align, >+ u32 start, u32 size, >+ size_t *len, resource_size_t *pa, >+ u32 *bar_off); >+int zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev); >+int zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev); >+int zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev); >+void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev); >+int zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev); >+u16 zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, >+ u16 phy_index, u16 index); >+void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, >+ u16 phy_index, u16 index, >+ resource_size_t *pa); >+void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void __iomem *priv); >+void zxdh_pf_set_status(struct dh_core_dev *dh_dev, u8 status); >+u8 zxdh_pf_get_status(struct dh_core_dev *dh_dev); >+u8 zxdh_pf_get_cfg_gen(struct dh_core_dev *dh_dev); >+void zxdh_pf_get_vf_mac(struct dh_core_dev *dh_dev, u8 *mac, int vf_id); >+void zxdh_pf_set_vf_mac_reg(struct zxdh_pf_device *pf_dev, >+ u8 *mac, int vf_id); >+void zxdh_pf_set_vf_mac(struct dh_core_dev *dh_dev, u8 *mac, int vf_id); I don't follow. You introduce functions yet you never use them? When you introduce some function, you need to use it in the same patchset. Honestly, I would expect quite different patchset quality in V8 :/ >+void zxdh_set_mac(struct dh_core_dev *dh_dev, u8 *mac); >+void zxdh_get_mac(struct dh_core_dev *dh_dev, u8 *mac); >+u64 zxdh_pf_get_features(struct dh_core_dev *dh_dev); >+void zxdh_pf_set_features(struct dh_core_dev *dh_dev, u64 features); > > #endif /* __ZXDH_EN_PF_H__ */ >-- >2.27.0 >