Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4771310yba; Wed, 10 Apr 2019 04:44:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzldhBE9D0Rze96BFHnRNAPv5eTlVqammNFiFENXe3Aeh7cBW/PpGX9Bh+jKefH8mJHgFRY X-Received: by 2002:a17:902:2a2a:: with SMTP id i39mr41765007plb.211.1554896639955; Wed, 10 Apr 2019 04:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554896639; cv=none; d=google.com; s=arc-20160816; b=TGEyqptcaPQmoFaBGOF9z30Zrgkwsgr5uGJEYvp4DUAzQAphmrj4+Y8VR/jb+6EwrX XPuuzQ8C2CYHDxuF6dNqA9cPIBdskFhETPOmPyitkMIIxfCDyAptPOpM4r2zSX4q2iGc g/wXlVkS1UEWFqDDw5QlJwxr15NKzMMvi7cykW1qzZ14C+4vmuqV+fOoNP/WgL9K44Tx Y3PSl3HzplIt7EcbNlqgYUhpYXIL39IZG+n+wQl02IcMmoRGfgh1843bfk7EchiZokgr DxZO0uC9bO2G9iI1XMO+ZWihA+vHmWHWgQjUo9nA+02vqrkGDnAOUNMPWnBzHBCEjZL3 QUCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=xqKDdSpxXrG3Q0raLcuSlYfZ085ntoKGhIHQR77bk7I=; b=BK4INNQoxgmrJZmBEQ/8L5vyGo6lNvT75i+FShEOBl1FRBMnAwW2p/EXBKdiekf4Ga 3gEvNy8eA7Vx/FDu/zooOWZ+WR/QzCrU/6DKPLDrIwMYa3sH7d9psg0zJ/bDKexUDzho Lzsu0/9OvbP3/mZHBEvERNM460cheJujVPGJ/8NdYZA1RP9t//kHsTYpxKKTVhlrCYgh QzKoBjCtcahh53WXCA3bX9FpRbsaPvR2wZ/RTuRskv97m5uvMJy20lorxs2sqpHyHpvm 0cjJPnrrBgV0jEp/046TWblR8zMVTveVJj6eynOLw3tjvMx+PmqH6A5TgSPyN/ToC9nL xXFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=MlyV5Bcf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e26si31651027pfi.54.2019.04.10.04.43.44; Wed, 10 Apr 2019 04:43:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=MlyV5Bcf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730172AbfDJJxq (ORCPT + 99 others); Wed, 10 Apr 2019 05:53:46 -0400 Received: from mail-eopbgr680073.outbound.protection.outlook.com ([40.107.68.73]:22339 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729024AbfDJJxq (ORCPT ); Wed, 10 Apr 2019 05:53:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xqKDdSpxXrG3Q0raLcuSlYfZ085ntoKGhIHQR77bk7I=; b=MlyV5Bcfw1st2nJfhcofmwnYAHGwYwRt0oj+BaZvfW6kmcS1vwVZnV0WnokY1j+k1mVIlVjBg6cEPWwVnQQvYnefpqDP7HXP/DUwsrX9YeYlJQrTMwKMcj6kEHmhHlHmQwjIDDms1X56sC/70bhuoUWYwOJDwYfthuzmT+IcfzM= Received: from BYAPR03MB4773.namprd03.prod.outlook.com (20.179.92.152) by BYAPR03MB3880.namprd03.prod.outlook.com (20.177.124.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.15; Wed, 10 Apr 2019 09:53:40 +0000 Received: from BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::1a8:1bc4:174b:472b]) by BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::1a8:1bc4:174b:472b%2]) with mapi id 15.20.1771.016; Wed, 10 Apr 2019 09:53:40 +0000 From: Jisheng Zhang To: "RaghuramChary.Jallipalli@microchip.com" , Andrew Lunn , Florian Fainelli CC: "marc.zyngier@arm.com" , "Woojung.Huh@microchip.com" , "UNGLinuxDriver@microchip.com" , "davem@davemloft.net" , "netdev@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] net: lan78xx: fix "enabled interrupts" warninig Thread-Topic: [PATCH] net: lan78xx: fix "enabled interrupts" warninig Thread-Index: AQHU7dHNU1pmmx19ukWi008Ht4Z+BqYx4peAgACJ84D//6iSAIABfFmAgAGQOQCAAAb8AA== Date: Wed, 10 Apr 2019 09:53:40 +0000 Message-ID: <20190410174538.5ebe1787@xhacker.debian> References: <20190408140301.3dcbccdd@xhacker.debian> <20190408155947.3efcb1eb@xhacker.debian> <20190409092753.39961390@xhacker.debian> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [124.74.246.114] x-clientproxiedby: TYAPR01CA0094.jpnprd01.prod.outlook.com (2603:1096:404:2c::34) To BYAPR03MB4773.namprd03.prod.outlook.com (2603:10b6:a03:134::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dad3aadb-567f-4c3f-8f1e-08d6bd9a68ae x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:BYAPR03MB3880; x-ms-traffictypediagnostic: BYAPR03MB3880: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 00032065B2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(366004)(136003)(396003)(39860400002)(199004)(189003)(386003)(99286004)(316002)(6436002)(4326008)(186003)(93886005)(52116002)(26005)(68736007)(54906003)(6506007)(25786009)(53936002)(11346002)(6246003)(486006)(50226002)(76176011)(5660300002)(1076003)(2501003)(102836004)(110136005)(446003)(7416002)(305945005)(97736004)(229853002)(14454004)(2906002)(6116002)(72206003)(476003)(8936002)(7736002)(71200400001)(105586002)(966005)(66066001)(81166006)(478600001)(6486002)(106356001)(14444005)(81156014)(3846002)(256004)(8676002)(86362001)(9686003)(6512007)(71190400001)(6306002)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR03MB3880;H:BYAPR03MB4773.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:1; received-spf: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: RZWairOrWye5e2Kr/Gs8FTLmO9fHL11VxAJhxM4RsKVOOJIal2876a2VcQsjmBq4nSU3H1AsJqvWDE6QtdmTtT6vExmKHOa9sZ+5Rr8KI26LIGnA5iWBdcQBgrH90a/vwzJNXgLgb1er4M5LBwCaSXsBkxnTloNlZNpDxjLx2hQ1cZbpJZcnJm9Sw8Y0aZt+FDIUjAKrMqJla4l4wTAxKzh/aYcedcmb5nsLmGq0OWO7WAVE81ZHgXgBYD2McQ0xF9eKzQmMWPhH93Vd6QG+8sPMv8LNDYDrKl70T8n7aIC2xj9VDGKVft+ZNOeZU7Rc9CgokGxKQ+FGAtmm/Zy8yn6iGNmOykRgbaVzzi26NtidslXdXCIQCiisrzPfbx8Kj9/HFWEAr3+wYcJ5O1IKVAZ0ibpNZH98fmpD7TiPb54= Content-Type: text/plain; charset="us-ascii" Content-ID: <02C17BC8AC08E84D878D863630B10416@namprd03.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: dad3aadb-567f-4c3f-8f1e-08d6bd9a68ae X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 09:53:40.2400 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB3880 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Apr 2019 09:20:38 +0000 wrote: >=20 > > > > > > > > The warning comes from calling generic_handle_irq() in usb tasklet = =20 > > context. =20 > > > > This is not correct. > > > > > > > > Per my understanding, if there's chained irq, we could introduce > > > > extra irqdomain. E.g > > > > > > > > GIC <--> another irqchip controller <--> HW device > > > > =20 > > > Correct, IRQ domain is generally used in chained irq controllers. > > > Yes, We need to check why irq domain is used in the current driver. > > > =20 > > > > It's introduced in the commit cc89c323a30e > > =20 > Hi Jisheng, Hi, > I had spent some time to look into the history of commit. The reason for = having irq domain in driver is because of the unavailability of real hardwa= re interrupt, here we have USB interrupt pipe which is not actual interrupt= . > So changes were proposed to have pseudo phy interrupt and handlers in phy= lib. But later it was suggested to implement linux interrupt controller in= driver itself. + Andrew, Florian USB net is different with Andrew's case. there's no irq at all in usb net but in Andrew's case, interrupt is connected to a GPIO line. As is known GPIO can behave as irq chip. > You can see the archive here https://patchwork.ozlabs.org/patch/564511/ Per my understanding, the purpose is to avoid phy_state_machine() poll phy_read_status() to monitor phy link. But as pointed out by Florian, phy_mac_interrupt() is intended for that purpose. And the poll should be fixed in phy. Since the email was sent in 2016, maybe the bug has been fixe= d. > I want to understand if there is any functionality impact with this warni= ng? Because I'm afraid if the current changes are removed we might hit some= other issues (or older ones). We have to go through rigorous testing befor= e going ahead. Warning indicates there's something wrong in the code. IMHO phy_mac_interrupt() and PHY_IGNORE_INTERRUPT is the correct solution. If the phy_mac_interrupt() poll is fixed, I think maybe old issue which commit cc89c323a30e want to fix won't exist. Thanks