staging: typec: tcpm: Drop duplicate PD messages
authorGuenter Roeck <linux@roeck-us.net>
Tue, 9 May 2017 16:04:56 +0000 (09:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 09:23:55 +0000 (11:23 +0200)
commit5fec4b54d0bf6c3eeb176b624ce50d6aef4819c0
tree88c039c5bbe1f161d1972764793ac85a60fae87a
parentaac53ee4557947d778cb6a255c719e5c70963c42
staging: typec: tcpm: Drop duplicate PD messages

Per USB PD standard, we have to drop duplicate PD messages.
We can not expect lower protocol layers to drop such messages,
since lower layers don't know if a message was dropped somewhere
else in the stack.

Originally-from: Puma Hsu <puma_hsu@htc.com>
Cc: Yueyao Zhu <yueyao.zhu@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/pd.h
drivers/staging/typec/tcpm.c