Was Abiathar the father or the son of Ahimelech?

Abiathar named his son Ahimelech after his grandfather.