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 16287EB64DC for ; Tue, 18 Jul 2023 17:26:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232880AbjGRR0A (ORCPT ); Tue, 18 Jul 2023 13:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231984AbjGRRZ5 (ORCPT ); Tue, 18 Jul 2023 13:25:57 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9C2611C; Tue, 18 Jul 2023 10:25:52 -0700 (PDT) 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=FcwgIdzFCVUEo9D5g7XqioPox9/gjSu8PoqoPPfMJOY=; b=Q8xZNYlqBslLWzbfNDBUYXNvT9 ifN3DYtXE+8lpu7YxZq6/b4X3UhTmZgvl4FfeL0lsWBfiiA12N+wNhHTsFuO2dVnx2k4aLJQw/VOp GhNT/o2zAPmkO2so/GYfcobhhEo1iMvXLPnryZ+ZWvWo5FfgkId0M2ThAd4ijTQ/7ZEI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qLoRw-001dmw-1r; Tue, 18 Jul 2023 19:25:24 +0200 Date: Tue, 18 Jul 2023 19:25:24 +0200 From: Andrew Lunn To: Michael Walle Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yisen Zhuang , Salil Mehta , Florian Fainelli , Broadcom internal kernel review list , Marek =?iso-8859-1?Q?Beh=FAn?= , Xu Liang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Simon Horman Subject: Re: [PATCH net-next v3 01/11] net: phy: get rid of redundant is_c45 information Message-ID: <68c0bbfb-ec7b-435d-a1ad-98e438c70bce@lunn.ch> References: <20230620-feature-c45-over-c22-v3-0-9eb37edf7be0@kernel.org> <20230620-feature-c45-over-c22-v3-1-9eb37edf7be0@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230620-feature-c45-over-c22-v3-1-9eb37edf7be0@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 12, 2023 at 05:07:01PM +0200, Michael Walle wrote: > phy_device_create() will be called with is_c45 and c45_ids. If c45_ids > are set, is_c45 is (usually) true. Change the only caller which do > things differently, then drop the is_c45 check in phy_device_create(). > > This is a preparation patch to replace the is_c45 boolean with an enum > which will indicate how the PHY is accessed (by c22, c45 or > c45-over-c22). > > Signed-off-by: Michael Walle Reviewed-by: Andrew Lunn Andrew