lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130814191513.GA24873@kroah.com>
Date:	Wed, 14 Aug 2013 12:15:13 -0700
From:	Greg KH <gregkh@...uxfoundation.org>
To:	Mark Brown <broonie@...nel.org>
Cc:	Tushar Behera <tushar.behera@...aro.org>,
	linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org,
	tobetter@...il.com, patches@...aro.org
Subject: Re: [PATCH] usb: misc: usb3503: Force late initialization

On Wed, Aug 14, 2013 at 08:04:10PM +0100, Mark Brown wrote:
> On Wed, Aug 14, 2013 at 11:22:39AM -0700, Greg KH wrote:
> > On Wed, Aug 14, 2013 at 03:59:31PM +0530, Tushar Behera wrote:
> 
> > > Currently there is no other way to ensure that USB3503 chip is probed
> > > after the USB PHY has been initialized, hence the last resort.
> 
> > Are you sure that deferred probing doesn't solve this issue?
> 
> In order for deferred probing to help the device would need to acquire
> some resource from the parent USB controller once active, allowing it to
> defer when it fails to get that resource.  Currently there's nothing
> there for that and it's not clear that's sane and sensible (it'd be more
> obvious for it to be a child of the USB controller since that's what it
> really is).

Then why not do that?

> We can't just treat it as a PHY (which is the obvious workaroud) since
> we do also need to use the built
> in PHY in the SoC.

There has to be some type of resource that it can grab, as obviously
it's failing to work properly unless that resource is present.  Just
messing with the init order isn't going to solve any problem if the
driver is built as a module, as nothing guarantees module load order.

So this patch wouldn't really solve the problem, only paper over it for
one type of configuration (i.e. driver built into the system), right?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ