Sounds like a good intention with bad consequences. It would incentivise operating systems to become subscriptions too. Plus, it would never happen. If a company goes bankrupt they can’t buy back the devices.
I’d rather they were forced to release their software to the public, making it a requirement without which bankruptcy or sales would be refused by regulatory agencies. That way hobbyists could still get them to work, perhaps even launch a new company to revive the old devices (reducing e-waste). Additionally, we could detect if they had been doing anything shady with the data.