Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2164407rwn; Fri, 9 Sep 2022 09:21:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5coddF2L7xyAu/ZH9WVECg4JLdlFzdcQQ+eLMeaqGVpbn6GJWoTTep+IICtAAkZWai0M1g X-Received: by 2002:a17:907:2cf5:b0:77a:1ad7:62d0 with SMTP id hz21-20020a1709072cf500b0077a1ad762d0mr2116294ejc.121.1662740506274; Fri, 09 Sep 2022 09:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662740506; cv=none; d=google.com; s=arc-20160816; b=dVr9fU4GDR0QSscclTC6YAop3iCOiZJO+ESp014deHk3toq0qTMK+36SKqkUQkUqGX Bqhh4K76Jo8aM1MmZ7/MmTw4h2ljFP8w/DqATsQmLBAq2frHoT1J0yVMKnJ6i9oo0sK1 ha7c+j1LUuLcq2XotRHeOAWJVofBFX+wDAxpuJ6EQrv6HlC0Qt4Q5H0nPy2rEHeOgap+ o3m1vmqa5dUO8+zQk2sscotUXraz8BZ2TCCCMd2mPYVeD8mYkimL65a1xkV45L6rRNRC vL8jFyF/oYqV78Cq0lExbZUCSpuIu30sF+m3A+Bdv/CvYJb4Wr6+iXsQ2//E3Np36vv/ INvg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=4JLMjES+IEiiyPAqMfy1lG/RQJTePZly8WnH9SSL0cY=; b=thcQXRYKru9/2qOnD9fDyNZx4LS9cVzlV0Wnx8lJag05W/u5Po4BNJrPzwUmlavrTV z6HVSMfqwjpITDM5tCl12giN0CY/NgrgpDNCv4E/fF5m7EgFrQh3jzH8R1gZUbDEoFF/ dTUU8Y+wqs4v2VX7wU7uoBUC/qphp6TXIwG38/1V+jV2hPh0l3ChffjlmEHOw+okLBvm nhflW4/ztcsZIY/7QI92SkJF/tnjmc4cWnRv9KTSnLqikEfm/XvutihbNtDeZT3yrVdd w9+r4qYqMzd7r+SQwektCQZACkMtTzVyL9zDUq8QAKJJz/m6cVNDlapurb1vXgfFc2aF KrTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=WAi83r6W; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a056402354b00b00445cdd8f83fsi822586edd.334.2022.09.09.09.21.19; Fri, 09 Sep 2022 09:21:46 -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=@microchip.com header.s=mchp header.b=WAi83r6W; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbiIIQBs (ORCPT + 99 others); Fri, 9 Sep 2022 12:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231674AbiIIQBq (ORCPT ); Fri, 9 Sep 2022 12:01:46 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 343B6D51E9; Fri, 9 Sep 2022 09:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662739305; x=1694275305; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=eZcBiEzR0A8RuY62lRo67e7/QJylgwmlLCnFSuB+ZD4=; b=WAi83r6Wsz0lLwgjNfzCjTfbAHQNEiSTXXEI7a4D2AFXnrB27B+uU4He eOYAacbvLLEZ0RaqNwe17xriN/lR60uj8ml9a7ba/C9zBJUB2RDv4sLc6 MwdDx2OZ1JBYTTGLC32/NR8545T9TUekSbusxtQJn2u5+KEnZw8LRUoQb DLAHorVJLe8JnC/uiD9R8cf7V5PqtTZBatdK9t8fhvyAIKt/m6s/Prhk1 Oz6j8Fziace3RZYYvVO8LJ7Zmg7yQq4FE1/i0ln7Jk9VcAnkainzhBzSt HKVAdLJ4XFccC349ocl7xvuB7VPRvJpjZxUst9PqyeEWXU1kmcH/vq/+2 w==; X-IronPort-AV: E=Sophos;i="5.93,303,1654585200"; d="scan'208";a="190177599" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Sep 2022 09:01:44 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 9 Sep 2022 09:01:43 -0700 Received: from CHE-LT-I17769U.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 9 Sep 2022 09:01:38 -0700 From: Arun Ramadoss To: , CC: , , , , , , , , , , , Subject: [RFC Patch net-next 0/4] net: dsa: microchip: ksz9477: enable interrupt for internal phy link detection Date: Fri, 9 Sep 2022 21:31:16 +0530 Message-ID: <20220909160120.9101-1-arun.ramadoss@microchip.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 This patch series implements the common interrupt handling for ksz9477 based switches and lan937x. The ksz9477 and lan937x has similar interrupt registers except ksz9477 has 4 port based interrupts whereas lan937x has 6 interrupts. The patch moves the phy interrupt hanler implemented in lan937x_main.c to ksz_common.c, along with the mdio_register functionality. Arun Ramadoss (4): net: dsa: microchip: determine number of port irq based on switch type net: dsa: microchip: enable phy interrupts only if interrupt enabled in dts net: dsa: microchip: move interrupt handling logic from lan937x to ksz_common net: phy: micrel: enable interrupt for ksz9477 phy drivers/net/dsa/microchip/ksz_common.c | 437 +++++++++++++++++++++++ drivers/net/dsa/microchip/ksz_common.h | 10 + drivers/net/dsa/microchip/lan937x_main.c | 425 ---------------------- drivers/net/phy/micrel.c | 2 + 4 files changed, 449 insertions(+), 425 deletions(-) -- 2.36.1