From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756097AbeAHI4q (ORCPT + 1 other); Mon, 8 Jan 2018 03:56:46 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:44681 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755984AbeAHI4o (ORCPT ); Mon, 8 Jan 2018 03:56:44 -0500 X-Google-Smtp-Source: ACJfBos2DSts0cPH7KtHBv7Y86GVDNkJpZCl6JDPjZp/jNAIiFFRVvLEipeeMdF/UihSo9QIhSyNNg== Message-ID: <1515401802.5048.71.camel@baylibre.com> Subject: Re: [PATCH v2 2/5] ARM64: dts: meson-axg: uart: drop legacy compatible name from EE UART From: Jerome Brunet To: Yixun Lan , Kevin Hilman , devicetree@vger.kernel.org Cc: Neil Armstrong , Rob Herring , Mark Rutland , Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Mon, 08 Jan 2018 09:56:42 +0100 In-Reply-To: <20180106001044.108163-3-yixun.lan@amlogic.com> References: <20180106001044.108163-1-yixun.lan@amlogic.com> <20180106001044.108163-3-yixun.lan@amlogic.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.3 (3.26.3-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sat, 2018-01-06 at 08:10 +0800, Yixun Lan wrote: > When update the clock info for the UART controller in the EE domain, > the driver explicitly require 'pclk' in order to work properly. > > With current logic of the code, the driver will go for the legacy clock probe > routine[1] if it find current compatible string match to 'amlogic,meson-uart', > which result in not requesting the 'pclk' clock, thus break the driver in the end. > > [1] drivers/tty/serial/meson_uart.c:685 > > /* Use legacy way until all platforms switch to new bindings */ > if (of_device_is_compatible(pdev->dev.of_node, "amlogic,meson-uart")) > ret = meson_uart_probe_clocks_legacy(pdev, port); > else > ret = meson_uart_probe_clocks(pdev, port); I don't think you should add this code snip here. Anybody can look at the driver code to see that > > Acked-by: Jerome Brunet > Signed-off-by: Yixun Lan