I was recently asked to install a generator for a home that had a three wire feed from the main panel to a sub panel. This was done by installing a disconnect between the existing meter base and the commercial side of the ATS. The ATS then fed the main panel. The gen. was sized to carry the total load of the home. I planned to re-feed the sub panel as a four wire system to seperate the neutrals from the egcs. As my requested work only involved upgrades to the main panel, was it required by code that I upgrade the sub panel system at that time? I was able to convince the homeowner to allow the upgrades but was unsure if it was in fact required by code.