Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2085499rwn; Fri, 16 Sep 2022 05:35:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5F1sJyw+ygK+9UGAkrDrqSf6i8CpfI0b7xwPQgzQXu8tUxZ8CgbcAUefEHXNQe6OHbh3we X-Received: by 2002:a17:90b:4c84:b0:203:20a:7afe with SMTP id my4-20020a17090b4c8400b00203020a7afemr16089266pjb.94.1663331755628; Fri, 16 Sep 2022 05:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663331755; cv=none; d=google.com; s=arc-20160816; b=mPW37FGvtWjfAji4P1GtiEof6BTRQnycniz1bsLrAzG/9gRgNxXgjSdIkE5WVlhO55 Qs5GzF7Y/Z1Ydmfy5hWcAV8p768EeQOF2uMOkN1525ptPF+noV+g7v8sM6oiPkqIAsIi xYuvEdtk/46TTugy1DoPTCQsTlOZ+r3NPIKSlhf7ayY2APeaY/QxHvpiqw7uUx0ilitA 3pRSIvlV4pKD/m0DR9QE3seAkHCcGCZrM03wWHHbB1nYMTpuNjbPyVY+X5eFSjRxLhEn QQq5dlhg5n3JyViX91fsXOXzEruDwqzXMLWgtSza2TAKXAdXc3sQr7a1QinAnzR/z+Hh PvUA== 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=RZ8wN5bvzT+ixDqyFSSrlDqJR98jSlMDE/vvRy4dmIc=; b=TNs09lJsClL/yyOw4FjuSWbRQPRq0GCCFTivesjPA5K4DumMrATvPGrkzcQBIMJoPt nDVGIURU1OWJycdoV1uqbVjxxAbXkAsz7+YCKAifix5K2nIneptZNuW+B8X8L1sk2/IR n0X+twsBr3V12B1fVlIulhPBPM/oJcKdbmULLY1hHvOecCEfYpmFmgIi3qiBOUHKkcOK NJ/G8pEBx72dMC0jHT5I/gTFAbDAshUwnB3GB80KKw/5/EmnCdtI3pkIoYDSynkI7Jcy MtY57y0JpYfHEuVup4n63AmAam68WVNnqKFNYcZUXqigi6fI7MJzlWrK16yqmwbxyImC Q6Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=GI4yuorA; 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 q17-20020a056a00089100b0052d9e5f07d9si19214522pfj.210.2022.09.16.05.35.42; Fri, 16 Sep 2022 05:35:55 -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=GI4yuorA; 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 S231229AbiIPL6P (ORCPT + 99 others); Fri, 16 Sep 2022 07:58:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230441AbiIPL6K (ORCPT ); Fri, 16 Sep 2022 07:58:10 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A41CD37FA5; Fri, 16 Sep 2022 04:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663329488; x=1694865488; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/NI2pu8giI3UdwHRrZq8eCC9VA82S1IW3MexOoaAZY0=; b=GI4yuorAtZ4B7mS3yS6e31HccCGZdcWTy5GlZ5hb2JyBIz9KQLy8sleg UFt+4SQtRjGYGQFclsZr5YeJ2Dq0YVhrGqq+AMiGMVDGbCqI29dBLdBWB EZsJdrtIYK/tqf2pKLMh3MFsWKLDmlE+LfzaY6ttdfFm1ZmUcMhBhpqc/ L23I67LX1BBnqmInNOSMm3w9YGChAqv36SFGNgwwmQKazboYiOhkP1EU3 sGUywO5jB5hc1c1kIhidQTyvYTIS9ERY23hWVVuu08q0PWifWvD6Jwppu TF+nj/n0ElyrTsKoJaAHBAur+Vd1RyVp3zLwwaFPztXITmM+xBX5Xggc/ g==; X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="177485430" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Sep 2022 04:58:07 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 16 Sep 2022 04:58:07 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 16 Sep 2022 04:58:04 -0700 From: Raju Lakkaraju To: CC: , , , , , , Subject: [PATCH net-next V1 1/2] net: lan743x: Remove PTP_PF_EXTTS support for non-PCI11x1x devices Date: Fri, 16 Sep 2022 17:27:57 +0530 Message-ID: <20220916115758.73560-2-Raju.Lakkaraju@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220916115758.73560-1-Raju.Lakkaraju@microchip.com> References: <20220916115758.73560-1-Raju.Lakkaraju@microchip.com> 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 by commit 60942c397af6094c04406b77982314dfe69ef3c4 Signed-off-by: Raju Lakkaraju --- 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