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 63307C6FA83 for ; Mon, 12 Sep 2022 21:30:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbiILVaI (ORCPT ); Mon, 12 Sep 2022 17:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbiILVaF (ORCPT ); Mon, 12 Sep 2022 17:30:05 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF4F717059; Mon, 12 Sep 2022 14:30:03 -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=mG0qYeuwYe7fdju4GBB1jRhHcmDtvn8wE7aVoT5KISQ=; b=gaWG18GY192lhqkylrLWikUUke 03RrGS7Qi1J9PwMtIO/Hnm+jdVTIENqlKGZYSuzEvFqkz8F0JN4J9mGahCdgc1K5UTFO1luzDHi/6 tfJDw0X3QZ6ic6aTiQ3yBhRYFFLvuTH3uZr1VZmnaFUXitnCWphds4RCp24F/ijT9Taw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oXr0D-00GWal-Di; Mon, 12 Sep 2022 23:30:01 +0200 Date: Mon, 12 Sep 2022 23:30:01 +0200 From: Andrew Lunn To: Arun Ramadoss Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, Tristram.Ha@microchip.com Subject: Re: [RFC Patch net-next 2/4] net: dsa: microchip: enable phy interrupts only if interrupt enabled in dts Message-ID: References: <20220909160120.9101-1-arun.ramadoss@microchip.com> <20220909160120.9101-3-arun.ramadoss@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909160120.9101-3-arun.ramadoss@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 09, 2022 at 09:31:18PM +0530, Arun Ramadoss wrote: > In the lan937x_mdio_register function, phy interrupts are enabled > irrespective of irq is enabled in the switch. Now, the check is added to > enable the phy interrupt only if the irq is enabled in the switch. > > Signed-off-by: Arun Ramadoss Reviewed-by: Andrew Lunn Andrew