Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1534782

Re: [PATCH v3 11/14] ACPI: irq: introduce interrupt producer

Path csiph.com!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Hanjun Guo <hanjun.guo@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v3 11/14] ACPI: irq: introduce interrupt producer
Date Fri, 02 Dec 2016 11:10:01 +0100
Message-ID <sJSWZ-2sV-7@gated-at.bofh.it> (permalink)
References <swbGa-7lz-3@gated-at.bofh.it> <swbGa-7lz-19@gated-at.bofh.it> <sJxzc-38x-11@gated-at.bofh.it>
X-Original-To Aleksey Makarov <amakarov.linux@gmail.com>, Hanjun Guo <guohanjun@huawei.com>, Marc Zyngier <marc.zyngier@arm.com>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=9MFQRWbjQWJD6/jMZDbXsU3JJU5M6pAQBXgCNJ5wIDo=; b=ZabJIJrgsS0j7VLbUbs5+USArj2KAtBB1od1eEPkYS5kZGy/75gTPyp8eqoMcqOk+/ Nv/Aret2TMJZNr4+28n5tFX6l2fJ2E3ajmwzsvMWNFrMZ8c0gbFeK4L9dogHEtUsn+AV 8ZwnHXH6d/lSDfq0cz2zCkH0IVngApptF41jQ=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=9MFQRWbjQWJD6/jMZDbXsU3JJU5M6pAQBXgCNJ5wIDo=; b=Ps3pIODOO5DWQHRDUmk3YDxkmeTT0DNcrMEpsib7ySFQRxW/0IVYbY3rrgV3dcV3J+ UbmRpsdir8DwcdYYS9LLWhUb55Nd9fQ4NMjhZZtPmQPvWB/2vhjKO8y/eSImNTgEZ5ke P4gcm2s882oz94fAc3gQtA9ULfYZLl9YxrE/RuzNF0DX+3jk457Okv/t3vn3MDhkj01l E9I+U/Cpq5meDZKL1glTp0PUQZY74oMVO/FQ7ifVK9pW6IHGpOLYK189ApnyYcgvomL6 zcPf/fJ2mOpWvnip0paSlwQ8K7NkXYB3tdCRq2OtlEdNg1WvgI8C5c3VmIZwCb8EfCp0 bbDQ==
X-Gm-Message-State AKaTC00q/QM4Sw7VcpPpCiX0XjN0wWl3fDgWh1Ma0GLBi4MrOZNaJQH8RYEeD+O/0tcvrKZX
X-Received by 10.84.139.129 with SMTP id 1mr95796251plr.178.1480673258539; Fri, 02 Dec 2016 02:07:38 -0800 (PST)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 41
Organization linux.* mail to news gateway
X-Original-Cc linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>, Greg KH <gregkh@linuxfoundation.org>, Tomasz Nowicki <tn@semihalf.com>, Ma Jun <majun258@huawei.com>, Kefeng Wang <wangkefeng.wang@huawei.com>, Agustin Vega-Frias <agustinv@codeaurora.org>, Sinan Kaya <okaya@codeaurora.org>, G Gregory <graeme.gregory@linaro.org>, Charles Garcia-Tobin <charles.garcia-tobin@arm.com>, huxinwei@huawei.com, yimin@huawei.com, linuxarm@huawei.com
X-Original-Date Fri, 2 Dec 2016 18:07:03 +0800
X-Original-Message-ID <b7f0e4de-143e-c6ec-a597-a92c935698f0@linaro.org>
X-Original-References <1477408169-22217-1-git-send-email-guohanjun@huawei.com> <1477408169-22217-12-git-send-email-guohanjun@huawei.com> <04573e29-6222-24f0-82f4-381367ee8bf0@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1534782

Show key headers only | View raw


Hi Aleksey,

On 2016/12/1 19:12, Aleksey Makarov wrote:
>
> Hi Hanjun,
>
> On 10/25/2016 09:09 PM, Hanjun Guo wrote:
>> From: Hanjun Guo <hanjun.guo@linaro.org>
>>
>> In ACPI 6.1 spec, section 19.6.62, Interrupt Resource Descriptor Macro,
>
> [ ... ]
>
>> ---
>>  drivers/acpi/gsi.c      | 10 ++++--
>>  drivers/acpi/resource.c | 85
>> ++++++++++++++++++++++++++++++++++---------------
>>  include/acpi/acpi_bus.h |  1 +
>>  3 files changed, 68 insertions(+), 28 deletions(-)
>>
>> diff --git a/drivers/acpi/gsi.c b/drivers/acpi/gsi.c
>> index ee9e0f2..29ee547 100644
>> --- a/drivers/acpi/gsi.c
>> +++ b/drivers/acpi/gsi.c
>> @@ -55,13 +55,19 @@ int acpi_register_gsi(struct device *dev, u32 gsi,
>> int trigger,
>>                int polarity)
>>  {
>>      struct irq_fwspec fwspec;
>> +    struct acpi_device *adev = dev ? to_acpi_device(dev) : NULL;
>
> Why are you sure dev is always an acpi device?
> Look for example at drivers/acpi/pci_irq.c:377 where this function
> is called for a PCI device

Good catch, but I will drop this patch and use Agustin's one [1].

[1]: https://mail-archive.com/linux-kernel@vger.kernel.org/msg1283116.html

Thanks
Hanjun

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 11/14] ACPI: irq: introduce interrupt producer Aleksey Makarov <amakarov.linux@gmail.com> - 2016-12-01 12:20 +0100
  Re: [PATCH v3 11/14] ACPI: irq: introduce interrupt producer Hanjun Guo <hanjun.guo@linaro.org> - 2016-12-02 11:10 +0100

csiph-web