Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp641976pxv; Thu, 22 Jul 2021 08:48:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy60yEpgGilOdgeKtHgXw4QJKLID0ix9VYVFfMFhv2t4Wcbe+EV3lfMCj4RGwSMcROrkLyW X-Received: by 2002:a05:6402:b79:: with SMTP id cb25mr339436edb.164.1626968885062; Thu, 22 Jul 2021 08:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626968885; cv=none; d=google.com; s=arc-20160816; b=nRLKZn/ZygMfwCfUZSKRpcOpiiohQMnmY7OYJL5M7GWJAMjYI7glgkWhwC0gkEZ9LU 1VJw9Ev82icAepRrWw8jBKq8M7doGfIBul+zrMNTo5J7xrXl8LDQqbsDm5hFlMO2D4mv pq1wI5RAyCk0zimPuIUR1Ot27xjs3CMzR5mpa/F0WYFDi70T/tX+QUGabnc55kNNYRb7 lgrz+H7AmGtLPrML0Sl2nIpmBDNR0uHBI0n4bPUihoZ534PwInTEXirVFtEE6MStNPZZ cLgu9AhyZf9LSVbExy3tIVEsIQ7cLUlY6jS694U+mdHUvQZ+9s6Aw2d15+BKOPYZKc/e yJaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fYdNpBCVi6jeIiI2yNcZh7485dUVZPUrhuyhcN2K1Fs=; b=S7Bz6HDAS+hvZigMIA8gGYp7BYhlFA3stBGNg/cLLrW8iYo0MS23rIagRwAkJREkXw 2BsELViDZclYsnuTg6VS43xCy+CWV0Q4/YdSYOFWxhyr1bRVz7KCRzfPldY92xfxWKI7 xIeTbrPKCZl0T9yZ5T2SyxPxXfkwl8NhtmHp1VR7oC12MlXwQbeZdKkU3K+59Dw6QGWD wiLG70TNQXtLtpSb6owdGyMCCjLaBFDBC/hlhrCd7YhHOnsVds2XJIW0RIS56yq+kIEP i5CB2XMoW39lyf6cOPKvi0u1D+OOnf9lHEEf767bVMgIFoLKXJGd7UnrunDcP70RcyRU zvZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by14si31335306ejc.595.2021.07.22.08.47.41; Thu, 22 Jul 2021 08:48:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbhGVPFO (ORCPT + 99 others); Thu, 22 Jul 2021 11:05:14 -0400 Received: from mga04.intel.com ([192.55.52.120]:57800 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbhGVPFN (ORCPT ); Thu, 22 Jul 2021 11:05:13 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10053"; a="209777051" X-IronPort-AV: E=Sophos;i="5.84,261,1620716400"; d="scan'208";a="209777051" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2021 08:45:48 -0700 X-IronPort-AV: E=Sophos;i="5.84,261,1620716400"; d="scan'208";a="462813165" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2021 08:45:46 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1m6atI-00H1uh-7d; Thu, 22 Jul 2021 18:45:40 +0300 Date: Thu, 22 Jul 2021 18:45:40 +0300 From: Andy Shevchenko To: Greg Kroah-Hartman , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jiri Slaby , Dennis Giaya Subject: Re: [PATCH v1 1/1] serial: max310x: Use clock-names property matching to recognize XTAL Message-ID: References: <20210722150233.30897-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210722150233.30897-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 06:02:33PM +0300, Andy Shevchenko wrote: > 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 "xtal" to recognize crystal connection. Dennis, please test this. ... > - s->clk = devm_clk_get_optional(dev, "osc"); > + xtal = device_property_match_string(dev, "clock-names", "xtal") >= 0; Meanwhile I will change this (not affects the testing in your case) to actually negative one as: ..., "osc") < 0; to be compatible with the original flow (in case there are two clock names, the "osc" has a priority). -- With Best Regards, Andy Shevchenko