From patchwork Fri Mar 12 11:09:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 398563 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1099702jai; Fri, 12 Mar 2021 03:09:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJySKRR8UcMXotkxXRPgMv90bDQgrA3S4cVBqYokSCkBqv9anSSbxFHnn12UKwUym7qRWpAp X-Received: by 2002:a17:906:abcd:: with SMTP id kq13mr8146011ejb.477.1615547397610; Fri, 12 Mar 2021 03:09:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615547397; cv=none; d=google.com; s=arc-20160816; b=puXuaqpaDdADka3ve9I40rjjDFOia4MM9CkXgM5XaS5YMlQgME9R4yh3uzJP6PLkfg jzzU3uhWNSz7d7P6BrKV51V33djaSY+d4CcgTvPBrpdgUJT+1ck1yW6IrQ/MDPY5kkcO 4gmrNUBq7mJDpN13zbUH3AfAcfw4hT5Wg7/hz1mOmNJ9si2MviLMW740JH3YsFSv2K7I wlden8CTlK5OkEJNwgESutNrYXXbFm4siYQr2UBA6DxyiHX0DwPPRhI0l8xpU4rMVSjg bWpqK3zZozRPc7EptkRBGCpRLk79nBqsrQzWfPdBkIplfG7/n56p9lmyN1Jy9+5d1PPe XE7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KXQyr4IBlf8BJXFjheDlLrWyrqRa2WbuLrndUKgj2RE=; b=QJECAXMxO1V6qEzTJbaDJw/APfiyiHgTD1yL2ZLhiYXhHdHh5i2sY+kIGZTY+CWqhk IChT4PgU2k7cXPoLHoUWcIkFX/j6cn2Q6ImFVQcVwTP2cSi26CFzxpb5sZy/SAyvao5s j9QgIW5fco9c3n2cacDpVkR4lzRacEs/cjkEsMTYVHa6pxjH9dcm/i7eiCkkfs1jQbBK bp3Smt1pK6YG/OTEB69vKlfId2d6ZdzIw/uSWnrXIW6FkXVPX/9L03wupsUl3UZ7p6/Z Sn0sqtmV3HrXKHNxqPMc8GomEUeeTujhQ0rfG5pbEDdQf7mp4TPgXu9apK13dZ1LCMw+ 7h1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c4Js0gyW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si4021623edj.174.2021.03.12.03.09.57; Fri, 12 Mar 2021 03:09:57 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c4Js0gyW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234076AbhCLLJW (ORCPT + 8 others); Fri, 12 Mar 2021 06:09:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbhCLLJP (ORCPT ); Fri, 12 Mar 2021 06:09:15 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C1ABC061761 for ; Fri, 12 Mar 2021 03:09:15 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id e9so1542620wrw.10 for ; Fri, 12 Mar 2021 03:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KXQyr4IBlf8BJXFjheDlLrWyrqRa2WbuLrndUKgj2RE=; b=c4Js0gyWEoLDKpmd1C7WpG0VFopaDp1dQm2+VZf0oryUz1eScc7ZxDbqb+LyE87I5F ePVh3XrvR5lX4IELD37RfRM7gJwEC/tMnPK8m9tRdac5lSxZImh3Le4HEntJ0AQRJYuW uJ3Bnp7fjJr+6WYfuUkTAs4LMiiLOLCLKVtXEqGsc88TZgFFa4Vqy8o6jhI6epPJA89d 7p4FLUSIEm9tQdL2Yf2XMdYQiKEK8b2H/1zq9Po+je7ZIsue6FooKvz+5oheoS1dQiNO +82mmwN6XRHI0a4fFBoAjow4p9XtzjUkzKq+p6RfaipS6RgUon1w75j7slPCa5RCoNv+ y+7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KXQyr4IBlf8BJXFjheDlLrWyrqRa2WbuLrndUKgj2RE=; b=MeMg9PnfkHRQSLAFB6EgUv/CuC0iWgp3etDTeiY6ZsvrAnVHTgL/E5xkBH1UmZkEXH 2qca5UH/F3bgZ98Cpngcz9vXafZnrOtGXbzSqqwvRecMxEjOpRrWg4clyDGCVqwrF43a GKejNBfrdgJSVDJ+xf+wfrm0BRTGIQuXXBdSCckxNlk0OOiATnwvFVlmCzst/MM6dQmq fbhW/6i6G/qW9kXx+Zktpn8sTMRMW70tqxGZ8yzSldw6SSKDRptFvoqT9nC0R9kFhjb+ CKaAG3uR3IDsNzsTXEuQinWoSU7XVNBbyKt+hndyxGb6T6ldY4o35alPs63t5WIwWJaG W3yA== X-Gm-Message-State: AOAM533YwMkvzC/+8AM1xFGnmdrxt2huMNMrSm0Gjp2zT8JqYY8HmlNR DS/CTKWerPUFIXscLQnl1UHvJg== X-Received: by 2002:a5d:550b:: with SMTP id b11mr13671486wrv.313.1615547354239; Fri, 12 Mar 2021 03:09:14 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id b65sm1833255wmh.4.2021.03.12.03.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 03:09:13 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Richard Cochran , "David S. Miller" , Jakub Kicinski , Flavio Suligoi , netdev@vger.kernel.org Subject: [PATCH 1/4] ptp_pch: Remove unused function 'pch_ch_control_read()' Date: Fri, 12 Mar 2021 11:09:07 +0000 Message-Id: <20210312110910.2221265-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312110910.2221265-1-lee.jones@linaro.org> References: <20210312110910.2221265-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/ptp/ptp_pch.c:182:5: warning: no previous prototype for ‘pch_ch_control_read’ [-Wmissing-prototypes] Cc: Richard Cochran (maintainer:PTP HARDWARE CLOCK SUPPORT) Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Flavio Suligoi Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 1 - drivers/ptp/ptp_pch.c | 11 ----------- 2 files changed, 12 deletions(-) -- 2.27.0 diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h index 55cef5b16aa5f..3ce4899a0417a 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h @@ -612,7 +612,6 @@ void pch_gbe_free_tx_resources(struct pch_gbe_adapter *adapter, void pch_gbe_free_rx_resources(struct pch_gbe_adapter *adapter, struct pch_gbe_rx_ring *rx_ring); void pch_gbe_update_stats(struct pch_gbe_adapter *adapter); -u32 pch_ch_control_read(struct pci_dev *pdev); void pch_ch_control_write(struct pci_dev *pdev, u32 val); u32 pch_ch_event_read(struct pci_dev *pdev); void pch_ch_event_write(struct pci_dev *pdev, u32 val); diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c index ce10ecd41ba0f..f7ff7230623e0 100644 --- a/drivers/ptp/ptp_pch.c +++ b/drivers/ptp/ptp_pch.c @@ -179,17 +179,6 @@ static inline void pch_block_reset(struct pch_dev *chip) iowrite32(val, (&chip->regs->control)); } -u32 pch_ch_control_read(struct pci_dev *pdev) -{ - struct pch_dev *chip = pci_get_drvdata(pdev); - u32 val; - - val = ioread32(&chip->regs->ch_control); - - return val; -} -EXPORT_SYMBOL(pch_ch_control_read); - void pch_ch_control_write(struct pci_dev *pdev, u32 val) { struct pch_dev *chip = pci_get_drvdata(pdev); From patchwork Fri Mar 12 11:09:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 398564 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1099717jai; Fri, 12 Mar 2021 03:09:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfQ0f+9i4DgHHRNxYq7vKgL0RiYpS562mo4MSUsmm0U0OnnFvmTlxLgHfTEQYMYuL1RySu X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr8099730ejb.310.1615547398556; Fri, 12 Mar 2021 03:09:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615547398; cv=none; d=google.com; s=arc-20160816; b=G10j5NtFNMKx9VFtYp8NvzFJrO3o+/WrDbxh3r1TzxNtzqhJN7hm6ptCvbd2MCtr2e AnUclX5Bqu6O7O+rRGRYSVSTUUmuvCdqfvBGDmT1EdVMekmWx7yeR14/YB9qOZtBrdOP FXQlln2klCdpOWnxHgj/gFrb/ew+eisR8zYR2wkvPXHQ4TNKyleC4LcD8ehudz7pvCv2 tRipVXr3Ac0a6ldn0oQzSWfco8Lj/jDnWcHHfqHRSFBz2NJTCgH5HRc7QVniAq8iq8Pb mJs2hN6GMPHsgb9Weu7kW4ivhvkwQuRiXX6Onh2wBafdacEFVtqB3RyEuhrQdnwL5lj2 wByA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D6lQXV61iewTKIv5i4KOkr8EKJzCNFbTLpbymYvdwHU=; b=QdbyJkNGW/YsIQn7tTV9QgIeB5NhCHlWq1i/2m48LIzdQa16iteAmUaJQ5r+74mwG6 n+idpVyVtlGg2Kz/v7gBvMSahhZfMEVXJT81ZQ6A+I+BqqEkPwfiLv/tVS7UnVcNybLj Vu9yvp7vwTq1tvxIjJwwn3ShSpcd0PPP87ewVR8SrdyRfNC9VAON6uAUA1BxOfd3YwCA J0mcAs9AMeAA5JZlEdYzUXP663Oow/JyqLSpqUpba2CKTnouiltU3K+I+JNHs7NO0ctb JN1fLby0NyUSBxRV1tNlXHWY7v+Arv+Y7xZsaxyci5WlBMdcm3BRFebychxzvn2RAjXh e9vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RwobTaYw; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si4021623edj.174.2021.03.12.03.09.58; Fri, 12 Mar 2021 03:09:58 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RwobTaYw; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234091AbhCLLJX (ORCPT + 8 others); Fri, 12 Mar 2021 06:09:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234134AbhCLLJQ (ORCPT ); Fri, 12 Mar 2021 06:09:16 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70DE9C061574 for ; Fri, 12 Mar 2021 03:09:16 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id l12so4577466wry.2 for ; Fri, 12 Mar 2021 03:09:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D6lQXV61iewTKIv5i4KOkr8EKJzCNFbTLpbymYvdwHU=; b=RwobTaYwbQS+lj0odiENE5fNvUZZOxmZSzfVlIdeLeYumq932qYV8X2CWN5yUkPA9E /9Ywyr4RCRrFPvVvaSuWPWpWZyBCBxbTRIVqlsSmoCzDw0+wFRgCDdHsCEpatHBmJdqr GuNt7JsXwfSrhQKJr/ecX8iAGyk8r12DJqNST43JBtVAzA0Ek3mxsrZVq+GVBgpPI63L LGH4E1jAJofw96hVrhN4jdDaY9CCopN//3b4KRFTiw6athMIU8lwoKtx6iYJMR2Wvfsx j/2WvUXwTcr0YFr3vCFOVyjInwkZs2ZiRYFV6lGlc6eEKgXuvWxA2nFx9Nx8pkI7rJkO swkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D6lQXV61iewTKIv5i4KOkr8EKJzCNFbTLpbymYvdwHU=; b=EI2i9QcFhu6QsorOCJDPYhHv/NGOYVzf4X8jC3PKAzZ0Fmftp7obek9m4IX8FaGt3+ KG8kDFsEQkicZb6BxLCXHiNG2KIdtZhf5xmn4ABadj06VX6OicH/oeofnJM1Hu3PTe2p Boa5GOQ6RLYXiq47589PaI/CAoKFKuQezwB/U8+h12aBATfB/9d+Gn0lthddjibL0VzI vcur7Odr3N4mvWKVblLE3XC5b/YBIlGFke51ubQL2MLEeR2dWFuNLHi2eYjaKp9A+bq1 aTavWw5ClVocwJS3dCx5jY3vbm/2cYN6PA6bjQi4elBQRGGqTN0/81g0/4oBQ+RFh2CP fJfw== X-Gm-Message-State: AOAM532a2Leb5zvBs/kI6ve8mon5VLpaf/IiN7EfCT/5IqocG7TFGKwh v5JJ0gdYK2ciShlBbHwTTl5lmg== X-Received: by 2002:adf:97d5:: with SMTP id t21mr13311278wrb.139.1615547355144; Fri, 12 Mar 2021 03:09:15 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id b65sm1833255wmh.4.2021.03.12.03.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 03:09:14 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Richard Cochran , "David S. Miller" , Jakub Kicinski , Flavio Suligoi , netdev@vger.kernel.org Subject: [PATCH 2/4] ptp_pch: Move 'pch_*()' prototypes to shared header Date: Fri, 12 Mar 2021 11:09:08 +0000 Message-Id: <20210312110910.2221265-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312110910.2221265-1-lee.jones@linaro.org> References: <20210312110910.2221265-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/ptp/ptp_pch.c:193:6: warning: no previous prototype for ‘pch_ch_control_write’ [-Wmissing-prototypes] drivers/ptp/ptp_pch.c:201:5: warning: no previous prototype for ‘pch_ch_event_read’ [-Wmissing-prototypes] drivers/ptp/ptp_pch.c:212:6: warning: no previous prototype for ‘pch_ch_event_write’ [-Wmissing-prototypes] drivers/ptp/ptp_pch.c:220:5: warning: no previous prototype for ‘pch_src_uuid_lo_read’ [-Wmissing-prototypes] drivers/ptp/ptp_pch.c:231:5: warning: no previous prototype for ‘pch_src_uuid_hi_read’ [-Wmissing-prototypes] drivers/ptp/ptp_pch.c:242:5: warning: no previous prototype for ‘pch_rx_snap_read’ [-Wmissing-prototypes] drivers/ptp/ptp_pch.c:259:5: warning: no previous prototype for ‘pch_tx_snap_read’ [-Wmissing-prototypes] drivers/ptp/ptp_pch.c:300:5: warning: no previous prototype for ‘pch_set_station_address’ [-Wmissing-prototypes] Cc: Richard Cochran (maintainer:PTP HARDWARE CLOCK SUPPORT) Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Flavio Suligoi Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- .../net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 8 ------- .../ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 1 + drivers/ptp/ptp_pch.c | 1 + include/linux/ptp_pch.h | 22 +++++++++++++++++++ 4 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 include/linux/ptp_pch.h -- 2.27.0 diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h index 3ce4899a0417a..a6823c4d355d5 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h @@ -612,14 +612,6 @@ void pch_gbe_free_tx_resources(struct pch_gbe_adapter *adapter, void pch_gbe_free_rx_resources(struct pch_gbe_adapter *adapter, struct pch_gbe_rx_ring *rx_ring); void pch_gbe_update_stats(struct pch_gbe_adapter *adapter); -void pch_ch_control_write(struct pci_dev *pdev, u32 val); -u32 pch_ch_event_read(struct pci_dev *pdev); -void pch_ch_event_write(struct pci_dev *pdev, u32 val); -u32 pch_src_uuid_lo_read(struct pci_dev *pdev); -u32 pch_src_uuid_hi_read(struct pci_dev *pdev); -u64 pch_rx_snap_read(struct pci_dev *pdev); -u64 pch_tx_snap_read(struct pci_dev *pdev); -int pch_set_station_address(u8 *addr, struct pci_dev *pdev); /* pch_gbe_param.c */ void pch_gbe_check_options(struct pch_gbe_adapter *adapter); diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c index 140cee7c459d0..334af49e5add1 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #define DRV_VERSION "1.01" diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c index f7ff7230623e0..fa4417ad02e0c 100644 --- a/drivers/ptp/ptp_pch.c +++ b/drivers/ptp/ptp_pch.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #define STATION_ADDR_LEN 20 diff --git a/include/linux/ptp_pch.h b/include/linux/ptp_pch.h new file mode 100644 index 0000000000000..51818198c2921 --- /dev/null +++ b/include/linux/ptp_pch.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * PTP PCH + * + * Copyright 2019 Linaro Ltd. + * + * Author Lee Jones + */ + +#ifndef _PTP_PCH_H_ +#define _PTP_PCH_H_ + +void pch_ch_control_write(struct pci_dev *pdev, u32 val); +u32 pch_ch_event_read(struct pci_dev *pdev); +void pch_ch_event_write(struct pci_dev *pdev, u32 val); +u32 pch_src_uuid_lo_read(struct pci_dev *pdev); +u32 pch_src_uuid_hi_read(struct pci_dev *pdev); +u64 pch_rx_snap_read(struct pci_dev *pdev); +u64 pch_tx_snap_read(struct pci_dev *pdev); +int pch_set_station_address(u8 *addr, struct pci_dev *pdev); + +#endif /* _PTP_PCH_H_ */ From patchwork Fri Mar 12 11:09:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 398565 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1099736jai; Fri, 12 Mar 2021 03:09:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQ+ldI1fanfnRaN8wH57hzKIIM9JIp3bFz+bzWUahxlpfALQFDntv6jxDqb0ZcC76JiuMX X-Received: by 2002:a05:6402:1004:: with SMTP id c4mr13605161edu.364.1615547399643; Fri, 12 Mar 2021 03:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615547399; cv=none; d=google.com; s=arc-20160816; b=negimzapwwjl8WN8omBdweKsXWFyVXDLgfMW2zByP4Zp9ibSp5ZR1ldRdqrkq3Fwvq D3SOQ12wySgj6yZ3cHG1Po3jRz6v6Jo6L7vpODJO+Y8kvQBTlR6bZnxOWZL1Oe/dx8J3 HdCwhPYl8Zruamp3BCWpOecNmIgjRaDfiGRaIYNjqmdZqOJ9Ky/dK8wBBoMgbCn+bbjN zZlvwyhxlF+EqVFd0sO8hIS4vdjHFTvz28M5x0U6dEn98QOGD9Qc1XqNIuTHeqCuNJaY fbSAPofNULx77IwXeoasLUqOmqpk3BlD5pHwY7MnVsYY4tj6mJQRVQG5fu7Wv+b7MyD3 Hx8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZUveGSK6npk+QC7yNW+jetwhUE1LMyTcafYKcvUPbJg=; b=QKKe8Shtxx77gPWejWR+OzpMkCq3LhEbzAPHpfxp4YcFLzEqZjwhiEICBrGcccO+WH HnDkQcmQpeZ6uoVjQNM4Oi6Yl351RpGEaw2hBQ4/KAQ0W7u3jI4UFrhzxhy+CEYgdCHt dIi2SGkPgqgKJdLS+QeZBdEtA39h8u4D7RidVN3/zcSyJX4awAgAhyiGYg6R7zmfAAq3 P3wLelX/7xSHzacVTSKei2DG2AyomVM5CBM/Y74cGJK+KXjtob6s+gJExGf0noS5wy6z 5GsoeODMFGXj3jtBYW6xdBtSmYGCKlB1Wmy26lnXU9JC42zOvG7ZsFTb1s2bEfjjJ4UT mYHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HtV+vx+d; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si4021623edj.174.2021.03.12.03.09.59; Fri, 12 Mar 2021 03:09:59 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HtV+vx+d; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234153AbhCLLJ0 (ORCPT + 8 others); Fri, 12 Mar 2021 06:09:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234137AbhCLLJR (ORCPT ); Fri, 12 Mar 2021 06:09:17 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A9CC061761 for ; Fri, 12 Mar 2021 03:09:17 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id e9so1542681wrw.10 for ; Fri, 12 Mar 2021 03:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZUveGSK6npk+QC7yNW+jetwhUE1LMyTcafYKcvUPbJg=; b=HtV+vx+dDBMdKSoFQBtUj3Qj5DXlD8N49u7k8YbucAZ/rl+eZ/su8Coa4vOMozqw4Z R62GV6sQuAwiTgmPOBDJy5OpBWuuTHeVqIEH+sF4alkZVi8wTLwl3RXnGhrK8KMycVBq gbQc7f/lDG9bqOldjobRuPE+P4O+B3nCxhFd1XAzHqaKQiThdlCJBOI00l4Z1jMu/6Ra Q1PWOl3bfXB4gFagpmz9w0OpEHUAySpTlD43zy+V3r+oYeDu6jVITifFOb5qAxDQuHZb 1ZTnR030A9QG/5dFbw8gcsDKTdiBCzb1xwEefSAq3kaBgSaUk1MdAoW5d8wpQkQTv7XU wEgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZUveGSK6npk+QC7yNW+jetwhUE1LMyTcafYKcvUPbJg=; b=NLuFyeHbZ2WFeXD6MHbBYW41QSxvuZ0dxoGhp7iJMsEQtgshaqPu8xnQ8zy5D92hXD GKrUf0i99PdpehpwjLwThzqLSxg7xTGT1myb1XPkRzvvFAfJue4S+OlwWE2tLHTdLoRv ar5SJDyeMtPWJt8FJ5vEfKJlXG6TIFdD3PKN+mYadzb09nu+FEA5PufQok0nLaERmH7W +dgCMTd+pCg5MDJOwhRc8wsTWbGDZ02jotZglyhw5yjNOh5/dbPD+3v8/ktYlLdF0rgu osrXuHS+RgZ/78r4LF4Asqxp9laisyfUA3eLfMLVM5IgdSB9POY51EZs/73G9Ab44bWd fWAw== X-Gm-Message-State: AOAM530qsl6G2Tdz9i8guFHoDxlEX72o11buacMEWe9L0gol91cgUs3K Ne1sVhmTMJFFxvbrLpwbW2JnRQ== X-Received: by 2002:a05:6000:250:: with SMTP id m16mr13662032wrz.325.1615547356191; Fri, 12 Mar 2021 03:09:16 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id b65sm1833255wmh.4.2021.03.12.03.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 03:09:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Richard Cochran , IDT-support-1588@lm.renesas.com, netdev@vger.kernel.org Subject: [PATCH 3/4] ptp: ptp_clockmatrix: Demote non-kernel-doc header to standard comment Date: Fri, 12 Mar 2021 11:09:09 +0000 Message-Id: <20210312110910.2221265-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312110910.2221265-1-lee.jones@linaro.org> References: <20210312110910.2221265-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/ptp/ptp_clockmatrix.c:1408: warning: Cannot understand * @brief Maximum absolute value for write phase offset in picoseconds drivers/ptp/ptp_clockmatrix.c:1408: warning: Cannot understand * @brief Maximum absolute value for write phase offset in picoseconds drivers/ptp/ptp_clockmatrix.c:1408: warning: Cannot understand * @brief Maximum absolute value for write phase offset in picoseconds drivers/ptp/ptp_clockmatrix.c:1408: warning: Cannot understand * @brief Maximum absolute value for write phase offset in picoseconds drivers/ptp/ptp_clockmatrix.c:1408: warning: Cannot understand * @brief Maximum absolute value for write phase offset in picoseconds Cc: Richard Cochran Cc: IDT-support-1588@lm.renesas.com Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/ptp/ptp_clockmatrix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.27.0 diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clockmatrix.c index 75463c2e2b867..fa636951169e5 100644 --- a/drivers/ptp/ptp_clockmatrix.c +++ b/drivers/ptp/ptp_clockmatrix.c @@ -1404,8 +1404,8 @@ static int idtcm_set_pll_mode(struct idtcm_channel *channel, /* PTP Hardware Clock interface */ -/** - * @brief Maximum absolute value for write phase offset in picoseconds +/* + * Maximum absolute value for write phase offset in picoseconds * * Destination signed register is 32-bit register in resolution of 50ps * From patchwork Fri Mar 12 11:09:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 398566 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1100051jai; Fri, 12 Mar 2021 03:10:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHjYmxfZU31C/UJmbjVcLhfBExk8oieH990GDrAbU5jXLzgYfVouPnQBwuJyXxdC9rnG6U X-Received: by 2002:a17:906:39cf:: with SMTP id i15mr8006371eje.534.1615547424287; Fri, 12 Mar 2021 03:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615547424; cv=none; d=google.com; s=arc-20160816; b=1FQn1LTncnZdDZWJS02GyHyUGWQz3KjOFkfq5/9rGoqvdJI3bu8Tk48B7PEiTk7U90 8F2keb+bVnRqVKKKSoa6CWzM5XHIiI+7wDK124LN1K+2XKarfQADdAqi2nVIs/9XxEDT q4gHrn44wBy0VMxYFqxO/7BArqRS3F4+hpSvLwfE1bx3aCIyJrk9j3po9ni20d9ToPyY aICHobMAP61u0j9JQORxs+3aTxV5JkdgtD2+sAMHpny8/jDl5twkydCKeIl4sjBK1ilk teU6ir1scVaDsYV//7Ec8d8V2Q3pfc0AL5QSd/bvYyOFZJMSR1YjyG4SDvkZ7pvfjCux ba0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZLANRHliRO73E/sxll05XoJuWbOQ7cfgrUcNCab2WrE=; b=eCYekfP7wCD6+NHLkoYrfVk3Vwa0SxbJ5F72xWUcOXwTNspjj0pbjPFpC3N26EeWb3 NLf8VmYOHSOELyOW3WNqnZo8ZMPr7+elTlyVdqV/QBsLKGvVNLsgFRGTGM/sCElnDYkW Z0pkNggkp5z2IuLQrbNdtQSc5Heb9mUIIRERgS+PDJvt1jXlXtAiSF4tHc3K/RAFjLFf H69v4N9l76PVk/1VD/xKhQqRQH3efBpV7K0G+WP4J6bflIZ+1ioKuTk65p989NmAl019 hwHObSQER0SyZg5TDlqTQGPxwVtgXt8hC0ECfjKpk2havypogeLdrpMuwmxTOLFeEatQ FJkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F6WN3Mo8; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si3831085edz.577.2021.03.12.03.10.24; Fri, 12 Mar 2021 03:10:24 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F6WN3Mo8; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233884AbhCLLJx (ORCPT + 8 others); Fri, 12 Mar 2021 06:09:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234055AbhCLLJS (ORCPT ); Fri, 12 Mar 2021 06:09:18 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56C93C061574 for ; Fri, 12 Mar 2021 03:09:18 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id y16so4586066wrw.3 for ; Fri, 12 Mar 2021 03:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZLANRHliRO73E/sxll05XoJuWbOQ7cfgrUcNCab2WrE=; b=F6WN3Mo8QzSuMitYPhDY5pFMEMdgvHcA8euhraBsMg5y4Ghj/V1/4oSsOa6NeQRGZ9 qDY67j4czyel4Pqt5xdxCXHIzA4ngSdX6SUS5ZU2+OXZm2YbEIQ/T4a3h+hb4Veu1Sj9 e4O+Wdngyz55/G7XS4VAIGqXefmP4pE/q5LRUifn8G5+bJOO9HJLlqoeAvXq0l2eB7U3 YhyP2bTsW/xBJKNXFiLwugkEx8IT6G33WyBVe1KWK2E+0LFOB2IlZgKB7VV13V+iVL+q zTJ+A5a4xFIq0zw+0WfB6ml7l+RcrCCZ2Qlu0J/EjL94g5GNSu1gub+V0BB+zXzEqTQT ut+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZLANRHliRO73E/sxll05XoJuWbOQ7cfgrUcNCab2WrE=; b=fC5XLR6yfWV6Icdjnm9mquhE/uxx+zqtfO3/ZOb9FZwAtOTVt3VPSWQhS1jhqcD09k V1jxVZXfGMDAmWWfXKIgSQV/ZaLQxNEcSGScgr83zY9ahKJe/RbvTWS/X0VLxAcScGuY EDhGLecSxpQKTl5SnHJtF+CcNJ+EWnkp0EkCTF1rruzwASN8pz+efRfwj5NIDm5owpJy i2MNekeTP6UKSkSHycd//iAeo6ru29M8VHykpzm/29SoW9H4R6wQ7jfYjeUzr7TBdGJZ 8oIhmf7kCe3P/nYBcB9OUoJDHuNj07r1QLxDOXEPe5sVCR45kmGNtE08/cds6VLRHhN1 bk4A== X-Gm-Message-State: AOAM533TXVfNIYETyNTRkgMgnn/XicXetbj2mXK0xIOY+hKTDEpGRMqa DEg2qkLeYu7KVLvIhN+1EoLWzw== X-Received: by 2002:a5d:4fd0:: with SMTP id h16mr12939845wrw.178.1615547357082; Fri, 12 Mar 2021 03:09:17 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id b65sm1833255wmh.4.2021.03.12.03.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 03:09:16 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Richard Cochran , LAPIS SEMICONDUCTOR , netdev@vger.kernel.org Subject: [PATCH 4/4] ptp: ptp_p: Demote non-conformant kernel-doc headers and supply a param description Date: Fri, 12 Mar 2021 11:09:10 +0000 Message-Id: <20210312110910.2221265-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312110910.2221265-1-lee.jones@linaro.org> References: <20210312110910.2221265-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'control' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'event' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'addend' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'accum' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'test' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'ts_compare' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'rsystime_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'rsystime_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'systime_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'systime_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'trgt_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'trgt_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'asms_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'asms_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'amms_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'amms_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'ch_control' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'ch_event' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'tx_snap_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'tx_snap_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'rx_snap_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'rx_snap_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'src_uuid_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'src_uuid_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'can_status' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'can_snap_lo' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'can_snap_hi' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'ts_sel' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'ts_st' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'reserve1' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'stl_max_set_en' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'stl_max_set' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'reserve2' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:78: warning: Function parameter or member 'srst' not described in 'pch_ts_regs' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'regs' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'ptp_clock' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'caps' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'exts0_enabled' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'exts1_enabled' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'mem_base' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'mem_size' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'irq' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'pdev' not described in 'pch_dev' drivers/ptp/ptp_pch.c:121: warning: Function parameter or member 'register_lock' not described in 'pch_dev' drivers/ptp/ptp_pch.c:128: warning: Function parameter or member 'station' not described in 'pch_params' drivers/ptp/ptp_pch.c:291: warning: Function parameter or member 'pdev' not described in 'pch_set_station_address' Cc: Richard Cochran Cc: LAPIS SEMICONDUCTOR Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/ptp/ptp_pch.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.27.0 diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c index fa4417ad02e0c..a17e8cc642c5f 100644 --- a/drivers/ptp/ptp_pch.c +++ b/drivers/ptp/ptp_pch.c @@ -37,7 +37,8 @@ enum pch_status { PCH_FAILED, PCH_UNSUPPORTED, }; -/** + +/* * struct pch_ts_regs - IEEE 1588 registers */ struct pch_ts_regs { @@ -103,7 +104,8 @@ struct pch_ts_regs { #define PCH_IEEE1588_ETH (1 << 0) #define PCH_IEEE1588_CAN (1 << 1) -/** + +/* * struct pch_dev - Driver private data */ struct pch_dev { @@ -120,7 +122,7 @@ struct pch_dev { spinlock_t register_lock; }; -/** +/* * struct pch_params - 1588 module parameter */ struct pch_params { @@ -286,6 +288,7 @@ static void pch_reset(struct pch_dev *chip) * IEEE 1588 hardware when looking at PTP * traffic on the ethernet interface * @addr: dress which contain the column separated address to be used. + * @pdev: PCI device. */ int pch_set_station_address(u8 *addr, struct pci_dev *pdev) {