Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4167544rwe; Tue, 30 Aug 2022 05:55:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RXXUmHcXJPG5NYp/hxrJJhDMRlHqF9znv0PJax196KJKCjMGUw4HupAGdOka7Lvvv3Tb4 X-Received: by 2002:a65:6944:0:b0:41b:4483:35cc with SMTP id w4-20020a656944000000b0041b448335ccmr18539425pgq.296.1661864130070; Tue, 30 Aug 2022 05:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661864130; cv=none; d=google.com; s=arc-20160816; b=nesfkOCL9E4Qj+72K7ZJ4GcJBKn9L4u/QE3CxZs75GeeNp6MTDDgAa5UsW3bWuAK+q b2pRJ4ZZyR4Nvyc5OjYMJKvqs62iKWKznOtRbhVdIcmeLIC/XHBU+w9n0Z98XKN8hBjP tdkeMuPJsnsUbMN4lwjHdSabETM828kwe3rzn7fUzkkp3jqm8UXscVlOU3UcboQcjHqy Ca4lOqxlCGm6KlDs4Fa8lqtFGeTFTr3t+meAV6ySnm539t+/uDWqz8jPyipllU2sZcT5 mpkUMjmROZdCEny9I6SadZnnHPzr0ONdgoDwBtR6ulSYXOS+Rd/xBv+fY+pQPR+Qt00O BPrA== 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=3DFiWf/O2nEaK0RaIY+HnSISDVWcCiaB89634qTWNxY=; b=S04+FQx8CIzTTbQsJ5170M9Ixc0Q/NhSlN++jeLAvRcDKaDrDbazBAeB055OwwDyqM PYqW8YvQnAcmlzpdwqZx5WTIhOa9opaViIYXXwTuXr6FwvosVFKeSLrmPLpn8z4tXIO7 CDvTSdjVQtCjCOwnXC5bFGr5S+1148mvFU4laSg8BKd1qne/IbmJcgCzTyREFZWaFnyA x5nQkt4O/9KJNOksP6h4ANtr++E64+3F6qrD3/ZSvtvQEW1woyRYkEtn/GBwK1Xcv1FZ QkTbTFPZgA6IwJlAHFIxS0tigD01iY6yVgp/su2GkDR1RAujwDBTNFKLc9XyzPseLqUw 47fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3atNH1u7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a17090332d000b00172e7d2b9a8si1856605plr.196.2022.08.30.05.55.18; Tue, 30 Aug 2022 05:55:30 -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=3atNH1u7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbiH3Mrs (ORCPT + 99 others); Tue, 30 Aug 2022 08:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbiH3Mrq (ORCPT ); Tue, 30 Aug 2022 08:47:46 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D86C8ABD64; Tue, 30 Aug 2022 05:47:45 -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=3DFiWf/O2nEaK0RaIY+HnSISDVWcCiaB89634qTWNxY=; b=3atNH1u7rzWigXKovzGkZsKbF7 xfCv9cZKzJPsNhPMA6HAYnjVenVH3yWIRe7VQFK3gBWsdrcpuT/S1bCsXbz15GgyGvCWp1UACwFkj GwByX0f2UEQ1e4IQjGqBAHHwIPfezuJM643gdLEFI5I8kwHJbjymxT2AKadDA9bUSm8M=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oT0ee-00F4Xx-9h; Tue, 30 Aug 2022 14:47:44 +0200 Date: Tue, 30 Aug 2022 14:47:44 +0200 From: Andrew Lunn To: Arun Ramadoss Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Woojung Huh , UNGLinuxDriver@microchip.com, Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Tristram Ha Subject: Re: [RFC Patch net-next v3 2/3] net: dsa: microchip: add reference to ksz_device inside the ksz_port Message-ID: References: <20220830105303.22067-1-arun.ramadoss@microchip.com> <20220830105303.22067-3-arun.ramadoss@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220830105303.22067-3-arun.ramadoss@microchip.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, Aug 30, 2022 at 04:23:02PM +0530, Arun Ramadoss wrote: > struct ksz_port doesn't have reference to ksz_device as of now. In order > to find out from which port interrupt has triggered, we need to pass the > struct ksz_port as a host data. When the interrupt is triggered, we can > get the port from which interrupt triggered, but to identify it is phy > interrupt we have to read status register. The regmap structure for > accessing the device register is present in the ksz_device struct. To > access the ksz_device from the ksz_port, the reference is added to it > with port number as well. > > Signed-off-by: Arun Ramadoss Reviewed-by: Andrew Lunn Andrew