SAN DIEGO — Manny Machado missed a three-run home run by inches.
Franmil Reyes did not, and for the first time ever, the San Diego Padres have multiple players with 20 home runs in the first half of a season.
Reyes hit a go-ahead, three-run homer in the seventh and Eric Hosmer added a two-run shot for the Padres, who overcame three homers by the Milwaukee Brewers in an 8-7 win Wednesday for a three-game sweep.
Reyes' shot to right-center, his 20th, came off Jeremy Jeffress (1-1) after Machado reached on a popup that dropped in among four defenders near the mound for a leadoff single and Hunter Renfroe walked.
"It felt great to get back on my thing," said Reyes, who homered for the first time since connecting twice against Philadelphia on June 4. "I've been working really hard with my hitting coach and finally I'm seeing the results."
Renfroe has 23 homers.
"It feels great. It feels amazing to be part of the history of our franchise," Reyes said. "Hunter and me, we crush a lot of baseballs and we're going to keep doing it."
Hosmer said Reyes' homer was huge.
"Fran's a big part of our offense and when he's driving the ball and swinging the bat like he is today, our offense definitely moves and he's a big reason why we have the numbers we have and we won the game today," Hosmer said.
Yasmani Grandal had given the Brewers an 8-5 lead in the top of the inning on a three-run homer against his former team, his 16th.
Christian Yelich hit his MLB-leading 27th homer and Ryan Braun homered, doubled and drove in three runs for the Brewers.
Craig Stammen got the last out in the eighth and escaped trouble in the ninth for his third save. He allowed Yelich's single and a walk to Braun with one out before getting Grandal to force Yelich at third. Grandal was safe when first baseman Hosmer dropped a throw from Machado. Stammen struck out Hernan Perez to end it.
San Diego took a 5-3 lead in the third on Greg Garcia's triple and Manuel Margot's single, but Milwaukee came back on Yelich's no-doubter, his MLB-leading 27th, off Matt Strahm in the fifth and then Grandal's shot during a bullpen implosion. Brad Wieck allowed singles by pinch-hitter Ben Gamel and Lorenzo Cain opening the seventh before Gerardo Reyes (4-0) allowed Grandal's shot with two outs.
Machado's flyball off Zach Davies bounced off the top of the fence in left-center and back onto the field with one out in the second. The umpires never signaled home run, but the Padres' scoreboard operators blew a ship horn that denotes a homer and Hosmer, who had been on first, eased into a trot and was tagged before he got to third. He continued on to the plate, perhaps unaware of what was going on. Fernando Tatis Jr. was on third and scored to put the Padres ahead 3-1.
"It was my fault," Hosmer said. "I saw the ball go over the fence. I didn't realize there's a second wall back there. Thought it was a homer and kept running like it was. Just a dumb mistake on my part and luckily it didn't cost us the ballgame."
After a review of 2 minutes, 55 seconds, Machado was told to stay at second and Hosmer was confirmed as being out. The official scorer credited Machado with an RBI single since Hosmer was tagged before he got to third.
"To me it hit the wall and came back," said Davies, who allowed five runs and nine hits in 2 2/3 innings. "Cain didn't make any hesitation or anything. It seemed like he thought it was off the wall too at the top of the wall and came back. It's a lucky situation and got out of it with just the one run, but everything just kept piling on after that."
Said manager Craig Counsell: "We caught a break there, I mean Hosmer stopped running.
"We had a really good offensive day," Counsell added. "We swung the bat really well today. I thought we could have scored more runs really."
The Brewers tied it in the third on Braun's two-run double off Strahm. The Padres regained the lead in the bottom of the inning on Garcia's triple and Margot's RBI single.
Yelich homered into the seats in right-center with two outs in the fifth.
Braun homered with two outs in the first, his 12th.
Hosmer hit a two-run homer in the first, his 11th.
WWE superstar John Cena paid his $1 bet with Padres rookie Logan Allen near the mound just before the game. The two became friends after a chance meeting at a Tampa steakhouse in January 2018. They had a bet whether Allen, acquired by San Diego from Boston in the deal for Craig Kimbrel in 2015, would make it to the majors. Allen won his debut Tuesday night, throwing seven shutout innings.
Brewers: RHP Jimmy Nelson (0-1, 10.29 ERA) is scheduled to start the opener of a four-game home set against Cincinnati, which is expected to counter with RHP Tanner Roark (4-6, 3.63).
Padres: LHP Eric Lauer (5-6, 4.60) is scheduled to start Friday night's opener of a three-game series at Pittsburgh. The Pirates are set to start Joe Musgrove (4-7, 4.87), who beat his hometown Padres 6-4 on May 19 at Petco Park.