Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757623AbbLBJNc (ORCPT ); Wed, 2 Dec 2015 04:13:32 -0500 Received: from mga11.intel.com ([192.55.52.93]:6742 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756284AbbLBJN3 (ORCPT ); Wed, 2 Dec 2015 04:13:29 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,372,1444719600"; d="scan'208";a="862876142" Date: Wed, 2 Dec 2015 11:13:24 +0200 From: Heikki Krogerus To: Felipe Balbi Cc: Chanwoo Choi , Greg Kroah-Hartman , MyungJoo Ham , David Cohen , Lu Baolu , Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] usb: pci-quirks: register USB mux found on Cherrytrail SOC Message-ID: <20151202091324.GA7587@kuha.fi.intel.com> References: <1448976758-35807-1-git-send-email-heikki.krogerus@linux.intel.com> <1448976758-35807-3-git-send-email-heikki.krogerus@linux.intel.com> <87oae9zyy9.fsf@saruman.tx.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87oae9zyy9.fsf@saruman.tx.rr.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 25 Hi Felipe, > IMHO, this should be creating a child device instead of calling > intel_usb_mux_register() directly. That way, your mux driver could > actually _be_ a driver. Seems like all you need to do from this point is > a register a simple platform_device which is a child of xhci, see > platform_device_register_simple() for how to do this. > > Or rather, platform_device_register_rsndata() passing xhci's device > pointer as parent. That was the plan originally, but unfortunately it does not work in this case. It creates conflict as platform_device_add() call will then claim part of io memory belonging to xHCI, making xHCI fail to probe. Thanks, -- heikki -- 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/