summaryrefslogtreecommitdiff
path: root/xhfc/base.c
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@avencall.com>2012-08-21 18:44:35 +0200
committerNoe Rubinstein <nrubinstein@avencall.com>2012-08-21 18:44:35 +0200
commitfc1f1578a051132ed6856fc663f100e1395440d9 (patch)
tree30743f982e0d048c368323468d05aad4434081c8 /xhfc/base.c
parentdd646d96cc79ca666caf4fa333ba0c0d995f68ca (diff)
reverse NTTE
Diffstat (limited to 'xhfc/base.c')
-rw-r--r--xhfc/base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xhfc/base.c b/xhfc/base.c
index 0fcbb40..b8c2ade 100644
--- a/xhfc/base.c
+++ b/xhfc/base.c
@@ -767,13 +767,13 @@ static void xhfc_hard_reset(void)
static inline int lebcs1_bit_nt(int port)
{
- return (port * 2);
+ return (port * 2) + 1;
}
/* on the leb, cs1 */
static inline int lebcs1_bit_term(int port)
{
- return (port * 2) + 1;
+ return (port * 2);
}
static inline u8 byte_replace_bit(u8 byte, int nr, bool value)
@@ -793,7 +793,7 @@ static void configure_ntte(struct xhfc_span *xhfc_span, int nt)
soft_conf = byte_replace_bit(soft_conf,
lebcs1_bit_nt(xhfc_span->port),
- !!nt);
+ !nt);
xhfc->pi->soft_conf_byte = soft_conf;
write_xhfc_soft_conf(xhfc, soft_conf);