Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp526107pxh; Tue, 9 Nov 2021 14:42:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJziPn7cqgHEOwCnln6QBctxzHo7ZaHi4bsWedF9FuEAVC9/UypQTvKtjWfjU4YfLyKPS9n7 X-Received: by 2002:a05:6e02:1c21:: with SMTP id m1mr8200856ilh.90.1636497739075; Tue, 09 Nov 2021 14:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636497739; cv=none; d=google.com; s=arc-20160816; b=pjudyrhHNFz3aUQMmYQQ3umw68mVtlXx4dHqGGL2plWP61RHIr7XBEGbHM9P39iY+D IRyNI6QxDpgbs6JtQqb3IPc7frmT1W5kZw/0XCQMTbKNCurA5jvR8qSe/h5+GUroCRCK o8pOclfj3i4DpGdsPEZ1eRHuBzZxTr9xBUMFOrnpsnMLlAvZCAXtYka8KWwkkaN9qjUD qJ61rsrYys8cACL0PVRqgqifGrJNqyHXREVEZORgepZ0lG5vTNNOMLB9H2XKqE6JABAA jaV1ps8cca18/IZPTUlMY1CJ+Ek5ySZFdRlmWC//HJuFxa+IxaM3yJ7/ewTWCFM4Q/Zq qGzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=DjhJ6bXPCZmBBgKV1ylUUWdkZx8i5NCv/fQa//DDd+8=; b=WjobwWNlfm3Tsk6WJwnNuS8dog1CgS97KZb61OCvIJ6yJbSaoghQTWQEvxXgLYGSjM bSMB+Uermv7yKYhfvuCWf8/buFoS0/zvx/53F/xtMt6AkU4jH4dRLZFqndFALxgSh6y3 ZKus9Ii8iFYeV9FbT2crTTshd5YMu3vf5GoG4Q713k24TKtPoWiXxZ0FxKAT7H2AD5ks rPmjPeZOrLcWVjcwnFwEcIPOEjiYpxuDvqhcMNxmppGMcW1CnwXdrgDhm0AS4BptVNcO ZbOqPBiJ1i3ODGv2KBxLjFqx3ziiPlVkpTvJBGoA5BcHbRR7a07NMbDpWgI7Avemwm5v NvBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CFKg7mOF; 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 r7si7073246ill.82.2021.11.09.14.42.05; Tue, 09 Nov 2021 14:42:19 -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=20210112 header.b=CFKg7mOF; 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 S231147AbhKISOC (ORCPT + 99 others); Tue, 9 Nov 2021 13:14:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241893AbhKISN6 (ORCPT ); Tue, 9 Nov 2021 13:13:58 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD367C061764; Tue, 9 Nov 2021 10:11:12 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id c4so114020pfj.2; Tue, 09 Nov 2021 10:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DjhJ6bXPCZmBBgKV1ylUUWdkZx8i5NCv/fQa//DDd+8=; b=CFKg7mOF/xTPaFGy3SpEDPDth6/2k7W1xswE7NpZ8JFa4MkOeZmLLUG7wyJpQWQ/nL 3hiLb6tLPjmv7mg6obg0xEj7PHCj57KZ8J9/+i5uWJxNBgwQrDelsjAJ6YpETmBSWeDT tdffozi6shsWuaT9u2GpgUlMaLp8Y+hhqvO1YTavKO3IIR4IosficUUh9mxB+Y/4mg7o EjK4dJDRSn/Mtm4o12jZ6v0uxUv89PPw0OJB7KWIrewnItUxfTVX5kYMiZfCYlN9ZvjT z1qXzLLoThpBH9tuee4g0o2apwnS+PHJoAZM8wkXA2ngoeO9JEkdTlIObR/uESWWpdSs 8Fhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DjhJ6bXPCZmBBgKV1ylUUWdkZx8i5NCv/fQa//DDd+8=; b=aRBUlCbvYVILu/FHCyl7y/HTpAbqBNSN1LzA3gGMTFSz4D8Jk7lxl1CvVJyL5VlynB YsZwSp9JuLL60AoFcEIuJfIkYHAUKaucRs1snwBqXbwdbyTxr9cyqKtqJaw2DcqDDChM Ff86y7liHg36nk5b1fRPJPFkWVIrfxu/mECe/77pPwieE8sF5Y9uYgm+58hKcrOE9/av LPoxi2o46k0yW8IZuV5jT3IwsStx6E2scc44ratZxs/r1C748h58M93lxqzfj7laxq0x Vmmu30idVNx5dh/nhZE5sCQFFi9MXyJCxc+BYWoT7RXKuSGOFGcILhmkwBfJhsDrzDrL UPWg== X-Gm-Message-State: AOAM531enp0WK0ngswXNpaaNuYa6Jnh88dN+05i+eejsdMNcxFhHuPDu QEixgoBGH75CWfx/9IMRfC5KdnGS1P8= X-Received: by 2002:aa7:9047:0:b0:44b:e142:8b0d with SMTP id n7-20020aa79047000000b0044be1428b0dmr9754586pfo.45.1636481471943; Tue, 09 Nov 2021 10:11:11 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id s21sm5199301pfk.3.2021.11.09.10.11.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 10:11:09 -0800 (PST) Subject: Re: [PATCH v2 2/7] net: dsa: b53: Move struct b53_device to include/linux/dsa/b53.h From: Florian Fainelli To: Martin Kaistra , Andrew Lunn , Vivien Didelot Cc: Richard Cochran , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , John Stultz , Thomas Gleixner , Stephen Boyd , Russell King , Marc Kleine-Budde , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20211109095013.27829-1-martin.kaistra@linutronix.de> <20211109095013.27829-3-martin.kaistra@linutronix.de> Message-ID: Date: Tue, 9 Nov 2021 10:11:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/9/21 10:05 AM, Florian Fainelli wrote: > On 11/9/21 1:50 AM, Martin Kaistra wrote: >> In order to access the b53 structs from net/dsa/tag_brcm.c move the >> definitions from drivers/net/dsa/b53/b53_priv.h to the new file >> include/linux/dsa/b53.h. >> >> Signed-off-by: Martin Kaistra >> --- >> drivers/net/dsa/b53/b53_priv.h | 90 +---------------------------- >> include/linux/dsa/b53.h | 100 +++++++++++++++++++++++++++++++++ >> 2 files changed, 101 insertions(+), 89 deletions(-) >> create mode 100644 include/linux/dsa/b53.h > > All you really access is the b53_port_hwtstamp structure within the > tagger, so please make it the only structure exposed to net/dsa/tag_brcm.c. You do access b53_dev in the TX part, still, I would like to find a more elegant solution to exposing everything here, can you create a b53_timecounter_cyc2time() function that is exported to modules but does not require exposing the b53_device to net/dsa/tag_brcm.c? -- Florian