Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1349783rwb; Tue, 29 Nov 2022 12:18:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5QjYkVCR+UEeNqZkdOQQP90mj94+z2KV5KImb947UmX6dKohs3uBxTr677YEg33gZwdAkE X-Received: by 2002:a17:906:a387:b0:78d:946e:f65d with SMTP id k7-20020a170906a38700b0078d946ef65dmr49700731ejz.365.1669753100078; Tue, 29 Nov 2022 12:18:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669753100; cv=none; d=google.com; s=arc-20160816; b=H7qeB0HYpFxi5W7j+Z40Fsc1P3V1e/X+jvBxciHvEUgf9ZaRZlkSMx4yINoRFeYqIu WSJOC9Bq6xN++fqp9d/C7N3hiF/o7iHwudoTOIdzsPFhd7ot5JCqninBSdF11vTBImpz PA76xyXqHk0dXr1V8L8cWD/9goODf2S5BhJA33CRuiCyYU8sJ00/1WNsF8zTNRws53aO oH7NdqsYwMtH7V5dV799HFfN46fAkACB83Ko1lrpLROe6bvCs+/f+gTyH3YbNfMqZmvd 63ip/0ReE7u5bt5w4Y1orPt88kCiIy496m4vtk3TmF2MMVeJKeo3JOcxFzeUrD7fJvpk skPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GQkqIEeWtoMcf+c1pfLWBY/tc9I80bqBBg812eggygw=; b=dVEXdwJBt6zyBnyb9Y/PclYkn0n8kpC0HNLb7JnXP2DNyiZ1SFiSjlA+sFUWhP04BY HRoVQf8y0Vage0YD0Lc+TBWukNx3Ms6allHN0SrYFnlaSAeN3gs1Df9cDUSZV1t9ikFB FDVBUPicF3JQmU9qVZzntkDPJdEG3C4QnumQqC/R1qguBrej3igTRd1wf4pFtPtDJ3Cc xaOgYXHciQeADm9demkhVHYalu6xYK2EodnQFmLIe/kVAQuXUWV/4hmpQgLsGdIoIaQt 2tbk1B/TvrafaR2Z0jmAu5gM3KE0UDN6WdT1TZP4ULmqwLaWnhgNVkOwgOSOgjErTt3f w76w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x9ZucUZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020aa7c987000000b0046ae3282cefsi8686433edt.59.2022.11.29.12.17.59; Tue, 29 Nov 2022 12:18:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x9ZucUZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235927AbiK2Suh (ORCPT + 84 others); Tue, 29 Nov 2022 13:50:37 -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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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