Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1792671ybh; Tue, 14 Jul 2020 07:30:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn4vnI40+PmdRvsOHQOMRpBDHXsGIWJPgszjOkCzkyFVG5MgRpZ93XvP30RRMFkQWCzQTE X-Received: by 2002:a17:907:20b4:: with SMTP id pw20mr4922208ejb.225.1594737014702; Tue, 14 Jul 2020 07:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594737014; cv=none; d=google.com; s=arc-20160816; b=nDumEs8DC97XX3hnc0SHDp/cCXLgbY7Av2UkVn1k7GTrdsb+glVMT3+RUT7OA0xd8F lWzYt5hl4d5qhfMX1sU7zdBbn6s4HBiQJGBH3+l+hRVHIdpyvPF2itnq/JxdpH9EDku8 uYxb8wl+jVj3UdOFoyjnRWFcUwXDfiR9O33hX6VnxwBP4fqxKFm9bNPfZsQKSX3Ym9xL 6I+7TKLIOwCuJ+ojgn7sHzAH5aXxxO9dCKRDKsmD4UeLv4nU7UWvTAzuVmkhiPya87fT VBYb0nH1YWpeyTtpkxKhC2+rMRc2q3R4FsAcZX1i33xiL8CuRur+i2l9Q86g/dvCMz77 27sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=p48k422neEowRT4qHhc+RDlrp+EdfHDwdlbp2jQOvCM=; b=LLWXlZG+AK6oIUDwd0QxpAZ/dzBhFVbGlhohJJaBcUHKMy358R79y1kQAXtjLmvI1h p8+lSsivXElRFkOjmOvaDbdzLATblM+rP2f54WjV3D198nQvqgWxu0kUaBEficWG/btj CUfhOfk7u7aOOdOkGpPCvl+r9tStoB2z0Nf9ESx97PDUiSyPydOdTHsYeBvVQX9P1JHK X5cyBDzz8C+M5YIC1f0IJYnNUx9UGxMMzlsSW1GnzR2w550NF/u0owdzUQqxTevi8zVg if2HjoQoGVdI1ljz9Sb048vpoeS0j0QwXcGldWwf79n9VbEgFh5U4Eq+p6bQEPIWTjOR KOGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jX0/XZi6"; 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 x5si12243809edl.596.2020.07.14.07.29.50; Tue, 14 Jul 2020 07:30:14 -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="jX0/XZi6"; 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 S1728561AbgGNO1U (ORCPT + 99 others); Tue, 14 Jul 2020 10:27:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbgGNO1T (ORCPT ); Tue, 14 Jul 2020 10:27:19 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38337C061755; Tue, 14 Jul 2020 07:27:19 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id q7so23013789ljm.1; Tue, 14 Jul 2020 07:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=p48k422neEowRT4qHhc+RDlrp+EdfHDwdlbp2jQOvCM=; b=jX0/XZi6VM34IzPPqxD6AQZ6S9xG0YSKzYevqp0Oyh2e6rYk+ZlVgm4+SVaheK2FX/ V7X1sQsbfcLFq+rhbO8cpW/j554dVaIbbOhlQCC/KyNIxwwjmIJ3gK/AuW1GwnczUR5S hghJpSl5XAjUPn0vEcDvhmCejFtutwkpclYb7aUhffQP8Pw89tAergrGOxyhKgnNxXCe jJJK3CS6+CitgjgzeueHD7Rhkjw/EtGBBMC2TN8JjGx2I/+8JEv+e45SB75nMvcbyLuA 18vZFq3ShKkP9MpJp51h5lGt/bG7p/qPvikbsDHAqu6GEhhJkBqWSVPOqaEP8RWtACLx ZAZA== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=p48k422neEowRT4qHhc+RDlrp+EdfHDwdlbp2jQOvCM=; b=hCp+ic6oElpPHOi8qe25Ew2eqyWZ4WwYdKcsaLbds3tFutTqttYHACXdm3ziIwOHR3 MlZeM3qZ3kbHz3axRpOQ6HNLYrRh2e50Cn7ubYwZ0NQhUk8MGEoCbKqFY0ugtTOu0AJ0 o1/e9TJ1QUE0RzJMSz2MmCUCn8OPB/5C+5tViKKQ3ddFSmPQqsJnCVwGrif4Q4VcwLZD fM+hoiqLAk8DDM5/8C7blO4CLE8tbP6f8DO/wY10DyVgZqMDXozWe3LhHGY4j2K6bDO8 AXgABqFw5DZtIwl/AEalIPxIzizQ6PhJQqdYFohtkq0KYT4BOG9nDmrHFRWydJWNoMIk zVUA== X-Gm-Message-State: AOAM533GiVt+v5ZqbVhPQ3t3eezzhEaaPQuSDAqfzP7O8s8Y4kuS7M2G ObIR5uPdxOuoxgEwyt77vn9weL6c X-Received: by 2002:a05:651c:1183:: with SMTP id w3mr2353696ljo.54.1594736837705; Tue, 14 Jul 2020 07:27:17 -0700 (PDT) Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id 190sm4701440ljf.38.2020.07.14.07.27.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 07:27:16 -0700 (PDT) From: Sergey Organov To: Richard Cochran Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Fugang Duan , "David S. Miller" , Jakub Kicinski , Vladimir Oltean Subject: Re: [PATCH v2 net] net: fec: fix hardware time stamping by external devices References: <20200706142616.25192-1-sorganov@gmail.com> <20200711120842.2631-1-sorganov@gmail.com> <20200714140134.GA19806@hoboy> Date: Tue, 14 Jul 2020 17:27:16 +0300 In-Reply-To: <20200714140134.GA19806@hoboy> (Richard Cochran's message of "Tue, 14 Jul 2020 07:01:34 -0700") Message-ID: <87o8oidvej.fsf@osv.gnss.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Richard Cochran writes: > On Sat, Jul 11, 2020 at 03:08:42PM +0300, Sergey Organov wrote: >> Fix support for external PTP-aware devices such as DSA or PTP PHY: >> >> Make sure we never time stamp tx packets when hardware time stamping >> is disabled. >> >> Check for PTP PHY being in use and then pass ioctls related to time >> stamping of Ethernet packets to the PTP PHY rather than handle them >> ourselves. In addition, disable our own hardware time stamping in this >> case. >> >> Fixes: 6605b73 ("FEC: Add time stamping code and a PTP hardware clock") >> Signed-off-by: Sergey Organov >> --- >> >> v2: >> - Extracted from larger patch series >> - Description/comments updated according to discussions >> - Added Fixes: tag > > Acked-by: Richard Cochran Thanks for reviewing! -- Sergey