Unless I misunderstand you, you can't have two grounds on one system - in this case, one at the main panel and one at the subpanel. (I'm not talking about two ground rods on one wire).
When you have two earth grounds, you risk having an electrical potential between them - which is what we here...