Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp691232rwb; Fri, 23 Sep 2022 02:48:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HlbVNFGIFtdYvHeQ+cjBxspf3lhAvDiVtG8A7fuTTpVZQlJAKemtV+xmr6JfhvooDMUvo X-Received: by 2002:aa7:dcd2:0:b0:44e:69f3:edd1 with SMTP id w18-20020aa7dcd2000000b0044e69f3edd1mr7400079edu.244.1663926521788; Fri, 23 Sep 2022 02:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663926521; cv=none; d=google.com; s=arc-20160816; b=vmw+sYRyx9oXzxTm378mPZuhDbPDL6fZgaUOE8pxuiA6NQ8AOPdlsluhyunAHLv7Iq 7m/0RcVD1LDHNjuvFeyIVB3Dxlf4Ly5VPPtITL71kgaAm0JYwAbk14Kf1havxNL5cZe7 Sn23D2+2yPB8f1j0AYv7VuYAL0ZIbAG0IT/wv/etw3uINnnWbQQa2XsohExwn7hV8gSt VI9uC4Ct5RtyGhsV+Euw6NRFRZlH3dpygqg0WeFuqyE8CwGdAzk6stYHNt+UMQXqwDvt AliNzgnBULACmy81G8TvXx+EJvNQJnRmmK38zcAldqDsasRpCOw3FeoREIuresEypwAO eVRA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=KAsQpCwz1mhzqgXOOpWAAyoZYIipxa0JNvDVNwOkdeo=; b=jiBd5jcH3Tcibr5Ot//N9kIg7Z4GvFaiIieROsJkICt767gUA19gO+yqotM/Jr18A6 Qxe6JRrmmF6HFWGgL9hR0ebwT0LAEmfWOjnUyhQv67jo7W0wHJNclogQGHrNhWMkeU3E SD1rZoGM9WTaqqaV1XPWch8ZfvYcsR7GaGNVGDxmnvZeHLWmb+KvmrhzZHzxtItj7JnU SpoTgJZwlnMeFkkDGdvWHoBPIGJPGWcsZf4gW9kclIZm+L0nnFrTBhrfXG5rk6olLfPY eYzX3qauxxGBsTX+rQmrVVEFY75ymBBP5MRbxoejteQ3xvP6li7IaB3jriLhwtukkHA5 BC5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=PSyWMq3H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020aa7db8b000000b004533484fe1bsi6306693edt.563.2022.09.23.02.48.15; Fri, 23 Sep 2022 02:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=PSyWMq3H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231836AbiIWJnD (ORCPT + 99 others); Fri, 23 Sep 2022 05:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbiIWJmm (ORCPT ); Fri, 23 Sep 2022 05:42:42 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2A94130BD3; Fri, 23 Sep 2022 02:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663926107; x=1695462107; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TWffwfgFVQ+yoXywXApnajzBLdCUOeUvo0oedfqTbvQ=; b=PSyWMq3HoXN1quOQxLjDanqebe95hQdfxKfkz11IuJTBHy0uOHq1b5qn m4nGxrrS1U4L8P+AqcolTiN87S3PP11Pep9Ie4Unz6vLeK2A6iLk2I9aG Fl/Ush+8wgG13mVd6XhTzLaCxivlwbJnRWLpgUDw4jMwaRzoSGOtES4Av yi3nKRycG81AiTG6IghPnQdRIi8P5k+NspVdVp3nMuuLa5dDHvp4H32Wi t7u/a55XuBNNdxdcvXpMEg3c/LIfYppt2kWrMnytUKukf7NcJE4gVrh18 0IzlCL2K6LmKYuKjozsm/cNUPjWLa4QUQRf8k/q66Zl40UVaO52xB5nZv A==; X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="115070387" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Sep 2022 02:41:45 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 23 Sep 2022 02:41:42 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 23 Sep 2022 02:41:39 -0700 From: Raju Lakkaraju To: , CC: , , , , , , , Subject: [PATCH net V2] net: lan743x: Fixes: 60942c397af6 ("Add support for PTP-IO Event Input External Timestamp (extts)") Date: Fri, 23 Sep 2022 15:11:34 +0530 Message-ID: <20220923094134.10477-1-Raju.Lakkaraju@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove PTP_PF_EXTTS support for non-PCI11x1x devices since they do not support the PTP-IO Input event triggered timestamping mechanisms added Signed-off-by: Raju Lakkaraju --- Changes: ======== V1 -> V2: - Repost against net with a Fixes tag drivers/net/ethernet/microchip/lan743x_ptp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/microchip/lan743x_ptp.c b/drivers/net/ethernet/microchip/lan743x_ptp.c index 6a11e2ceb013..da3ea905adbb 100644 --- a/drivers/net/ethernet/microchip/lan743x_ptp.c +++ b/drivers/net/ethernet/microchip/lan743x_ptp.c @@ -1049,6 +1049,10 @@ static int lan743x_ptpci_verify_pin_config(struct ptp_clock_info *ptp, enum ptp_pin_function func, unsigned int chan) { + struct lan743x_ptp *lan_ptp = + container_of(ptp, struct lan743x_ptp, ptp_clock_info); + struct lan743x_adapter *adapter = + container_of(lan_ptp, struct lan743x_adapter, ptp); int result = 0; /* Confirm the requested function is supported. Parameter @@ -1057,7 +1061,10 @@ static int lan743x_ptpci_verify_pin_config(struct ptp_clock_info *ptp, switch (func) { case PTP_PF_NONE: case PTP_PF_PEROUT: + break; case PTP_PF_EXTTS: + if (!adapter->is_pci11x1x) + result = -1; break; case PTP_PF_PHYSYNC: default: -- 2.25.1