K5160

Markus Gothe nietzsche at lysator.liu.se
Tue Mar 1 20:27:26 UTC 2016


Yeah Huawei’s CDC NCM driver supports 32-bit mode.
No, this device doesn’t work with hw_cdc_driver.c since it’s a MBIM device. ;-)

Seems like a no-brainer to add it to the kernel driver, having a param that sets the bit-mode etc...
I’ll give implementing and defaulting to 32-bit for MBIM devices a try tomorrow.

Using 32-bit will be beneficial for “slow” / old MCUs/CPUs which happens to be the default in Huawei’s NCM driver.

//M

On 01 Mar 2016, at 21:18 , Bjørn Mork <bjorn at mork.no> wrote:

> Markus Gothe <nietzsche at lysator.liu.se> writes:
> 
>> Ah, I did notice that frame but I didn’t guess it is ARP.
>> 
>> Really weird.
>> 
>> Maybe you’re right about the NBT-32 issue… Why isn’t the kernel driver
>> supporting 32-bit NCM?
> 
> Because it is optional and we never needed it for anything.  No other
> reason.  Adding the support should be pretty straight forward.  Just
> needs a steady hand getting all the tables and pointers updated. There
> are probably a couple of places where we have hard coded some 16bit
> assumption.
> 
>> I need to look at latest hw_cdc_driver.c (v2.09.00.00) to see which
>> NCM modes it supports.
> 
> That would be useful.  I assume that driver works with this device?
> 
> 
> Bjørn

//Markus - The panama-hat hacker

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.freedesktop.org/archives/libmbim-devel/attachments/20160301/a2846851/attachment.sig>


More information about the libmbim-devel mailing list