Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752957AbcDFGck (ORCPT ); Wed, 6 Apr 2016 02:32:40 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:37666 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbcDFGci (ORCPT ); Wed, 6 Apr 2016 02:32:38 -0400 Subject: Re: [PATCH v6 01/12] usb: hcd: Initialize hcd->flags to 0 To: Felipe Balbi , , , References: <1459865117-7032-1-git-send-email-rogerq@ti.com> <1459865117-7032-2-git-send-email-rogerq@ti.com> <87zit72rqz.fsf@intel.com> CC: , , , , , , , , From: Roger Quadros Message-ID: <5704AD76.9080806@ti.com> Date: Wed, 6 Apr 2016 09:32:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <87zit72rqz.fsf@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 501 Lines: 22 On 06/04/16 09:09, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >> diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c >> index 2ca2cef..6b1930d 100644 >> --- a/drivers/usb/core/hcd.c >> +++ b/drivers/usb/core/hcd.c >> @@ -2706,6 +2706,7 @@ int usb_add_hcd(struct usb_hcd *hcd, >> int retval; >> struct usb_device *rhdev; >> >> + hcd->flags = 0; > > seems like this would make more sense in usb_del_hcd() instead. > OK, I'll move it there. cheers, -roger