Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3433560rwi; Tue, 1 Nov 2022 21:37:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4SsFiUoNM0sfXIRVXk4Q8Srl57FPqn38oQzsOvWeQYY6fMNDJSx2ptbd9s4Sc2W+nK/LGf X-Received: by 2002:a17:902:8491:b0:183:c3d2:2112 with SMTP id c17-20020a170902849100b00183c3d22112mr22397134plo.133.1667363832423; Tue, 01 Nov 2022 21:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667363832; cv=none; d=google.com; s=arc-20160816; b=oxk2XPc9obe73HQw9YERIPJu0DVgpgXPZs7NUl7CPYrNiwBY0PYJaj02hJaJjkL6Fi uWWptBVYvz50hvbPRsNpzzIVhbyBLdjhE4cgdUKQJ84utCpR9QSE0IXXPhhOyd2ONnBg PjP5fB9uFoRXNnc5wj6KvGd+/FhoAmKhOCyBlNJ490j66l5uaU4TdKBNr2EXndOIJsse v34LkQ7p+0LPqtiDHNT1Mpo7r3O9UpTUR8XbLBCzf4NmHeak9b24D7xskR/uvG3PBKTJ b1zOcCOmZQoj1zj4pS8eiCCi8yn/S+TMJBUi67PLY1O9/Xqe46dKD+YOxStzn3d+1c3X nV0A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a631258000000b0041bfb11f138si6461679pgs.442.2022.11.01.21.37.00; Tue, 01 Nov 2022 21:37:12 -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 + 96 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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. */ -- 2.34.1