a latch valve includes a first port containing line pressure , a second port containing control pressure , a third port located between the first and second ports , alternately connecting the first and second ports to a transmission control element , and a fourth port containing control pressure that tends to close the second port and open the first port in opposition to a spring force .