It's all a little random on how well different internal components decide to play nice.
All platforms have issues, especially with uncommon hardware combinations. But if you buy any mainstream device odds of it working in linux are probably similar to the odds of it working in windows.
For older hardware the odds are much better that it will work out of the box in linux.