From patchwork Fri Apr 1 09:39:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 12798023 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDA2EC433F5 for ; Fri, 1 Apr 2022 09:36:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344642AbiDAJio (ORCPT ); Fri, 1 Apr 2022 05:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232259AbiDAJio (ORCPT ); Fri, 1 Apr 2022 05:38:44 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E19F70076; Fri, 1 Apr 2022 02:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1648805815; x=1680341815; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7IcK1ewceqJbfJh1/6ckW5d6xLhG1vLKCZUrKmmrJkc=; b=O8AGwhiwnCpokK11H27iH/VnUVmAzW5rrFZ3rVvv0+FYs91N16fUIoea L5bDlVuiVxGjm7fORgOINI4ybx5XquJoTmwYeklfVcZ2iXkQ1IhTGyd9P AKH2Fmdv3iB1xQeAXK+iHg7CvLzoxMywlofBLKHTtOKiTAmOV199P1dpf 4ls9ZVxdh/fj958IjvZZt3MTfD5K9YDBUQxlQp+7UvA0vwFiNAZNdENHx /JYnpeI+yjmraYAv39pUrgfuUNPK2doIkB9AWB6p5TiCjK1TWGr6FlYc2 RQOVBFatVrLTtyqlyxXF1oXIOOvgPaDCdCu2C/WmpiqJVJ6JmZI1t40n7 Q==; X-IronPort-AV: E=Sophos;i="5.90,226,1643698800"; d="scan'208";a="158510679" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Apr 2022 02:36:54 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 1 Apr 2022 02:36:53 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 1 Apr 2022 02:36:51 -0700 From: Horatiu Vultur To: , CC: , , , , , , , Horatiu Vultur Subject: [RFC PATCH net-next 0/2] ethtool: Extend to set PHY latencies Date: Fri, 1 Apr 2022 11:39:07 +0200 Message-ID: <20220401093909.3341836-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Because there will always be a strugged to configure correct latencies, then don't allow the kernel or the DT to have these values but allow the userspace to configure them. Therefore extend ethtool to allow to configure the latencies both per speed and direction. Horatiu Vultur (2): ethtool: Extend to allow to set PHY latencies net: phy: micrel: Implement set/get_tunable drivers/net/phy/micrel.c | 93 ++++++++++++++++++++++++++++++++++++ include/uapi/linux/ethtool.h | 6 +++ net/ethtool/common.c | 6 +++ net/ethtool/ioctl.c | 10 ++++ 4 files changed, 115 insertions(+)