serial: max310x: Use clock-names property matching to recognize EXTCLK
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Jul 2021 12:59:43 +0000 (15:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 10:09:18 +0000 (12:09 +0200)
commit3d1fa055ea7298345795b982de7a5b9ec6ae238d
tree68757a295531e84bf69e903511955ab1f1a7e047
parent0a9410b981e961a24057dceee54bb5d36309a0c4
serial: max310x: Use clock-names property matching to recognize EXTCLK

Dennis reported that on ACPI-based systems the clock frequency
isn't enough to configure device properly. We have to respect
the clock source as well. To achieve this match the clock-names
property against "osc" to recognize external clock connection.
On DT-based system this doesn't change anything.

Reported-and-tested-by: Dennis Giaya <dgiaya@whoi.edu>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210723125943.22039-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c