CHICAGO (AP) Rookie Trayce Thompson drove in three runs, including a go-ahead, two-run double, and the Chicago White Sox beat the Boston Red Sox 5-4 on Tuesday night.

Thompson, who was called up Aug. 3, finished 3 for 4 and was a home run shy of hitting for the cycle. His two-out double sparked a three-run seventh inning, when the White Sox erased a 4-2 deficit.

Melky Cabrera added an RBI single in the seventh for Chicago, which had 15 hits.

More from FoxSports

The Chicago bullpen protected the one-run lead for the final two innings. Jake Petricka (4-3) picked up the win in relief and combined with Zach Duke and David Robertson to close it out.

Robertson pitched the ninth to earn his 26th save in 32 opportunities.

The White Sox trailed by two runs after Boston scored twice in the sixth. Pablo Sandoval snapped a 2-all tie with an RBI double before Travis Shaw extended the Red Sox lead with an RBI fielder's choice.

Boston starter Wade Miley couldn't protect it, surrendering the three runs in the seventh. Miley (10-10) allowed five runs and 13 hits in 6 2-3 innings. He struck out three and had a walk.

The Red Sox took a 2-1 lead in the third inning. Mookie Betts lined a double into the left-field corner, scoring Josh Rutledge. But a poor relay throw by White Sox shortstop Alexei Ramirez bounded away from catcher Geovany Soto and with no one covering home plate, Betts - who also scored two runs - was able to come around and score.

Thompson's RBI single in the fourth tied the game at 2.

Chicago starter Carlos Quintana worked six innings and struck out six while scattering seven hits and allowed three earned runs.

Carlos Sanchez gave the White Sox a 1-0 lead in the second inning with an RBI single that scored Ramirez, who reached on a fielder's choice.

TRAINER'S ROOM

Red Sox: RHP Rick Porcello will make his first start Wednesday since being placed on the disabled list on Aug. 2 with triceps soreness and inflammation. Porcello is coming off a Triple-A rehab start in which he threw 5 2-3 innings and gave up three runs on three hits while striking out six and walking one. . RHP Steven Wright (concussion symptoms) is scheduled to see a specialist in Pittsburgh on Thursday. Wright was hit in the back of the head last week during batting practice in Miami and was placed on the disabled list Aug. 16.

White Sox: RHP Zach Putnam (right groin) was available out of the bullpen Tuesday night after missing two games. Putnam, who experienced soreness while warming up in the bullpen on Saturday night, was held out Sunday and Monday. Putnam said Tuesday that his condition had improved greatly over the last two days.

UP NEXT

Porcello (5-11, 5.81) faces LHP Chris Sale (12-7, 3.34 ERA), who will be looking for his fourth straight victory and his third straight double-digit strikeout effort. Sale has struck out 29 hitters in his last two starts.