Thread (1 message) 1 message, 1 author, 2012-05-22

[PATCH v2 05/12] usb: chipidea: add imx driver binding

From: Richard Zhao <hidden>
Date: 2012-05-22 15:28:35
Also in: linux-devicetree

On Tue, May 22, 2012 at 01:21:44PM +0300, Alexander Shishkin wrote:
Richard Zhao [off-list ref] writes:
quoted
+#include "ci.h"
+
+#define PORT0_STATUS	0x184
This doesn't seem to be used anywhere.

[snip]
quoted
+	ci13xxx_imx_udc_driver.phy = data->phy;
See my comment to the other patch about phy pointer being a per-device
thing rather then per-platform driver. Now, (at the risk of being
flamed) I think it could work if you allocated the
ci13xxx_imx_udc_driver dynamically in every probe, but that's not what
you want to do for the actual platform data. 
At least for imx, most platfrom data memory is duplicated when add
device. arch/arm/plat-mxc/devices/
So, I suggest we come up
with a better way of passing phy to the driver. I also think that it's
really about time we renamed "struct ci13xxx_udc_driver" to something
that emphasizes the "platform" in it. What do you think?
struct ci13xxx_plat_data ?

Thanks
Richard
Regards,
--
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help