Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp881641ybl; Fri, 13 Dec 2019 06:08:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxx8jRyC6Y9WK9Wh3MBHK3mnFG4/MEyXj97w4pv1J0XzMdOdLFiMoU7W2F3v+SJETsdS+VS X-Received: by 2002:a05:6830:1e9a:: with SMTP id n26mr13868125otr.99.1576246094066; Fri, 13 Dec 2019 06:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576246094; cv=none; d=google.com; s=arc-20160816; b=gF2yQX01rI9E0IQID1RskHdgvftuYu2Perf77MYOYT5ph3+GIQOkJ6NlfzmFtopj09 aSAwQD3vqae9Rq9xEcUlSuQlQmBQ/RIlLL+qqmQF+Wl8+5i/5oJkzQl7UfcA7W9Q+4xr +J+KBSGt4qu+deMOQL01PSpfXgmdObf2Tdwn5j9pO5RhzIIk4Dw/ds2pPjAj6tYNbbll kLcvHou35X2wFQv+SKMEfPFmXj2dGP27KsVZiOru30YQppGbFjrz12nEUHuxQyLX7T1g ikQZTjYY96VQCwh8xlWX+TFcj0YbinYitxUuUcrzziALjcU1AetSu+p9dqkiQM82SfmO +mMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=B8XeIUMlmn1LnNEcrDK6VX5QC3QQw4jrJkYLaEf7rhY=; b=L+OyagiRzPmuYpfhbIUD5kDJX6BtHRuToH4gM7uduJNF7WXJoYk6VUhLj0EZILwUrh l0XIHj/1nyRl9BmTRcfoE4R/Bzvq9Bgb9a4f3nCHbEzWAvhiuSU1IL/DiTV4fLpld1mg v4bJwBi74lg1UZ8Sapm7p1iTRYptdKdsVaAHFP0ssJhnkBPrPwSI6VhjmO9aNtSrc3A3 mXVVD+owajg/HGrEYHmR/MilKzCSMWYDJJmA1AOQJumXtxzRj9PtlK++eczSXCridYSc r08R1EOz1MBjR9pJ6AGfU4MnCeAJoK6UG9ia3lnNcrGuaJEwAx1PmPV0xdJaaKoRd9/Y aEWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nlHPlznw; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 x22si5506713otp.107.2019.12.13.06.07.45; Fri, 13 Dec 2019 06:08:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nlHPlznw; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727444AbfLMOHk (ORCPT + 99 others); Fri, 13 Dec 2019 09:07:40 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55293 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbfLMOHk (ORCPT ); Fri, 13 Dec 2019 09:07:40 -0500 Received: by mail-wm1-f66.google.com with SMTP id b19so2309869wmj.4 for ; Fri, 13 Dec 2019 06:07:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=B8XeIUMlmn1LnNEcrDK6VX5QC3QQw4jrJkYLaEf7rhY=; b=nlHPlznwfxHFz2zwQOmaNikkzmKhjllm5ZJu+/n6bjwty/5/1CBnF3xcSHWFb4WFGA 8gm+x6vnonzksRDxmYQASHzbHN5p4DjN4VvCN4Psui0+FPqzPD6SSW/t50pPFFUTwAR5 ZIrawi2ScEJuqUvd52HdpajLP+OKTSgv+J/wfe5RsfKZ6DHoh9tdWtqQLuUDrxTZzEuM P9QXeo9SnoE+ZYl/Kb6px8ma5B5Kbnr0tT4xNvK4qDniGCNhW4Em8NJepzheHqie99Yk zsxC8pvqZKJHcnseGnt3cnjCQ0s5qCSdKwtoDul7mSIkMElznqeekiF5VH0ctYcnsMkl Zp5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=B8XeIUMlmn1LnNEcrDK6VX5QC3QQw4jrJkYLaEf7rhY=; b=SnlGIHuRGMrNxg22OIe5x6qrwMBKdkZEmDesFzFOH6Ab5SeQBm12EWWBwBjYO1xRNa 5d1d8ohC6xpmTZx9otC7sJt6ghCUlunIC33kQtGdnu9y4/bw+oU1L9GCgkI42qZLhuT7 BRHpwoHRrOTv8Kke1HuR1XJE+pU8fWzzgy10YpRjl+NUmLEb+NjqsFfbZLy7PT7vREIV doNKzvZR+uEP9HDwm/+vocrf5qsGeQNSOeKPjOfBWBsv5j/dHTqh9fSj0eO1XX0sURVu +G2DTHHwOgOG8u7wGkC6c5+eROK0hS9iXPaBO4i3sBNT9LrjjeNavzbyAO01eM0iwD33 KZzg== X-Gm-Message-State: APjAAAXAlj8e1jpWY5l5+siE67iIUMdW/76/NLC3eosvRGKpggf9Chh4 Z/+WeNA3XK8lfid7okcXdX2NGg== X-Received: by 2002:a7b:c85a:: with SMTP id c26mr13728535wml.107.1576246058120; Fri, 13 Dec 2019 06:07:38 -0800 (PST) Received: from ?IPv6:2a01:cb1d:6e7:d500:82a9:347a:43f3:d2ca? ([2a01:cb1d:6e7:d500:82a9:347a:43f3:d2ca]) by smtp.gmail.com with ESMTPSA id d8sm10004369wre.13.2019.12.13.06.07.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Dec 2019 06:07:37 -0800 (PST) Subject: Re: [PATCH v4] bluetooth: hci_bcm: enable IRQ capability from node To: Johan Hovold Cc: marcel@holtmann.org, johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org, nsaenzjulienne@suse.de, linux-kernel@vger.kernel.org, khilman@baylibre.com References: <20191213105521.4290-1-glaroque@baylibre.com> <20191213111702.GX10631@localhost> <162e5588-a702-6042-6934-dd41b64fa1dc@baylibre.com> <20191213134404.GY10631@localhost> From: guillaume La Roque Message-ID: <08ae6108-0829-3bb4-f398-7e6a58719d29@baylibre.com> Date: Fri, 13 Dec 2019 15:07:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191213134404.GY10631@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 12/13/19 2:44 PM, Johan Hovold wrote: > On Fri, Dec 13, 2019 at 01:31:18PM +0100, guillaume La Roque wrote: >> Hi Johan, >> >> On 12/13/19 12:17 PM, Johan Hovold wrote: >>> On Fri, Dec 13, 2019 at 11:55:21AM +0100, Guillaume La Roque wrote: >>>> @@ -1421,6 +1422,7 @@ static int bcm_serdev_probe(struct serdev_device *serdev) >>>> #endif >>>> bcmdev->serdev_hu.serdev = serdev; >>>> serdev_device_set_drvdata(serdev, bcmdev); >>>> + bcmdev->irq = of_irq_get(bcmdev->dev->of_node, 0); >>> Shouldn't you be used using of_irq_get_byname()? >> i can use it if you prefer but no other interrupt need to be defined > Maybe not needed then. Was just thinking it may make it more clear that > you now have two ways to specify the "host-wakeup" interrupt (and in > your proposed implementation the interrupts-property happens to take > priority). Perhaps that can be sorted out when you submit the binding > update for review. no problem i add a "host-wakeup" interrupt-name. you are right it will be more clear with name and we know why this interrupt is needed. > Johan thanks Guillaume