From patchwork Wed Nov 2 04:10:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Sankaranarayanan X-Patchwork-Id: 14023 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3386250wru; Tue, 1 Nov 2022 21:18:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM43KJZU1HNoirnp8sTssvVzmd1RLz063vGUK58uSr2Kg3IokgHfSk0J/IyGUZIJPC35oq8K X-Received: by 2002:a17:907:7251:b0:7a5:a8f5:b86e with SMTP id ds17-20020a170907725100b007a5a8f5b86emr21478857ejc.761.1667362731318; Tue, 01 Nov 2022 21:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667362731; cv=none; d=google.com; s=arc-20160816; b=gnO2UWkZsz4bVvIpLE7IEQzNqkSSyOMhDuTb28/Pgu0uKy3BtDT2cQ5N73ylTab4Dk MljZi6OMgrTgq/PSJ21nCefVoPt8tppm9tXilbAkP/u6U1nlY5KuD30jqvnZ9RoOoUWf DhT3/WgZu0p0ceFctie6JibcqsrNIv4SuJs7Hp/UiooZT9rsvhQk5PbGT9w/utfRSAZQ 4ZDlDNHxLhMCuKXF3/JIXTwuxXkyjuvOf6xFmFiF4VkfvtjIMAEEEJpYTJzinGJpl3zi vQ6aZQ33eMFer0jumpgypXTEue8RpAOQAdy1/6BnI4UPqwhXByG42Ti3sEYd1OH5MyK1 ondA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lfd9osbMvONWfppHFW5HiM8uBJo6ASNUVIa74GMvLfk=; b=v2SIzN/Vf1Lu0biLNwwFFAWyXehyjee0+7tI55TcckxK0Lg/Kn2/oQa4v8A2diE4O2 7wE55sBHaxcQEBaXLzJ7bVT5jS3BikHtg5m7BKLHLaRr+44rD5phSTEDJu7TDWr5bwVN 8sDC4qW6K9mLvH/IS2LVImBba5MOJmkJVc6u2NwdnqITJJ4jSiWNSuZDJTs9uqz323LL p1f3HRUWNdKg9SP5fr51c1BQ31PR9HWlaf4iDZCT+eGrhyURG3cMvYpN1MbzLZKOZiA3 5JTGQrGFWj2MbzJk4LirsLdtub/U0Nk2/YOgCorKy7P12cJbBMsYH4CHYkSsz/zVcAxX rxIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Fes+XqR3; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t29-20020a508d5d000000b0045ad02bb8fbsi12133370edt.290.2022.11.01.21.18.28; Tue, 01 Nov 2022 21:18:51 -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=Fes+XqR3; 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 S230024AbiKBEPc (ORCPT + 99 others); Wed, 2 Nov 2022 00:15:32 -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 X-Spam-Status: No, score=-5.5 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748356543263859117?= X-GMAIL-MSGID: =?utf-8?q?1748356543263859117?= 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/microchip/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 = i2c->dev.platform_data; + dev->irq = i2c->irq; + ret = ksz_switch_register(dev); /* Main DSA driver may not be started yet. */