Add Proliic new chip: PL2303TB & PL2303N(G)
Greg Kroah-Hartman
maintainerQuoted 23 lines · Charles Yeh
Hi Johan & Greg,
Thansk for you check the patch file..PL2303 is a general name on the market. In fact, PL2303 has the following various ICs.
A type: PL2303H,
B type: PL2303XA, PL2303HXA, PL2303HXB, PL2303HXC, PL2303HXD, PL2303EA, PL2303SA, PL2303RA, PL2303TA, PL2303TB
C type:PL2303HXN: PL2303GC, PL2303GS, PL2303GB, PL2303GT, PL2303GL, PL2303GE. <<--used different PID, differentVENDOR_REQUEST"Please split out in a separate patch and explain why it is needed. Alsoreplace the "magical" constants with descriptive defines."
I will push 3 patch file.1. Support
PL2303TB(old chip, B type), only add newVID_PID
2. SupportPL2303HXD(old chip, B type), /* only support External Pull-Up Mode on PL2303HXD chip*. /
3. SupportPL2303HXN(new chip, C type), add newVID_PID, new VENDOR_WRITE_REQUEST/VENDOR_READ_REQUEST, new H/W, S/W flow control setting.
Quoted 3 lines
I will use "sudo
./scripts/checkpatch.pl--filedrivers/usb/serial/pl2303.c" & use 'git send-email' to send the patch( avoid Tabs all got turned into spaces)
No need to run 'sudu' for checkpatch.pl, and run it on the patches you generate, not the whole file after you have modified it. That way it will tell you what is wrong, if anything, with the individual patches you have.
thanks,
greg k-h