Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3760696pxb; Tue, 7 Sep 2021 07:04:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7GfAXChhQi9fM811bqRQ3sknxO1OrDHmR9hYn1iM2nGPqJqTb31d15a7GzyFWjY4YPmdh X-Received: by 2002:a05:6638:34a6:: with SMTP id t38mr15860759jal.19.1631023472387; Tue, 07 Sep 2021 07:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631023472; cv=none; d=google.com; s=arc-20160816; b=xyIciFLuKp8WX2l0YtoNQYvK35hIK9kxqSTh2G/uwja2uF0/TOY3ZQXfzzahUe2jLR s7zITROrGmBk0wwl9tfDLDuMP8VTo7llNl8cI/v4lMRvDPADB8oh6rHqrKIujg2Fk0WZ ltNgtp395v1iBAXywYUzatKdc3CfTbbfXPDotIjEFx6RXS7a82GXOenAiT9/jG3xFXk8 NCME7lpa85MruIFpraLJrbWpmAkKfOJY2rJfotW7y12p6KYTyC78NKVgkTayZkRNelmb G85JdcT11rDN+n6Ohomqx4bfgIwM/GcfQEJxDNSjTSOjLXww+NdwEeS2dC9zkWKBwmNY bcEQ== 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=OAF6zwj2tMzu/8Vj3/+kijPxUrcu1h4Y9fMBQCW631g=; b=dI/2bf0Daz7Ygic6tFqoXHn5XJXoZYESZd+DcjkreHw+pde/sBbpI6r6NpMJvi1BWS Htl+4rtHZprST3yvDdNFm3Mh0OaIdFpxnfuAng+qQ327xX2k6cvNX/+5chpJoHjlFlmA 9Wmnlx/ODaH4EPDyAGN/TWKuYqh+LxBPm9FDCKCJV14MOskYHBkH93sGAc6F82D7WW+g n338CQxLfv0GdQOvDeHt/r/JInX8QRw/3dO2SEn8hcqtIxHpg4CQ4LSFR8ywcQ9Rh/rh dbm1a+BPwpvDekFxqJFnVww8EfpZPLo8KN79Kxzyh7XDTKCOggbSVP1IX71dMuE6jnLp OX3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vi5xlwov; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si10327320ion.34.2021.09.07.07.04.13; Tue, 07 Sep 2021 07:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vi5xlwov; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231189AbhIGODz (ORCPT + 99 others); Tue, 7 Sep 2021 10:03:55 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:59394 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbhIGODy (ORCPT ); Tue, 7 Sep 2021 10:03:54 -0400 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=OAF6zwj2tMzu/8Vj3/+kijPxUrcu1h4Y9fMBQCW631g=; b=vi5xlwovpGnSmotvOBbdvdeEkS 7y4uiJ8R45mFeNJhK9fNjHxyrJDe99nq8WHsAlXvKYGqUZQYyREIptSr77HimKedMLAWyawOYQtS7 9oEjTwmI/VDkT2cfGXtinIGDUumba0mivrUU1QuaPEr9ddGhz+Cc7T1R0JQ0nljk5HVE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mNbgS-005eJU-5B; Tue, 07 Sep 2021 16:02:44 +0200 Date: Tue, 7 Sep 2021 16:02:44 +0200 From: Andrew Lunn To: "Modi, Geet" Cc: "Nagalla, Hari" , "davem@davemloft.net" , "kuba@kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Sharma, Vikram" Subject: Re: [EXTERNAL] Re: [PATCH] net: phy: dp83tc811: modify list of interrupts enabled at initialization Message-ID: References: <20210902190944.4963-1-hnagalla@ti.com> <99232B33-1C2F-45AF-A259-0868AC7D3FBC@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99232B33-1C2F-45AF-A259-0868AC7D3FBC@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 06, 2021 at 08:51:53PM +0000, Modi, Geet wrote: > Hi Andrew, > > This feature is not used by our mainstream customers as they have additional mechanism to monitor the supply at System level. > > Hence want to keep it disable by default. So we are slowly getting closer to a usable commit message. One that actually makes sense. Now, this is not really your driver, it is the Linux kernel driver. Could somebody be using this feature? Not one of your mainstream customer, but a Linux kernel user? Lets look at the driver, what interrupts actually get enabled? misr_status |= (DP83811_RX_ERR_HF_INT_EN | DP83811_MS_TRAINING_INT_EN | DP83811_ANEG_COMPLETE_INT_EN | DP83811_ESD_EVENT_INT_EN | DP83811_WOL_INT_EN | DP83811_LINK_STAT_INT_EN | DP83811_ENERGY_DET_INT_EN | DP83811_LINK_QUAL_INT_EN); misr_status |= (DP83811_JABBER_DET_INT_EN | DP83811_POLARITY_INT_EN | DP83811_SLEEP_MODE_INT_EN | DP83811_OVERTEMP_INT_EN | DP83811_OVERVOLTAGE_INT_EN | DP83811_UNDERVOLTAGE_INT_EN); Some of these i have no idea what they even do. Why would i be interested in RX_ERR_HF_INT_EN or MS_TRAINING_INT_EN? ESD_EVENT_INT_EN? Do we need to wake up the phy driver and update the status because these interrupts have fired? ANEG_COMPLETE_INT_EN, ANEG_COMPLETE_INT_EN, LINK_STAT_INT_EN make sense. LINK_QUAL_INT_EN and POLARITY_INT_EN could in theory make sense, but the driver is missing the code to report quality and MDIX/MDX. If the driver ever gets HWMON support, OVERTEMP_INT_EN, OVERVOLTAGE_INT_EN and UNDERVOLTAGE_INT_EN could be interesting. But there is no HWMON support. So it looks like there are lots of interrupts which could be removed because nothing happens when they fire. But then i wonder, why did you pick just one? Does it cause some sort of problem for one of your mainstream customers? What sort of problem? Does it affect all other Linux users, not just your customer? So please expand your commit message to try to answer some of these questions. Thanks Andrew