I am porting pxa27x driver to linux-2.4.20 using gadget framework to support rndis. pxa27x driver nearly works. The driver init procedure is ok. The problems appear after windows 2000 pc send a set_configuration request.I could read out the configuration, interface, alterinterface from UDCCR as 2,0, 0. All data before set configuration request is normal as I expected, that is received data is same as bushond shows what pc sends.
But after handling the set configuration request,(No configuration error by checking UDCCR_EMCE).endpoint 0 continue received a class-specific request(IN) ( its payload of 24bytes), The 8-byte class-specific request's content is as expected . but the 24bytes' data following class-specific request is not what bushound shows.(but length is same as udcbcr0 value), They are all same value as 0xe8600300 after read out from udcdr0(udc endpoint 0 data register). I am not sure if this question has relationship with improperly dealing with SET_CONFIGURATION request? Before reading the 24bytes payload , ep0 is in EP0_OUT_DATA_PHASE, UDCCSR0 with UDCCSR0_OPC set(this trigger a interrupt ==>> handle_ep0) Anybody very familar with pxa27x usb controller? Thanks ********************************************* 佟长达 中兴通讯手机事业部软件部 传 真: 021-50801070、50801279 邮编:201203 电 话: 021-68895000-165569 内部长途:#2185469 上海浦东张江科技园区碧波路889号中兴通讯A座5楼 ZTE Corporation R&D Center (Shanghai) No.889 Bibo Rd, Zhangjiang Hi-Tech Park Pudong New District, Shanghai P.R.China, 201203 Fax:+8621-50801070 ********************************************* N?S^甸?X??????从?剑?#?蕲檐x??擘kay?z?j?剑?#?⒐]?^%? 朕?^?'}贽??w娥???????撰??Z?痊r��DA?1 幸Q!囤??帅r??冖w勘箅?夥 ??0f 49b?n狈^介e?l??玷??澡?.n????zV????汁?i?????玷??咤?l??)撸??n狈^介
