From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8B9DC4332F for ; Tue, 29 Nov 2022 18:50:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234741AbiK2Sui (ORCPT ); Tue, 29 Nov 2022 13:50:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235056AbiK2Suf (ORCPT ); Tue, 29 Nov 2022 13:50:35 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B722F3A4; Tue, 29 Nov 2022 10:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=GQkqIEeWtoMcf+c1pfLWBY/tc9I80bqBBg812eggygw=; b=x9ZucUZkrvH6fL5slEzEPD7Kzc djqZfqkDYq1ARwE7edRnxwZbvDpme8OLOTbnUTcwlauKRXVA5U30++KzoVMiTau8XGlTHKEnXFKP3 oKBHLvJPINLYxb+PDk5l0wH9B2MjB/WFfNLyWrZ9i44o5EspUWZyj4ClHj3c0Ae2Cm4o=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p05gY-003u5M-36; Tue, 29 Nov 2022 19:50:26 +0100 Date: Tue, 29 Nov 2022 19:50:26 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: netdev@vger.kernel.org, Ioana Ciornei , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 02/12] net: dpaa2: replace dpaa2_mac_is_type_fixed() with dpaa2_mac_is_type_phy() Message-ID: References: <20221129141221.872653-1-vladimir.oltean@nxp.com> <20221129141221.872653-3-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221129141221.872653-3-vladimir.oltean@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 29, 2022 at 04:12:11PM +0200, Vladimir Oltean wrote: > dpaa2_mac_is_type_fixed() is a header with no implementation and no > callers, which is referenced from the documentation though. It can be > deleted. > > On the other hand, it would be useful to reuse the code between > dpaa2_eth_is_type_phy() and dpaa2_switch_port_is_type_phy(). That common > code should be called dpaa2_mac_is_type_phy(), so let's create that. > > The removal and the addition are merged into the same patch because, > in fact, is_type_phy() is the logical opposite of is_type_fixed(). > > Signed-off-by: Vladimir Oltean Reviewed-by: Andrew Lunn Andrew