Skip to contentSkip to conversation

dmaengine: dw: set polarity of handshake interface

PATCH Maarten Brock 2 participants 2 messages May 6, 2016 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

----- Original Message -----
From: Andy Shevchenko [mailto:[email protected]]
To: Bryan O'Donoghue [mailto:[email protected]], Peter Hurley [mailto:[email protected]], [email protected], Vinod Koul [mailto:[email protected]], [email protected], [email protected], Greg Kroah-Hartman [mailto:[email protected]], [email protected], Heikki Krogerus [mailto:[email protected]]
Sent: Fri, 06 May 2016 12:42:00 +0200
Subject: Re: [PATCH v3 03/11] dmaengine: dw: set polarity of handshake interface

Quoted 10 lines · Bryan O'Donoghue
Quoted 4 lines · Andy Shevchenko
Quoted 2 lines

+       bool                    polarity;

So this variable is not very intuitively named.

There is a help above. This is a property of the Synopsys DesignWare DMA engine. Anyone familiar with datasheet easily understands this.

Quoted 1 line
Quoted 8 lines
Quoted 6 lines

You end up setting somepointer->polarity = true; in a later patch.

Since you're respining a V4 I'd suggest a name that describes a little bit better than polarity. Setting polarity = true is a little bit liked being asked "you you like ice-cream or apple pie" and then saying "yes please".

It's about handshake interface polarity, so, what about hs_polarity?

So it means: handshake has polarity (true) or handshake has no polarity (omnidirectional?) (false), right?

Maarten

#1 lore raw
Quoted 15 lines · Maarten Brock
Quoted 15 lines
Quoted 3 lines
Quoted 2 lines

+ bool polarity;

So this variable is not very intuitively named.

There is a help above. This is a property of the Synopsys DesignWare DMA engine. Anyone familiar with datasheet easily understands this.

Quoted 7 lines

You end up setting somepointer->polarity = true; in a later patch.

Since you're respining a V4 I'd suggest a name that describes a little bit better than polarity. Setting polarity = true is a little bit liked being asked "you you like ice-cream or apple pie" and then saying "yes please".

Quoted 4 lines
Quoted 1 line

It's about handshake interface polarity, so, what about hs_polarity?

So it means: handshake has polarity (true) or handshake has no polarity (omnidirectional?) (false), right?

It means that handshake polarity _signal_ is inverted (true) or default (false) in terms of hardware gates.

Signature · 2 lines
With Best Regards,
Andy Shevchenko