On Thu, Feb 22, 2018 at 12:08:29PM +0100, Hans de Goede wrote:
So thinking more about this I think that having the codec driver only check device-properties and completely killing platform_data is the best way forward / best way to clean this up.
Combined with either device-tree or the machine driver setting these device properties for now, and in the future the ACPI tables can set these properties directly and we can hopefully won't need to add new quirks to the machine driver.
The device properties thing seems reasonable enough. I'm still not super convinced the machine driver is the right place, but let's see the code. I think ideally the arch code would have a way to put all the device property based quirks for these systems like we IIRC do for some DT fixups.