Something else to consider is your porn use. If you are masturbating to very stimulating porn on a regular basis then it might be difficult to get as aroused in the bedroom with your partner. Watching video pornography is very stimulating and often men have difficulty creating that same level of arousal or stimulation with their partners. Consider masturbating without technology as visual images in your head are less stimulating then watching something live. Try this for two weeks and see if your erection quality improves.
Knowing about your history of ED will help your health provider learn if your problems are because of your desire for sex, erection function, ejaculation, or orgasm (climax). Some of these questions may seem private or even embarrassing. However, be assured that your doctor is a professional and your honest answers will help find the cause and best treatment for you.