Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4404455imm; Tue, 7 Aug 2018 00:35:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcZ33DBQvTAlEsALJSFoG2MmnLVks+8f4dAFCt0N1GOElZ2ApcecVG5KNifbOQ+4I92LZxO X-Received: by 2002:a17:902:7898:: with SMTP id q24-v6mr16439942pll.222.1533627332159; Tue, 07 Aug 2018 00:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533627332; cv=none; d=google.com; s=arc-20160816; b=H7kiz9vPe9lgQGaL1LcTJVggAv6iVeV00adSMLQu5V5Q7xdBjstP5ObnoHGSqkUcSb ZQAC++aKqjWPqpH6cn2yCf3FbLg3vIRvA20NZdIODQK+Cy7JZnF2laHu/GGqxcaLHBSJ gyBpFHMC0iDPedu70F6Ye9Lp0I2S1DzrPMzSdz4rDJlJoRSy4kr/YNK8IOaNBSXP6sWc 5FJ29o9m0s6EM4LOWr/c8blqDU22ZRxircLL0oA50x3KjUNvOhPlH3AzJ9hVI7VHxsHk I0S8vMTrmjckLCJQtNoQ+5M1hwBBGSIijbUbsnJjOg88D1sEzvAqscyPql39GWYK02po zyCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :arc-authentication-results; bh=Yl7qF0My/wXmPktNBklXZXzV9gruRK7zR8eivncoEiQ=; b=QehqgtkfWMs4cAFWtjyiztvPy8rVo87e2lXF7karWStAMp5Mqs5qloI5FTqkD5bY6p 7zq+cXJXJGJUF17XM/3AG3JMWoQ0O0wH4tFVVvFY9rY9NKbZoA0+W11dF4LWg4Oo/Ef2 TDrMxetxh+/WhRIOMLW+KANE0/WOQbu4HLDq/nwVnBSaNJeItdFa0mBGE9LaMw2hfTRi pK1EKZpVUwAFK9S6hL7s31kMiQXaszj/jH03V6D0JA1PznQMRV/+jSS+7LD5mAMgtqOx 3HSXx9Mb1ic6gXz0zdlXtBAqa2Fp235DW4Hb1eacL+sgMjK9MYvnNfgXN+ekjLQOvCOa Zzuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17-v6si713142pfj.321.2018.08.07.00.35.17; Tue, 07 Aug 2018 00:35:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388912AbeHGJq5 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 7 Aug 2018 05:46:57 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:35579 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732805AbeHGJq4 (ORCPT ); Tue, 7 Aug 2018 05:46:56 -0400 Received: by mail-ua0-f193.google.com with SMTP id q12-v6so15076879ual.2; Tue, 07 Aug 2018 00:33:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RIztZSW56qlEmpFi4Woqf2wd8+YujPd82HedacZbr7A=; b=qJENOlC5YKCWvu8GcUkAWrqUe5f7wYgjQS5Bhx43ctYiPZmYeBlBOjd2c5/4uxPYwn 9F3ejxEWdb04k7/8MuZJzBhgLtMRql1YgqoH4R+jY7fEL9tDAtWUcTqKGGmfYvvTBJ/G sp8z1lOlWs63J/mnIEkD5bPgwh6mo3k5sP0kWjfkp88Zs2iFUKVRlbhUcmlDeTejPHi7 +m7lvwQwU16bFI96XLvPbbZweQwUPZHQe/M4R54kLIAULC/0gxnJxjRWmUw/H4Io+o1t 7jslAxY9p0DvI33DoSWY7v06hlQYUl6j0UgECeI/3FpwzgtaKlUDq6zrH3bAv+bDfVV3 8xjg== X-Gm-Message-State: AOUpUlFkaiAkQ8KrMYPCdBINMd5e+BmQbPm+U66vqmwBEql510Pw4Q9u bQhJh/SdpkUPoKT5FtAnnZ8zKjh5cVjxsSxnu5H6I4cy X-Received: by 2002:a9f:37c8:: with SMTP id q66-v6mr12521003uaq.180.1533627233144; Tue, 07 Aug 2018 00:33:53 -0700 (PDT) MIME-Version: 1.0 References: <20180803030237.3366-1-songjun.wu@linux.intel.com> <20180803030237.3366-15-songjun.wu@linux.intel.com> <20180803055640.GA32226@kroah.com> <763bba56-3701-7fe9-9b31-4710594b40d5@linux.intel.com> <20180803103023.GA6557@kroah.com> <3360edd2-f3d8-b860-13fa-ce680edbfd0a@hauke-m.de> <20180804124309.GB4920@kroah.com> <0ab8e6e7-3cc2-8e50-b1f3-99616437f527@linux.intel.com> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 7 Aug 2018 09:33:39 +0200 Message-ID: Subject: Re: [PATCH v2 14/18] serial: intel: Add CCF support To: songjun.wu@linux.intel.com Cc: Arnd Bergmann , Greg KH , Hauke Mehrtens , hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com, Linux MIPS Mailing List , linux-clk , "open list:SERIAL DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Jiri Slaby Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Songjun, On Tue, Aug 7, 2018 at 9:18 AM Wu, Songjun wrote: > On 8/6/2018 5:29 PM, Geert Uytterhoeven wrote: > > On Mon, Aug 6, 2018 at 10:58 AM Wu, Songjun wrote: > >> The reason we add a new head file is also for two macros(LTQ_EARLY_ASC > >> and CPHYSADDR) > >> used by legacy product. We need to provide the no-op stub for these two > >> macro for new product. > > No you don't. The line number should not be obtained by comparing the > > resource address with a hardcoded base address. > This is the previous code. Now the line number is obtained from dts. Note that obtaining line numbers from DTS has its own share of problems, when considering DT overlays. I've replied to the patch adding the call to of_alias_get_id(). > We keep this code for the compatibility. > > Referring to the conditional-compilation part in coding-style, > We add a header file to avoid using “#ifdef” in C file. > > Perhaps the override of port->line should just be removed, as IIRC, the serial > > core has already filled in that field with the (next available) line number? Gr{oetje,eeting}s, Geert-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds