Updated

PHOENIX (AP) Matt Kemp hit a three-run homer to back Andrew Cashner and the San Diego Padres beat the Arizona Diamondbacks 4-3 on Wednesday night.

Cashner (6-15) allowed seven hits and three runs, striking out six and walking two, in seven innings. He had lost 13 of his previous 17 decisions since April 24.

Trailing 2-1 in the fifth inning, Wil Meyers walked and then Yangervis Solarte singled. Kemp followed with a line drive to right that barely cleared the fence to give the Padres a 4-2 lead and chase Robbie Ray (4-12) from the game.

Jarrod Saltalamacchia hit a solo homer off Cashner in the sixth to cut the Padres' lead to 4-3.

Craig Kimbrell got the final four outs for his 37th save. He also got his first career at-bat in the eighth, striking out.

A.J. Pollock had three hits, including a double. David Peralta extended his hitting streak to 13 with a fourth-inning double to right.

The Diamondbacks loaded the bases in the fourth on Peralta's double and Cashner's walks to Jake Lamb and Brandon Drury. Then Chris Owings lined a two-run single to right to give Arizona a 2-1 lead.

The Padres took a 1-0 lead when Cory Spangenberg singled home Brett Wallace, who had doubled, in the fourth.

UP NEXT

Padres: RHP Ian Kennedy (8-14, 4.28 ERA) is set to start Friday night at Colorado. He lost his last start, an 8-0 Padres' loss Saturday at San Francisco.

Diamondbacks: LHP Rubby De La Rosa (12-8, 4.75) will make his 30th start of the season Friday night at San Francisco. He has a 2.20 ERA in three career outings at the Giants.

TRAINER's ROOM

Padres: RHP Josh Johnson will undergo a third Tommy John surgery, the Padres have announced. Johnson had undergone the procedure in 2007 and 2014. In January, he had signed a one-year deal with the Padres then had worked his way back to a minor-league game recently but had to come out after four pitches. Johnson, who has a career 58-45 career record with a 3.40 ERA, will miss the 2016 season. ''A lot of guys would shut it down and say, `I've had enough. I've had a great career,''' manager Pat Murphy said. ''Talk about never quitting. That's special. I can't wait for the day he toes the rubber again. I think it will happen.''