From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756114AbbFBI7j (ORCPT ); Tue, 2 Jun 2015 04:59:39 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:35008 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753884AbbFBI73 (ORCPT ); Tue, 2 Jun 2015 04:59:29 -0400 MIME-Version: 1.0 In-Reply-To: <1432950661-23060-5-git-send-email-bintian.wang@huawei.com> References: <1432950661-23060-1-git-send-email-bintian.wang@huawei.com> <1432950661-23060-5-git-send-email-bintian.wang@huawei.com> Date: Tue, 2 Jun 2015 10:59:28 +0200 Message-ID: Subject: Re: [PATCH v9 4/6] Documentation: DT: PL011: hi6220: add compatible string for Hisilicon designed UART From: Linus Walleij To: Bintian Wang , Russell King - ARM Linux Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Catalin Marinas , Will Deacon , "devicetree@vger.kernel.org" , Rob Herring , =?UTF-8?Q?Pawe=C5=82_Moll?= , Mark Rutland , "ijc+devicetree@hellion.org.uk" , Kumar Gala , Kevin Hilman , Mike Turquette , Rob Herring , Zhangfei Gao , Haojian Zhuang , Xu Wei , Jaehoon Chung , Olof Johansson , yanhaifeng@gmail.com, Stephen Boyd , xuejiancheng@huawei.com, sledge.yanwei@huawei.com, Tomeu Vizoso , Guodong Xu , jorge.ramirez-ortiz@linaro.org, Tyler Baker , Kevin Hilman , Paul Bolle , Arnd Bergmann , Marc Zyngier , xuyiping@hisilicon.com, wangbinghui@hisilicon.com, zhenwei.wang@hisilicon.com, victor.lixin@hisilicon.com, puck.chen@hisilicon.com, dan.zhao@hisilicon.com, Xinwei Hu , z.liuxinliang@huawei.com, Yunlei He , XinWei Kong , wangbintian@gmail.com, w.f@huawei.com, liguozhu@hisilicon.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 30, 2015 at 3:50 AM, Bintian Wang wrote: > Hisilicon does some performance enhancements based on PL011(e.g. larger > FIFO length), so add one compatible string "hisilicon,hi6220-uart" for That compatible string in the commit message is not even the same as in the patch. > future optimisations or workarounds works. > > Signed-off-by: Bintian Wang > Suggested-by: Mark Rutland Maybe I missed out on the earlier conversation, but do you mean that the PrimeCell ID has not been properly set up to something unique in this HiSilicon version of the PL011 block? Even if so: do not override the compatible string like this, that is not the PrimeCell style. Define an 8 bit vendor ID (like tha ASCII for 'H' 0x48 or whatever) and encode it for these variants, if the hardware is just using the ARM default PrimeCell ID, override it in the device tree like Broadcom are doing in arch/arm/boot/dts/bcm2835.dtsi: arm,primecell-periphid = <0x00241011>; Maybe yours would be: arm,primecell-periphid = <0x00048011>; For a first HiSilicon variant, then do some : enum amba_vendor { AMBA_VENDOR_ARM = 0x41, + AMBA_VENDOR_HISILICON = 0x48, Then patch drivers/tty/serial/amba_pl011.c to add vendor_hisilicon and a match table for 0x00048011 just like everyone else. Yours, Linus Walleij