From nobody Thu Apr 9 04:43:22 2026 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 4F611C4332F for ; Wed, 2 Nov 2022 04:15:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbiKBEPe (ORCPT ); Wed, 2 Nov 2022 00:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbiKBEOi (ORCPT ); Wed, 2 Nov 2022 00:14:38 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14B6023388; Tue, 1 Nov 2022 21:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1667362475; x=1698898475; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XREYEvSdINiMHV6IL4y/XM301yNPd7W2TtRBmVU9SiM=; b=Fes+XqR3nYeIMjXGZ+fyn9h6L3clvG/z9WTiyuATkCCDuqVh9ndrvOAb Y2fg8W8/xwsRPRJ+w/7PgW6USlvrNLeLbV/hXxQGQzLgPNzhuVegXp8Uv TaOBa/NKHdz5sn7AKBI7rx2Zj50YVL7UGWHtUQHQPhz0p4pvhEVX35sTQ eDBjoYEpoS5FeDiDEX3VcNcxTOWroJrnrnqG7Y8kisXpDnfhsnXEz0nvM 6ZWr3nrGFgqDSecM8h9X0xIM90Ka8o2gfbPkYVIXLjsjZlWlXXtY7o7+6 cSjp72S2NKXXXJhhAkKWo3ceh8EBP/2yrGvYizBpNC4S62MzZCE2XGmeu g==; X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="121397451" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Nov 2022 21:14:35 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 1 Nov 2022 21:14:34 -0700 Received: from che-lt-i67786lx.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; Tue, 1 Nov 2022 21:14:30 -0700 From: Rakesh Sankaranarayanan To: , CC: , , , , , , , , , Subject: [PATCH net-next 3/6] net: dsa: microchip: add irq in i2c probe Date: Wed, 2 Nov 2022 09:40:55 +0530 Message-ID: <20221102041058.128779-4-rakesh.sankaranarayanan@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221102041058.128779-1-rakesh.sankaranarayanan@microchip.com> References: <20221102041058.128779-1-rakesh.sankaranarayanan@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" add device irq in i2c probe function. Signed-off-by: Rakesh Sankaranarayanan --- drivers/net/dsa/microchip/ksz9477_i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/micr= ochip/ksz9477_i2c.c index 55146584e9b5..caa9acf1495c 100644 --- a/drivers/net/dsa/microchip/ksz9477_i2c.c +++ b/drivers/net/dsa/microchip/ksz9477_i2c.c @@ -41,6 +41,8 @@ static int ksz9477_i2c_probe(struct i2c_client *i2c, if (i2c->dev.platform_data) dev->pdata =3D i2c->dev.platform_data; =20 + dev->irq =3D i2c->irq; + ret =3D ksz_switch_register(dev); =20 /* Main DSA driver may not be started yet. */ --=20 2.34.1