1: Fixing bad hardware (schematics and such)
2: Fixing old/buggy/broken software that renders said hardware useless. Without open kernels, drivers, frameworks your "right to repair" is meaningless. When you install a new camera to iPhone and it complains it's not genuine because the software says so, the right to repair becomes less useful as now Apple holds all the cards as to who gets to repair and how much that costs.
You need to tackle both since often times these days they work together. For example, the Open Source community should be able to tinker with my TV's kernel and other parts to add new features rather than it being locked down and features being removed because the manufacturer couldn't be bothered to pay a royalty license.
What if the hardware is 100% okay but the software is broken? Is there a right to inspect the code? If not then all of these laws are redundant. All it takes is one update to "mistakenly" bork an older model or it to run a bit slower or janky animations or anything else and in the bin it goes.