[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <57392B3C.2060609@huawei.com>
Date: Mon, 16 May 2016 10:06:52 +0800
From: "Yankejian (Hackim Yim)" <yankejian@...wei.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Yisen Zhuang <Yisen.Zhuang@...wei.com>, <davem@...emloft.net>,
<rjw@...ysocki.net>, <lenb@...nel.org>
CC: <arnd@...db.de>, <andrew@...n.ch>, <geliangtang@....com>,
<ivecera@...hat.com>, <fengguang.wu@...el.com>,
<charles.chenxin@...wei.com>, <haifeng.wei@...wei.com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linuxarm@...wei.com>
Subject: Re: [patch net-next 07/11] net: hns: dsaf adds support of acpi
On 2016/5/13 21:12, Andy Shevchenko wrote:
> On Fri, 2016-05-13 at 16:19 +0800, Yisen Zhuang wrote:
>> From: Kejian Yan <yankejian@...wei.com>
>>
>> Dsaf needs to get configuration parameter by ACPI, so this patch add
>> support of ACPI.
>>
> Looks like at some point better to split driver to core part, and PCI
> and ACPI/DT/platform code.
>
> Too many changes where IS_ENABLED() involved shows as I can imagine bad
> architecture / split of the driver.
Hi Andy,
Actully, we use the unified function asap. The routine in DT/ACPI maybe difference. Some routine
will be treated in BIOS in ACPI case, but it will be treated in OS in DT case, so we need to distinguish
it.
And we will try to reduce the use of IS_ENABLED().
Thanks very much for your suggestions, Andy
Kejian
Powered by blists - more mailing lists