Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp971716rwl; Fri, 7 Apr 2023 08:05:37 -0700 (PDT) X-Google-Smtp-Source: AKy350bSSVYP8WzGr/tStuVJnCpcz2/Oz8OzqMOzigMWYLBZgCUkWoG4mePqiPh11GykOlzrWjnq X-Received: by 2002:a17:906:4dcb:b0:933:6f83:fd87 with SMTP id f11-20020a1709064dcb00b009336f83fd87mr2740839ejw.57.1680879937325; Fri, 07 Apr 2023 08:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680879937; cv=none; d=google.com; s=arc-20160816; b=Zu9gTIutri6jhaP5FazqKnxZEpBuU5SbGHmz8OztPkN+os46vVMryv8Bwf2SDCdZ0y cFM1+JePdv0ndmSGMvgaSWt2SNDH1gEfZA+ZDcSXzpN0KzgUViToahEkEOtColXAkC+a frnLttmvtKHp3IWY1myBGkGMFwkGk84mZ218USnAKiKOng8atg6ljBQCThNMdLZcdMqe FlTiT15RgX2Bkv5PzN401UPnqP6R4Y+2RDbqFhW1NOMSIHbas4l+mAvtPulBjM5c/P4N UUjtMMe38CzEJuWBShwqn7lWbwc+rsM/cfKxssQlvDXq7NJ1MoFu7QhQP8bLseWHnk9s HUKg== 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=WRzNxQq7iHXhn9Ubgg3RUKDCXQ7dwh7bEyStAdZAbEE=; b=NTKlkQa2VTRMA+YI/7OeO1tIjLYzYLWKNhBsWNjN8okL65Y4UwcBC0Zg/YWaouCLiL C+7lYratJiyb1WOcYiPvzBRLtBEDAjn8mB+6RXQp0tBg338B5ZSQpZfSFv3Evp6kmWZY TDqMFGbnwLrOxvBjwGbcpPsAOt5uVBjBCa4U/rH9XdhyMyyTTsZjENT010ePB38Mw3TN ineXAuu6oBJE3ejn5zCpZS3KnUY+LnPjyKQ8t0SbyFcFz3UA6WqhOo1dorvtIziQY8IM UNU476VAigeg+3k3mqjL/U4xLBjC7QvTsdf5efu/uTa02T2fhbXStdrQYF4ANuYdDTIO 12fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ho9wvwF9; 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 fy14-20020a1709069f0e00b008bc21b16e13si3033596ejc.871.2023.04.07.08.05.04; Fri, 07 Apr 2023 08:05:37 -0700 (PDT) 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=ho9wvwF9; 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 S231976AbjDGPC6 (ORCPT + 99 others); Fri, 7 Apr 2023 11:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbjDGPC2 (ORCPT ); Fri, 7 Apr 2023 11:02:28 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E774BB9D; Fri, 7 Apr 2023 08:01:43 -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=WRzNxQq7iHXhn9Ubgg3RUKDCXQ7dwh7bEyStAdZAbEE=; b=ho9wvwF9mTKdejPMkw+bekkpr1 CLy+tTvTpwZUd6Sef6jFWbERD4OWBGoGJ8YiUnu/nqmRsWVBXukIzBGg0BH7Ys9KVnoFdp/zXa6Vv yj4o3fSgv1GCasJTw70ZyJrQmtxe4etiUxNEoVEthOG5Sd014e4YIXqDnU+r6NJiuzyo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pkna2-009jTP-V9; Fri, 07 Apr 2023 17:00:46 +0200 Date: Fri, 7 Apr 2023 17:00:46 +0200 From: Andrew Lunn To: Marco Felsch Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Richard Cochran , Radu Pirea , Shyam Sundar S K , Yisen Zhuang , Salil Mehta , Jassi Brar , Ilias Apalodimas , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 06/12] net: phy: add phy_device_atomic_register helper Message-ID: References: <20230405-net-next-topic-net-phy-reset-v1-0-7e5329f08002@pengutronix.de> <20230405-net-next-topic-net-phy-reset-v1-6-7e5329f08002@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405-net-next-topic-net-phy-reset-v1-6-7e5329f08002@pengutronix.de> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Lets try again.... There are a number of things i don't like about this patchset. It does too many different things. It pulls workarounds into the core. I don't like the phy_device_config. It would make sense if there were more than 6 arguments to pass to a function, but not for less. I don't like the name phy_device_atomic_register(), but that is bike shedding. There is no really strong argument to change the API. There is no really strong argument to move to fwnode. The problem you are trying to solve is to call phy_device_reset() earlier, before reading the ID registers. Please produce a patchset which is only focused on that. Nothing else. Andrew