Mostly it will resolve in few days to 2 weeks , but if it's continue foul smell, or yellowish green or having associated symptoms like pain fever or hearing worsening, consult your ent surgeon.
Next Steps
keep ear dry
start antibiotics ear drop if your ent surgeon recommend
may need of ear cleaning if discharge continue
Health Tips
keep ear dry, donot allow water into ears, keep vaseline smeared cotton plug during head bath. afterthat remove it.
donot use earbuds