Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756024AbbLHDjX (ORCPT ); Mon, 7 Dec 2015 22:39:23 -0500 Received: from rtits2.realtek.com ([60.250.210.242]:53002 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755811AbbLHDjW convert rfc822-to-8bit (ORCPT ); Mon, 7 Dec 2015 22:39:22 -0500 X-Greylist: delayed 1200 seconds by postgrey-1.27 at vger.kernel.org; Mon, 07 Dec 2015 22:39:20 EST X-SpamFilter-By: BOX Solutions SpamTrap 5.56 with qID tB83IxPn011875, This message is accepted by code: ctloc85258 From: Hayes Wang To: Peter Wu , "David S . Miller" , "linux-usb@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Lu Baolu Subject: RE: [PATCH] r8152: fix lockup when runtime PM is enabled Thread-Topic: [PATCH] r8152: fix lockup when runtime PM is enabled Thread-Index: AQHRMRCQZMvvsQEOnUO1Tv+V0hREwp7AaQUA Date: Tue, 8 Dec 2015 03:18:59 +0000 Message-ID: <0835B3720019904CB8F7AA43166CEEB2F8D48F@RTITMBSV03.realtek.com.tw> References: <1449507520-10671-1-git-send-email-peter@lekensteyn.nl> In-Reply-To: <1449507520-10671-1-git-send-email-peter@lekensteyn.nl> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.71.143] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 620 Lines: 18 Peter Wu [mailto:peter@lekensteyn.nl] > Sent: Tuesday, December 08, 2015 12:59 AM [...] > + if (tp->netdev->flags & IFF_UP) { Maybe you could just replace the checking of netif_running(tp->netdev) with this. Excuse me. I have a question. Before the open() is finished, the netif_running() would be true, but the IFF_UP wouldn't be set. Is it right? Best Regards, Hayes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/