Sometimes there can be a connection between kidney issues and erectile issues; the relationship is a little complicated to explain briefly; however, you should probably go see a doctor and get a proper examination to determine if this is indeed a factor. On a general note, make sure you keep your penis in good health through the use of a top notch penis vitamin cream (health professionals recommend Man1 Man Oil). A cream that includes a range of vitamins, including A, B5 and D, is best.
Kidney problems and kidney stones can lead to erectile dysfunction. Only a complete medical evaluation can confirm whether this erectile dysfunction is due to kidney stones or not. Drink plenty of water and take adequate treatment for your kidney stones. This is merely an advice and not a substitute for clinical examination. Hope it helps.
Best luck and regards!