Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp206222ybt; Mon, 6 Jul 2020 07:28:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0q3AkFORAs4w1hsxTTcCrIN1AquNS0P08CxPgXtF3NiS8II0PxpPu4RLToBJpIaKtBE+w X-Received: by 2002:aa7:dd10:: with SMTP id i16mr54580527edv.227.1594045730127; Mon, 06 Jul 2020 07:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594045730; cv=none; d=google.com; s=arc-20160816; b=hUonWKzTulbUqY82+1p28SeYd2Z1og+Itx/43d1sAKMV2cB7dNlf5Jb6x7vg1YBNDH a53h6RpR4hn5JS+Z5HaRvcKdOkdPvbfnRj2Fmfb91MW2MHIpRG3yIGAtBB1LyJKTTXZp 1q+r3r9C2q/APjcNCsBU56G3xxLN4OkX3y8PhZiT6NlG1bY1TI6gueRQGWjRHuIDN5ZG VV/uZL4MNbavQQ9fhmxLU2mVp/iUloYs31Xxxfmoeo+l2e4HiZ2Ku6SyUa7P3ZwTvZu5 Cmx66vHbd6npWGH92EWlBcKKcluy2muotLG5GOtZUPnI5ZIlIitH0V/FDu1hXWeU2ftb lFCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DBAdXo4SGfFpJlyGQs4ExbH0QX63pXE/JFKfuUgo/Kk=; b=UC+VWuEWxftz6qXCUtmP0ZWB+V5TWwmJoiTn/UUDadL8AhYSdkSF3VdFEN2BU/69BF uSLT9n0BEFoDfZc9kF7/sMgAYwO5cEhgVE1ftETvwyP6L3jEShWzFjUDhNdNxMNObpUM 6PanmAobjbS6mbBmeDecVsTtaXwUh5MYecs0s/SqAM0Ngdt/Z+SPy+IfGuiSun6CKQKo aMf8bb61dkxXWuOu4Q1LaRlU6rwvMuWbDEbzZUqBQNKGhgsFwDHw6e5sCR7jcQzh8ouj tUO46InoipqHyUSrdY+dSRERWCd0sSH3gZywximEMZrsCYRIT8UgsI8wqklf5ceXrU0H cIgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ri9Inqz1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si13409189edy.429.2020.07.06.07.28.26; Mon, 06 Jul 2020 07:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=ri9Inqz1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729235AbgGFO0l (ORCPT + 99 others); Mon, 6 Jul 2020 10:26:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729140AbgGFO0k (ORCPT ); Mon, 6 Jul 2020 10:26:40 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40491C061755; Mon, 6 Jul 2020 07:26:40 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id h19so45627677ljg.13; Mon, 06 Jul 2020 07:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DBAdXo4SGfFpJlyGQs4ExbH0QX63pXE/JFKfuUgo/Kk=; b=ri9Inqz1Y1M6gML7IsqOb2sLY7CKx9MLwk/fF2WPFu/1kXQUZ6rO8H7LPC1q47oyfL OdnyHe93GsragA0HLj3aCDjIGv/OMC4EOUvqO4UL2mc59pNUiE1PQC/TUd6WPLCMkw/q I3dRrczBEi5m2IxKnGpjoHXfv82QIULP/0ZmGrmHuP7ynsHpdcFtAkLePgXnJ7xDKlnF pKS4FXRkyyHI5XLW/olHDQAKwGVaOzQ9JydV5yJOZGHHnnEwIpmhZ+Ft6coZMlPcRsNW cEKXg18d338cdtuNEOM1JKsWmkO+f2Hox4eQUp37J25A7kjIynCDo7bUhoO7FuDBPkFy oCTQ== 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:mime-version :content-transfer-encoding; bh=DBAdXo4SGfFpJlyGQs4ExbH0QX63pXE/JFKfuUgo/Kk=; b=i6PqRTg4Lc+hQXVOPM1CKTMoCopM5bx16D7mQYbuw4iNBgHAnTryQ2Oqu3GwbGah3G MYbV3lnGhAt7Mqp85SB55exBf3w3gLlcJgN+H2TxeyKRlvFsQE+2mFzO3o1qzyfcAfR+ HyDdwxYEWA851O/VUaLymSUXeCnGNM4xcmDJrhbhju7WrSasdls9yL1SCvpKmN3nQL+/ bi9vVGkuzY74TeM8XU8ckgo0xPKmWxIrxOqNHmEvbyFpBNuwlridPfEComuiMLOBBcl7 GLGdmxOvbFju15XF0HCUJnOtppHeD6B93064/ZhREuBXeT1OXwrsjeU2Chsy9l3XdBrv 518g== X-Gm-Message-State: AOAM533vCq8T9AIucBhnXCiNmO8Zkv+5jlTLLkxzb4q1dXYhVtASXYuD xJ0hgme3OCQ+2lOp1w90K8z4db5y X-Received: by 2002:a2e:5cc6:: with SMTP id q189mr17292207ljb.251.1594045598483; Mon, 06 Jul 2020 07:26:38 -0700 (PDT) Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id m14sm11744638lfp.18.2020.07.06.07.26.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 07:26:37 -0700 (PDT) From: Sergey Organov To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Fugang Duan , "David S. Miller" , Jakub Kicinski , Sergey Organov Subject: [PATCH 0/5] net: fec: fix external PTP PHY support Date: Mon, 6 Jul 2020 17:26:11 +0300 Message-Id: <20200706142616.25192-1-sorganov@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a collection of otherwise independent fixes that got developed out of attempt to use DP83640 PTP PHY connected to built-in fec1 (that has its own PTP support) of the iMX 6SX micro-controller. The first patch in the series is actual fix for appeared problems, while the rest are small style or behavior improvements made during development of the fix. NOTE: the patches are developed and tested on 4.9.146, and rebased on top of recent 'master', where, besides visual inspection, I only tested that they do compile. NOTE: for more background, please refer here: https://lore.kernel.org/netdev/87r1uqtybr.fsf@osv.gnss.ru/ Sergey Organov (5): net: fec: properly support external PTP PHY for hardware time stamping net: fec: enable to use PPS feature without time stamping net: fec: initialize clock with 0 rather than current kernel time net: fec: get rid of redundant code in fec_ptp_set() net: fec: replace snprintf() with strlcpy() in fec_ptp_init() drivers/net/ethernet/freescale/fec.h | 1 + drivers/net/ethernet/freescale/fec_main.c | 19 +++++++++++++++---- drivers/net/ethernet/freescale/fec_ptp.c | 24 ++++++++++++++---------- 3 files changed, 30 insertions(+), 14 deletions(-) -- 2.10.0.1.g57b01a3