Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5350059ybi; Tue, 4 Jun 2019 05:27:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1wsHFSF5kXLPgIMTWC4cRNMHi8gY859cAC1qSsZLLXi+uTDnAtp+J+P8d1xHhLv9Ne257 X-Received: by 2002:a62:1c91:: with SMTP id c139mr29942224pfc.25.1559651262906; Tue, 04 Jun 2019 05:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559651262; cv=none; d=google.com; s=arc-20160816; b=tp0oQodjz2CGLHtt0Na3WUqrvpJiY30XYm1ZpYJH7ekcbhtrndalQAdt3cETDTKrpx g+8jza/A0wdUnarfrTITX+mymkltls80LUPKTXcQFisDzIqwJNw1+nF2p2quf6jPmWyA Q13eC2hb863xzfoMopSszFmfoVEUQMhHabwFc4gN5+SZ39L+999JwQ8D7lUIqMCRd/B0 ITyyUz2ewHi/uB1UARtCjeMjjApeFon3CVGXox0lV0GAZ9wXe9iKMjdX6mU+EvkHiLkH Cbk1JH9WzdwrQqf4/EVTPKJ6QzjrdHYkgiL+/kP+nM6f8G4adhHFzg58P4g/+0wrmkDn 87JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=qX2hxLCYLAa7vbMBSw9iKSlvkCm991lOlxPkBX3UVvs=; b=qvQ5KpQI508cBShiB4Dj37qjpmJrPHz5S6UDOsuHz0EskFarfjNXDPzjLXibzipcFN MQWH/H4Ym2iF/v1vOsBzjKBiaiUf6uuM3FRBJAPfVawdPe/CwVoZyV/qFRq+TliZn8ef I+sfXq2thFXjdNq2YOgXcvFWrsRgPfWYn0agoySBu8uJ7uEqEiw9CJ2C/e1DnLjJe3Ut BY4CgIjDuwDyhBkkAw6aay5aSOW6ZYp31Xa/V0B1nnpVxsyPrV+XuqWpoWTJ+Nqs40uq U5R/N0YvsLclKhQbdGPWwZe4BXzaG+vaxYjSHM4r/syLDMgzaf8voaikErscq4HF0a29 eubw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si19018237pfh.42.2019.06.04.05.27.25; Tue, 04 Jun 2019 05:27:42 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727656AbfFDMZS (ORCPT + 99 others); Tue, 4 Jun 2019 08:25:18 -0400 Received: from mga14.intel.com ([192.55.52.115]:18595 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbfFDMZS (ORCPT ); Tue, 4 Jun 2019 08:25:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 05:25:17 -0700 X-ExtLoop1: 1 Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by orsmga006.jf.intel.com with ESMTP; 04 Jun 2019 05:25:15 -0700 From: Felipe Balbi To: Greg Kroah-Hartman Cc: Chunfeng Yun , Matthias Brugger , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] USB: move usb debugfs directory creation to the usb common core In-Reply-To: <20190604093258.GB30054@kroah.com> References: <20190604093258.GB30054@kroah.com> Date: Tue, 04 Jun 2019 15:25:14 +0300 Message-ID: <87tvd5illh.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Greg Kroah-Hartman writes: > diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c > index 7fcb9f782931..f3d6b1ab80cb 100644 > --- a/drivers/usb/core/usb.c > +++ b/drivers/usb/core/usb.c > @@ -1185,19 +1185,17 @@ static struct notifier_block usb_bus_nb = { > .notifier_call = usb_bus_notify, > }; > > -struct dentry *usb_debug_root; > -EXPORT_SYMBOL_GPL(usb_debug_root); > +static struct dentry *usb_devices_root; > > static void usb_debugfs_init(void) > { > - usb_debug_root = debugfs_create_dir("usb", NULL); > - debugfs_create_file("devices", 0444, usb_debug_root, NULL, > - &usbfs_devices_fops); > + usb_devices_root = debugfs_create_file("devices", 0444, usb_debug_root, don't we have a race now? Can usbcore ever probe before usb common? -- balbi