Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp561509pxb; Thu, 12 Nov 2020 10:18:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZXhK200GFMoJ0ARFGf1LCaFpRVgkGa0D9TAMhjjl/SUf4n4/xqea3D1PWTTLSP+7HiFmG X-Received: by 2002:a50:b224:: with SMTP id o33mr1118588edd.21.1605205131681; Thu, 12 Nov 2020 10:18:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605205131; cv=none; d=google.com; s=arc-20160816; b=dTgPMrA6HpVCaI84MC9OdnK5Ol5hq6IZZkTBN5NDyyuRvI1IAxu//CCtrKWZ6a9/Rr da5k0i5PUVdSmXLK9DTIHMjy/lwDEUH/gcy6bxajq94dXVQEbhNyT96MvKe6/8XtuSsa 0e+oATtdLAXlMX2G6sIPwFzer0IZml7fo/XkqPUgWriOqVWus7oCBSxjdA4Lqt5ZLMaF mmk3U4vuvsM72l1UMBEKYkpzykeVyPSGZmndVBmtiBlwkfShG1qpL901YJ4on5JU1V2Z fwxEDw3k4/Ow7HrBaEt4RYeCvv/IhphwX3sVqz7dGbuyxvzPWU1VHB1IP5dRLbKQHaJq hbYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JIk3ZmFkO5nDtBNY58QwFlU29QBzJt4HRYRhDxHGvtw=; b=i5+aoirRgEhsSOnV/mIQyB/3GLwvEIWTcDRtwSC9wAkgVdL1GoP1NFQ0Zr60br60IR gWVe/XU8wyoLvI9WNLf9sfEfxRAzgt7E2X6sVCqKlBjbwewPoVVVBS7fKvWPTPRN4kem dkIBCCCDjFo7pF5ES7DbqrTdD4e0EbLWL8TE2asTqQgoKeMTXEW152qMx+auxcwigAAP t+vW+j5YODAt3UiVHdC9CP76WZFYjt8rDbA15AGRuImEyxIDm0VkanFM68SagKf9Vhc+ SYSewczL7AzVvpRG6zz8DNJ7OmdCyyyixt5wJ2dFbgsWYEce+qMtcEVedAu41yuLLuzs BG9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lrLJnI44; 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 x70si5018736ede.609.2020.11.12.10.18.26; Thu, 12 Nov 2020 10:18:51 -0800 (PST) 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=lrLJnI44; 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 S1726473AbgKLSOc (ORCPT + 99 others); Thu, 12 Nov 2020 13:14:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgKLSOb (ORCPT ); Thu, 12 Nov 2020 13:14:31 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7938C0613D1; Thu, 12 Nov 2020 10:14:31 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id r186so4894013pgr.0; Thu, 12 Nov 2020 10:14:31 -0800 (PST) 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=JIk3ZmFkO5nDtBNY58QwFlU29QBzJt4HRYRhDxHGvtw=; b=lrLJnI44J9dH+9u441DWX8ZVVOmayYq3b645EPjtdZSPHXbVgQDdp0BrOPIdjwhtfl PVorMrdP7ho1Dbx3vVxbxaZicCs1bb4j6ghd9RWOC/TtDh+L2qe6WkRCaPl+ToR/49kP dLlytg+RYyohGBgn5PAksDepRA6QXzDsrtIpi51BV0xnj8skVwQGhqLovrOiaDv8xaOn QnEQke22Jz3UaTgJOZ0BmhY13OzcHHLwaVpjDXwdk7YWlDdcH5wbSQB/eY8NJxOXyOKb IFLRz70jw7O6BFH0xPAMkZR5FLARpFwhRhAPNCzE8wF1xHxIFoWfCQSx9zmqJBrJa3lE 064Q== 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=JIk3ZmFkO5nDtBNY58QwFlU29QBzJt4HRYRhDxHGvtw=; b=RjuOlL/JXj4UdvtSqLba9m0nVpfnkwrnuN3nL6P7NrZ96asIqadl7vQg2/eGwd4++X BV/ZxlVZeeeNrqOKpQIuF8XPO54WboIdAHP1WdiPuzVvItqShUYY/QDWmcCtc/LxES06 d1xa1wnSLeEbWauxKqQPcvESc3DYZDRLn0SGdOon4/cCGwYwCiP3FJM+OaHjRAUNKOgS tkyIh13sP8oBu4NM2aL8REvNPLTRlxoNF9DEBLAUwwtDCAfm7Oggdr0JF7PU+hTiyQ6U 7FtndWAqitnX/0nWkNk4AyFowit7TgdGcIlCgLHQoZ603dXWoBOQQjnsqZXlsiJ2fsx1 1lWw== X-Gm-Message-State: AOAM533KvZbDcD4ZgTzu1+gnz6KzCxdNRavNtyHbx8nmZJD9n+RwC4Iw uMJxvdpLU7Obn/T8j2IzUr0/fwJnOKU= X-Received: by 2002:aa7:83c9:0:b029:158:11ce:4672 with SMTP id j9-20020aa783c90000b029015811ce4672mr659205pfn.23.1605204871250; Thu, 12 Nov 2020 10:14:31 -0800 (PST) Received: from hoboy.vegasvil.org (c-73-241-114-122.hsd1.ca.comcast.net. [73.241.114.122]) by smtp.gmail.com with ESMTPSA id e8sm7602600pjr.30.2020.11.12.10.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 10:14:29 -0800 (PST) Date: Thu, 12 Nov 2020 10:14:26 -0800 From: Richard Cochran To: Grygorii Strashko Cc: Arnd Bergmann , =?utf-8?B?546L5pOO?= , Jakub Kicinski , "David S. Miller" , Samuel Zou , Kurt Kanzenbach , Ivan Khoronzhuk , Networking , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V4 net-bugfixs] net/ethernet: Update ret when ptp_clock is ERROR Message-ID: <20201112181426.GC21010@hoboy.vegasvil.org> References: <20201111080027.7830f756@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <64177a8e-eb60-bc27-6d64-26234be47601@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64177a8e-eb60-bc27-6d64-26234be47601@ti.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 12:05:25PM +0200, Grygorii Strashko wrote: > But, as Richard mentioned [1], ptp_clock_register() may return NULL even if PTP_1588_CLOCK=y > (which I can't confirm neither deny - from the fast look at ptp_clock_register() > code it seems should not return NULL) This whole "implies" thing turned out to be a colossal PITA. I regret the fact that it got merged. It wasn't my idea. I will push back on playing games with the Kconfig settings. Even if that happens to work for your particular driver, still the call site of ptp_clock_register() must follow the correct pattern. Why? Because others will copy/paste it. Thanks, Richard