Updated

Robinson Cano and Eric Chavez both hit two-run homers to back eight strong innings from Phil Hughes, as the New York Yankees held off the Chicago White Sox, 4-2, in the finale of a four-game set.

Hughes (9-6) gave up two runs on six hits for the Yankees, who won the final two games of the series. He struck out eight and walked one.

"Sometimes they're not going to have their best stuff and they got to figure out a way to get through it," Yankees manager Joe Girardi said. "And that's also a process, too -- figuring out how to get through things. And today he did. That's a good sign."

And that's also a process, too -- figuring out how to get through things. And today he did. That's a good sign."

Cano and Chavez had two hits apiece for New York, which went 5-2 on a seven- game homestand.

Gavin Floyd (6-8) allowed four runs on eight hits over 5 1/3 frames to take the loss for the White Sox, who went 4-3 on a seven-game road trip. He walked five and struck out three.

"You come in here and get the first two and it looks bad you don't win the next two. But you come in here and split, you leave feeling pretty good," said White Sox manager Robin Ventura.

Chicago's only two runs came in the first inning. Alejandro De Aza doubled and scored on Kevin Youkilis' single to left. Two batters later, Alex Rios hit an RBI single to left-center field.

But Chavez and Cano homered in the second and third, respectively, to put New York in front for good. Raul Ibanez led off the second with a single and came home on Chavez's blast to right.

Mark Teixeira walked with one out in the third and scored on Cano's homer to right-center field, making it 4-2 New York.

Meanwhile, Hughes retired nine straight batters before giving up a two-out single to A.J. Pierzynski in the sixth.

Rafael Soriano worked around a two-out walk in the ninth to pick up his 18th save of the season.

Game Notes

Sunday marked the Yankees' 66th Old-Timers' Day...Hughes improved to 3-1 lifetime against the White Sox...Cano extended his hitting streak to eight games...Second baseman Cano, shortstop Derek Jeter and outfielder Curtis Granderson of the Yankees were named starters at their respective positions for the 2012 All-Star Game...The Yankees acquired right-handed reliever Chad Qualls from the Philadelphia Phillies Sunday. In return, the Yankees gave up a player to be named later or cash.