Hello and welcome to healthcare forum.
The condition you described suggest that it might be collection of smegma
which also gives bad smell and occurs due to improper hygine or it might be an s.t.d.
It will be better that you Council him properly to visit doctor as it is very necessary for him to clear doubts .
Best wishes for your partner's health.