Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp133052ybl; Fri, 16 Aug 2019 20:35:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1vrvW0zjjlxX6qvlyn0ZOwNpDLWBYXI8XJh/+bJlQxB9gfrtC8Dxgv/mqUru2E1ppNSes X-Received: by 2002:a62:6dc2:: with SMTP id i185mr14209184pfc.40.1566012925007; Fri, 16 Aug 2019 20:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566012925; cv=none; d=google.com; s=arc-20160816; b=eVImx3+I/QFYhNUKGTGrjdrXSmCQn5sRDHxuQzvFt+ZZ3r4LUp0pn2GrDUKh4v8Cma 8u7p1tvITu9Z7RYzV3Cs7WKR1GLdI+WUzGhoevH3gF7j0FAGH7LWMCHb/7B8iOdOn8wj ZiOjbmdZg/BGTH8u0KDfA9OnAD0XgQEEbJ8cTFOz+nzu0u7IEb8O71gxt2nijHSkuu2V TeoD0i3e6XKWAsGKvkzYn1FLW5cHY0br0Mo68tPXCk2imHSJGfUHtJZxtcgBaG52cV0P u0h/BfJN3Mihy02KrxCwzYKZFixLAqW1EX/TemfHtjV+02HhOMdm5WGdwBJpB1ZVRxPj +LEQ== 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=2RIYBSqaW9B0+jqKPfPWcoOlSXjDrR85LCXqcPmva5Y=; b=E2nSszwMpGrRWnaSrf6g8o5Z4eCoKf/TcfYUC4JkPcZjKwM7zFfUglxiTKEv4G2rAx fVaq6HHg4Dmqfte/sbHoSdfrIwGkrWR5th4V2Gf5Ib4nI1ICBVoHe8pJlozsH0E7tWzF dsjQZSJbWc/2yYNhAuzQ4Hf/HNMxd2mpD6PIfU482RhLrpVw8KsDDoABFoqhGw0EyWDr sk3OdzwZHOWJtNBagHvwPENV/YdFg6CNJ7NqLqtQ3hiDLjaBo8JnYgWJdLfBKW13EOry b5eUl3mPDJVsglgeXP3G1B/zNyP++qh7rtx9fgznEyGo4sBhsvbghpQxzxtaomVlCdUK kOWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A4KSK8xp; 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 19si5080897pgh.262.2019.08.16.20.34.39; Fri, 16 Aug 2019 20:35:24 -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=A4KSK8xp; 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 S1726089AbfHQDbE (ORCPT + 99 others); Fri, 16 Aug 2019 23:31:04 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38662 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfHQDbD (ORCPT ); Fri, 16 Aug 2019 23:31:03 -0400 Received: by mail-pf1-f195.google.com with SMTP id o70so4089742pfg.5; Fri, 16 Aug 2019 20:31:03 -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=2RIYBSqaW9B0+jqKPfPWcoOlSXjDrR85LCXqcPmva5Y=; b=A4KSK8xpkCI5Eg4uytjiDcOxddY1LTdB9kMK+2t3QiiiRTN31DfrMlGurMYGrBKZe6 1o5mGpMo0/4FYb1tgNfzxvoUDtYIXOmRvqs2oWb61cgMEir4fjQZrNOAbBqmCSysnAcR /xfMaxgkzWEcKSO614pEVXPz6GUD5EnAW8TikjfkRv/TiT/NMgF11b+URLF+WsXfUuY4 OGy0AfBpeF9NgtZbV6x6bomr/yIKnswkLzcv9+wHLi8GVlgehWcpM/UaCQzjvgiZq4lS +Ud1mP7Squxy22v9rX/c8rFwW2HH7Rsr1yaWxiINCEEmEp3XhDeuwmDWuQetdkg2qsvU Jk3Q== 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=2RIYBSqaW9B0+jqKPfPWcoOlSXjDrR85LCXqcPmva5Y=; b=cv9c5GFYp3MRH4ocE0QUIQrDyUxvmfzAX0io4yHfiHsBCvvi3qoftGLkdEXquFH4Ud 7UvFpN5doQnqgkwszaBTofERYMEvronGhtTqJSMzJCkj+1LHFTCaxssl3rkMsikdrWEd CKa9iUAgk3g5QFAHE6unZPZ43dmFYn6hjKVg6CAvysn8nK+z0XNG02+u5LWevmnxBLPH RCjmCZMxAHiyEiEo+4pgIfO4wxh7GYHyrUPtoe7frxJczmtGgbCUOl0G1fK08VIvxc9P YRZuB+1HgC9nVLxU+dPJJfZu88oc3E/TVGNU4SN22anFtfOmqFpnTofz/FgBgGP1sn9T SDvQ== X-Gm-Message-State: APjAAAW42RMAaUKXziZMO68B5y7xYhANWWMLoK7tqYp80De3EKtXqMK1 WT9B6yP+m4fyYK0GEBmucpoyy0fp X-Received: by 2002:a17:90a:b947:: with SMTP id f7mr9716422pjw.112.1566012662979; Fri, 16 Aug 2019 20:31:02 -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 o14sm4854056pjp.19.2019.08.16.20.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 20:31:02 -0700 (PDT) Date: Fri, 16 Aug 2019 20:30:59 -0700 From: Richard Cochran To: Hubert Feurstein Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , "David S. Miller" Subject: Re: [PATCH net-next 1/3] net: mdio: add support for passing a PTP system timestamp to the mii_bus driver Message-ID: <20190817033059.GA1336@localhost> References: <20190816163157.25314-1-h.feurstein@gmail.com> <20190816163157.25314-2-h.feurstein@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190816163157.25314-2-h.feurstein@gmail.com> 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 Fri, Aug 16, 2019 at 06:31:55PM +0200, Hubert Feurstein wrote: > > int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); > int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); > +int __mdiobus_write_sts(struct mii_bus *bus, int addr, u32 regnum, u16 val, > + struct ptp_system_timestamp *sts); > > int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); > int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum); > int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); > int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val); > +int mdiobus_write_sts(struct mii_bus *bus, int addr, u32 regnum, u16 val, > + struct ptp_system_timestamp *sts); > +int mdiobus_write_sts_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val, > + struct ptp_system_timestamp *sts); Following the pattern, you have made three new global mdiobus_write_sts() functions. However, your patch set only uses mdiobus_write_sts_nested(). Please don't add global functions with no users. Let the first user add them, if and when the need arises. Thanks, Richard