]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Fix use for of_property_read_bool for disabled multipoint
authorTony Lindgren <tony@atomide.com>
Wed, 4 Feb 2015 14:28:49 +0000 (06:28 -0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 23 Feb 2015 15:14:30 +0000 (09:14 -0600)
commit738adc96203afdbab32c7ef21d7069cc29b220c7
tree2f382151a9060526bc59925ee8e86c69ac940939
parent81d866f00e1f6288b2a56d022f3ddc463af49dc5
usb: musb: Fix use for of_property_read_bool for disabled multipoint

The value for the multipoint dts property is ignored when parsing with
of_property_read_bool, so we currently have multipoint always set as 1
even if value 0 is specified in the dts file.

Let's fix this to read the value too instead of just the property like
the binding documentation says as otherwise MUSB will fail to work
on devices with Mentor configuration that does not support multipoint.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c
drivers/usb/musb/omap2430.c