Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp647501rdf; Fri, 3 Nov 2023 10:37:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVgFZh2N1yszKydCZisvEB6iOtUim6/QU8enEpoIO2iov6bJMwldxZ4PDJEiYzfZJKFVqg X-Received: by 2002:a05:6359:2c88:b0:168:e7da:30ad with SMTP id qw8-20020a0563592c8800b00168e7da30admr18496006rwb.10.1699033068566; Fri, 03 Nov 2023 10:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699033068; cv=none; d=google.com; s=arc-20160816; b=eOmSkGmpaj6SbffpfuL3daqFh22fy57Bibedp2qQJUInKnZWOld++LBPOmqujeKMle x2+GRlM02NEhkEww4RKHoI9hn5oCC5OohSOPUcO4dHY3m3dxpnkgPzHcLucypUQpm4yT SvLLZ/gGTX7FDHn/if1RSptmGT0FUtoYTICgNks1zpd2tq90i6tsiMWVdjMU8T6Oh/OV 9JAw8HJNNo2+L/LoPw/L4uMethuqKCGAzjSNgDiEUBGHKMFrej7XuPvMIXpFcRMLqhCU HrjZ+2sx5Jnxl//P0ORX9QSbXGJaOXeIrot9YzzZY5Xxcpnjy+Iwe2MnhJyAd+SzFNqY 7yjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DMSZVLxL4ogAD5wj1ttv7z4THeQR0MDtGmLU6KGKDuA=; fh=c3wV2ql5SehfzODYWUuOyZypwHsSVhm0rxLc4psKGOo=; b=Qkoo1kE8HGkShiKqTt223WuD6R3NU08Sm1yshonnrqHKer2Se2IgDb5wN5HkxgI9Ty tESWwc74FBICTnpz2hObSeRjdGr1X3px414i+UPZIEY6X1VIJV1QXmi4WSAnEcf8PFE3 H4OSn70Jz7QyeOOfsbEFpUik3fYl5B1N+E7daDLCZaCHLY2MgKGJ6Q4y0ZXU/w6bHANx pBWU6srZ4h8MKdFUpV4pFqfrnPoV7//fUBGNnjqAdNPQT5Gyhoj2ubydNj/aGxPbtZ9o DfNqBF47tqEnmVjW/8YzAN3ujKS/2x4E0qkxnRlSSbasJ3HwWsfev5xgOmq4DmDemaqd 3pOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b=A34KeUSF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d190-20020a6336c7000000b00584a4a5be67si1885112pga.520.2023.11.03.10.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 10:37:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@selfnet.de header.s=selfnet header.b=A34KeUSF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5208083303F6; Fri, 3 Nov 2023 10:37:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230141AbjKCRhQ (ORCPT + 99 others); Fri, 3 Nov 2023 13:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjKCRhQ (ORCPT ); Fri, 3 Nov 2023 13:37:16 -0400 Received: from mail-1.server.selfnet.de (mail-1.server.selfnet.de [141.70.126.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65116D4D; Fri, 3 Nov 2023 10:37:08 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7097742119; Fri, 3 Nov 2023 18:37:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfnet.de; s=selfnet; t=1699033023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DMSZVLxL4ogAD5wj1ttv7z4THeQR0MDtGmLU6KGKDuA=; b=A34KeUSFMP/CwZ0SmwAAgeVyYDX9tSMB41HtasB+kX7eoQ4nkrOaGNjEiqRZACcGZwdX6s HgyvS84YNP6Qqd+g33MqNrkknYC6utbyqtDdrQ5FoafB2RjN4xJF45PiQuoovZRcvbuBtQ THOLXAG5sLNzqPTF0/dgY3zggJNaVp/yPypZUDKx7dIm9xrdyW6VTVTwaLbx2rluiM+EzC cjgpRMCJ1+WMBbM9OjFdIczhmykagOa9SKnolCzhNz4DxE+YjXN1V30p9uSUgfLRc4UyaF zWZFY1O3lkYFpbFkngWfjJLuiz2khWV53WQ0wxw2Z1RQnSZpU/ey/sOh5X2NEw== Authentication-Results: mail-1.server.selfnet.de; auth=pass smtp.auth=marcovr smtp.mailfrom=marcovr@selfnet.de From: Marco von Rosenberg To: Andrew Lunn , Florian Fainelli Cc: Florian Fainelli , Broadcom internal kernel review list , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Marco von Rosenberg Subject: Re: [PATCH] net: phy: broadcom: Wire suspend/resume for BCM54612E Date: Fri, 03 Nov 2023 18:37:00 +0100 Message-ID: <2315175.ElGaqSPkdT@5cd116mnfx> In-Reply-To: <999020b2-692b-4582-8ca0-e19c7b45ee92@gmail.com> References: <20231030225446.17422-1-marcovr@selfnet.de> <4890615.31r3eYUQgx@5cd116mnfx> <999020b2-692b-4582-8ca0-e19c7b45ee92@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 03 Nov 2023 10:37:37 -0700 (PDT) On Friday, November 3, 2023 4:39:55 AM CET Florian Fainelli wrote: > We have an unconditional call to __phy_resume() in phy_start() and we > should always have a call to phy_start() regardless of the path though > you have a point Andrew that we should ensure that by the time > phy_init_hw() is called we have taken the device out of IDDQ-SR. > > > I agree with all of your points. This is just one way which happens to > > solve this specific problem. Of course it might be asymmetric to see the > > patch as a solution to my problem. However is there anything > > fundamentally wrong with adding suspend/resume callbacks? I see some > > other drivers having these callbacks defined and some not (it seems a bit > > inconsistent throughout the drivers in broadcom.c to be honest). > > > > I'm wondering if I should just omit this whole "motivation" paragraph in > > the commit message and just use the commit message of commit 38b6a9073007 > > ("net: phy: broadcom: Wire suspend/resume for BCM50610 and BCM50610M") as > > a template. I mean, regardless of my motivation, I would say it makes > > sense for this PHY to support suspend and resume. > > I would remove the motivation aspect from the paragraph and we could > also improve the driver a bit to ensure that IDDQ-SR is disabled upon > config_init(). Other than that your patch is just fine with me. Can you > re-submit in a few days when net-next opens again? Ok, I'll re-submit the patch when net-next is open again with an updated commit message. And I agree, disabling IDDQ-SR in config_init() would make sense for a future patch since this would fix this potential issue also for other PHYs. Marco