Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5529046ybi; Tue, 30 Jul 2019 22:48:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRltzmMobNlM2ZYx5piLql0A2kLESR/4RjfunfW612/eomiQtqh70bjNVhgi1cyfIkNgTq X-Received: by 2002:a65:5584:: with SMTP id j4mr81523029pgs.258.1564552115848; Tue, 30 Jul 2019 22:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564552115; cv=none; d=google.com; s=arc-20160816; b=E3RCayzNEEF5zWDXF23MCuzyDYYReZPo1CxiYD8TqyqFtfGTuvwjoGX6htRYPhd207 KaMP/GZJrmRloM7oDvf8OX93hkbAgEz8daERb9O2STT2Q8UT5nfxXINAzVnGZGosa0ip W6P/R4fqaJbYfknAGBzg5AoPGmJ9RF3Ps+MBsGtO8mUpywWqSbkq4lVDjZM7CSI0MjB1 CODZzmVAcMLm6usUP+nHBRtMGvdD0igtoo1o1mAuoLx9IJ21Lz02b+ICXDWRXqF3r52G fTJw8VbsJSysX0eLE/7IjfDt9RBrXBtTYjPzuJz4jQ2VNidBsfpgC9xBGkKzJQv/J5JZ tvPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aWCo57+BoaXzwl2WEeJkLPW0p2pUCHqK296Egq73VYU=; b=mjf0ivxbfb4CljIeUNofaP16w3Ink8va37cNYgEYWvofQscVPWQtNyJ6gnov0MsgU5 dEh2Ud6MQlKfhe/BjFOB4NW6WlQzkXkTfsvfCQNv+F2CyLpmTc8+hHyyVh600j0RxUZb EHhKabSyJPUGtcQSmQpJWf0kSjZgWCqoUoSVOp5ehvHyVFbhMP+x+dpKWYi9De/0lhXg SbZxNNvCkvsTtzjMAm8P802xMRGQD9P+ihCg9TU7fzwvrWT+ezbkKyDtFGqKYZdEHhZa 8EuUkjXdBiKDyLFCU/LPaRH+0e5CaGYC07oYMRzCefWmA2CYR87XTXGwoiVmtF/A3sPg zgcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qq+qornH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b14si30494748pgi.587.2019.07.30.22.48.21; Tue, 30 Jul 2019 22:48:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qq+qornH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728728AbfGaEbA (ORCPT + 99 others); Wed, 31 Jul 2019 00:31:00 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42304 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726601AbfGaEbA (ORCPT ); Wed, 31 Jul 2019 00:31:00 -0400 Received: by mail-pl1-f193.google.com with SMTP id ay6so29919843plb.9; Tue, 30 Jul 2019 21:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aWCo57+BoaXzwl2WEeJkLPW0p2pUCHqK296Egq73VYU=; b=qq+qornHhhh0pApQAe9cYHwBq5LyJ0Ccjx7+I8odAR01HaM7EVQJoEAPCN3MI+78uL pweEHxtyieA4zlJS8avkFxacc9PICcIK7Qxipm6vSeevCDodrpiI6tIZEx+SHDj1SmnA PV5v0KC8rU1R59gpc03p0+aZE8UL7fNImxwxFvtTbVg9fRSL5rEoDG2uGEbxUClUIz34 cS4YX1hBH3+QP08ElUMl5d3lCMBu6IviuXtPdPSidpr75u4Wgu/WLErMXc0HAHzCl1kg G4QGvNzXtuqgQrS6rWiKuIb7Tl1Yd+XPM+PW1hLKtR8Qdtb9yfTZEisCtDL1XDGJKIN3 dOfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aWCo57+BoaXzwl2WEeJkLPW0p2pUCHqK296Egq73VYU=; b=lfECd4HfO6D25sJDqsljxkPpXOM5fPY5Ug92prDL1DQZ5MXu/rjhozmlcQwPvEDAal 4tlQQmbpwByjmSRRnUwJiEp3waDMOJ5qPLfYblGc7HaclWISe7hHJb0BbPs4Jo+th4eW RSxIqicf+t6M4K3Zj9z2vjo7/HpX/sawBZQTlpXFAXbJzJIYx32GAQQstbJJ5V/8XhGf 8CSAOzl5mCFm75SIx+uXfw5tKI2kdk+Iz7i+3HkCwo+ZcRaYP4/+jxEi6h6wC2AHwxkm 9+8DQGKrqJUIsiGyyvy6q+Wvh6KdpteEQfdKTA1f3pyKTJ0ZjRKi5SixGZYbPspV8uR4 pDrw== X-Gm-Message-State: APjAAAX9w36YsPOXcOqVE4Vogn9CgCs0ILdbcKzeLzXc360fOt2wD62t G+bMKaxMY77vhT+5XVJr/Qw= X-Received: by 2002:a17:902:7c90:: with SMTP id y16mr120348323pll.238.1564547459509; Tue, 30 Jul 2019 21:30:59 -0700 (PDT) Received: from localhost (c-73-222-71-142.hsd1.ca.comcast.net. [73.222.71.142]) by smtp.gmail.com with ESMTPSA id h1sm84205792pfg.55.2019.07.30.21.30.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 21:30:58 -0700 (PDT) Date: Tue, 30 Jul 2019 21:30:56 -0700 From: Richard Cochran To: Vladimir Oltean Cc: Hubert Feurstein , netdev , lkml , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Rasmus Villemoes Subject: Re: [PATCH 4/4] net: dsa: mv88e6xxx: add PTP support for MV88E6250 family Message-ID: <20190731043056.GA1482@localhost> References: <20190730100429.32479-1-h.feurstein@gmail.com> <20190730100429.32479-5-h.feurstein@gmail.com> <20190730160032.GA1251@localhost> <20190730171246.GB1251@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 11:46:51PM +0300, Vladimir Oltean wrote: > Technically it is not "not true". [Sigh] The statement was: The adjfine API clamps ppb between [-32,768,000, 32,768,000] The adjfine API does NOT clamp to that range. That statement is simply false. > And what is the reason for the neg_adj thing? Can you give an example > of when does the "normal way" of doing signed arithmetics not work? The detail from years ago escape me ATM, but I needed to use div_u64. Maybe div_s64 was broken. But that is not the point. Changing the adjfine() logic for this driver is out of scope for this series. If someone thinks the logic needs changing, then that must carefully explained and justified in the changelog of a patch implementing that _one_ change. Thanks, Richard