Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4447666rdh; Wed, 29 Nov 2023 01:36:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHq50LSAKac/kW1BS4aDGDrVGRs2r4d4yaCSmu44sANWhiXqcPv4VqACKvEAy7gg8deitXe X-Received: by 2002:a05:6a00:14c6:b0:6c4:dc5b:5b2b with SMTP id w6-20020a056a0014c600b006c4dc5b5b2bmr19883907pfu.20.1701250617656; Wed, 29 Nov 2023 01:36:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701250617; cv=none; d=google.com; s=arc-20160816; b=A1CPMOzP0hDCi4NPxiKisiIlkqMUR5x87O0PbF8CaZ0K1dHZxTO5P2zRBp/tsGX3SN NgPRHOVOUprSNkqqsIrxjoU8QiWGnV21rxjinnCgKj8iboymYR2I2Sdxd8NuJvxZfHWa zE3PZLn3I6f/Is+K7JSQcZyQDmxxg5H+vEMs3MjsnDchWeeZD7KVe87jOLzcYZNEXl3o BbwHJreIBAs3zOZNV37sU4Jm1D3pWxHku7AUC3Cq7gQpkLFsalIB+QeKXhcKvPZfbD55 FFNF+xHfW9GC+6PWBpThWKPqdXW5QpcPiuyLCvxRYtqawm/d9relWmlJDn1JibHPSp8y pj7w== 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:subject:cc:to:from:date:message-id:dkim-signature; bh=Vm1kAQ0JMuQUe3cnBM9Rhh/BzmqAbhh8B02CHm4+jb0=; fh=floi/2IuV1Qum9ifTQSOvf7MUhMRHRs0awnS5YABf+A=; b=lKsE88wzQYuBp93h10XLkI/9Y7+D5E7uPJJYiyHn+hxK+wfJ9kZuiDA31cM2hDEbyV g3oa31ht00HDu6nwybZfEPy7oC0ZEYaesuETbNBnQCFnYS8gPiV84oh7kgd8EXjxB7xR w/9Rskd5js+rNUTpa+/ETiFiyiCkrcCLuEh6pJz5LsAkVHSGJQK5eWK2MOTuduSrefeq 1lf1701F7s9FBrjIr1J8HKiaE3vQLLOBXYCsI1UTHzcJE4E0RDc6CTcl82zlC33WiXJ0 4P7VtEVrC5fPAinPKuezKwOi95Uigmr9juvZZR8BxejWVyCHU+dDqC7qPxa4UaEtV4xY MF2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Bwvjkdm0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bz3-20020a056a02060300b005be2508ce03si15204100pgb.569.2023.11.29.01.36.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:36:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Bwvjkdm0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E7779804B861; Wed, 29 Nov 2023 01:36:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbjK2Jgc (ORCPT + 99 others); Wed, 29 Nov 2023 04:36:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbjK2Jgb (ORCPT ); Wed, 29 Nov 2023 04:36:31 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF01C19A0; Wed, 29 Nov 2023 01:36:36 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2c87acba73bso86204641fa.1; Wed, 29 Nov 2023 01:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701250595; x=1701855395; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Vm1kAQ0JMuQUe3cnBM9Rhh/BzmqAbhh8B02CHm4+jb0=; b=Bwvjkdm0WEuw3I/8evX6ZJnjQ+nCT1rLdo0WlX0FKe7+FCelZGgm7ieZd2msUhqTYE jwcDjBp/WifLTUr4RPddS4YVnApq5+tf6IHsrjBl9s0YZbi9ROARoPlMTG3lLQxsO+Iq UYJIGpJA1HfzkVUt02F9PPAFThjsqSMbDn7KZqBJkl2g2cteq+F1DpS2Ak7Xf+OlaiNA VnMrEVWeAflAs7tQ8le4YKA7K9c14grHbJrmZAy7ZIPgYriHyXf50+dUzL68/OIYMio1 uM4Dt79D8WMauVD7UeblaNEeRQbmi2XHdHFNYPLng4FAof5Ft1SFkCuYpHkrr02ucTmt qsvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701250595; x=1701855395; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Vm1kAQ0JMuQUe3cnBM9Rhh/BzmqAbhh8B02CHm4+jb0=; b=OCbYhBn3307HKS3f9ncbXDsmtTllM3qv40mpPrfdVg76WlZ9TIioPVGUOfsmsaEZ+e oKwbqkS6CJRQD/nOHP5PNqLHFN74amqrCutgVuBOjfGOGcjDpjDOzHsikeSmlFPX4Er7 6uBpzuPehZPHYoDa4vTRzOpuW634SvO7Tq9rVXzDyDkjVljl14wTedVJv1T381fg2Igh aquGIphtkyufrOyvHDCJh5koIDR/fLpFALDxO7ptNkq1Ib7pvNusg9zDg1NgEUatCCvC 57PWm52z6u7qn78dFUNQtfc9Ye/zB8lOLJLYyW1JXeXlrSdl+2V50YHxxkAIS+sLzHOt zH7A== X-Gm-Message-State: AOJu0YyV6lGJxcqXvDZzr8WkS6PSFRQIGg85dhHPENRDNiThblbFYXuB dh/MmR/TClsF7+BviwMfbSU= X-Received: by 2002:a2e:b707:0:b0:2c8:8b7c:c77a with SMTP id j7-20020a2eb707000000b002c88b7cc77amr11161552ljo.24.1701250594748; Wed, 29 Nov 2023 01:36:34 -0800 (PST) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id fm21-20020a05600c0c1500b0040b398f0585sm1557066wmb.9.2023.11.29.01.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:36:34 -0800 (PST) Message-ID: <65670622.050a0220.4c0d0.3ee9@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 29 Nov 2023 10:36:31 +0100 From: Christian Marangi To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH 02/14] net: phy: at803x: move disable WOL for 8031 from probe to config References: <20231129021219.20914-1-ansuelsmth@gmail.com> <20231129021219.20914-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:36:51 -0800 (PST) On Wed, Nov 29, 2023 at 09:24:32AM +0000, Russell King (Oracle) wrote: > On Wed, Nov 29, 2023 at 03:12:07AM +0100, Christian Marangi wrote: > > Probe should be used only for DT parsing and allocate required priv, it > > shouldn't touch regs, there is config_init for that. > > I'm not sure where you get that idea from. PHY driver probe() functions > are permitted to access registers to do any setup that they wish to. > > config_init() is to configure the PHY for use with the network > interface. > > I think this patch is just noise rather than a cleanup. > I got it from here [1] Also on every other driver probe was always used for allocation and parsing so why deviates from this pattern here? Also I think it was wrong from the start as on reset I think WoL is not disabled again. (probe is not called) [1] https://elixir.bootlin.com/linux/latest/source/include/linux/phy.h#L916 -- Ansuel