Received: by 10.192.165.148 with SMTP id m20csp2750554imm; Sun, 6 May 2018 23:56:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpt4eEyVdPtaQI2YMLTb5Drx+X56QsXYj2X6w5+aznTMOxcb6Og+omJjkIdSvHKymR5ab+q X-Received: by 2002:a65:6395:: with SMTP id h21-v6mr2948429pgv.267.1525676182918; Sun, 06 May 2018 23:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525676182; cv=none; d=google.com; s=arc-20160816; b=SlmfYALadW0nuegawMLlJJO+VlARE5wLQx8BM+huwbSbiznQAUL8CswbSL0Ay1fbom uYGwJ/ynmdEB1bxdVl4tgYxSgEOswPeBnQVnqRY7PDcez/hHde5bXeFYZdr7GqlroqR4 6GHTCUHGQwwNWRQuEdp2AbpMEMIxARzvb2Lts5IJtpPJxB8MvH86e2a/ojfcZdnEZ4UW EgZoo0ywbHjAHcpRgMQUT3DddZ4bEEJBLj/P2Zb8GdXBwBM7s6MvfJRX1fpv3xlvkD4r srY1PlLDQeRWajUzx75J5D92Vx2WPWQDI6RD448BsSp8RBDS5IGe/JI6pxlytlRYrMhf bKIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=7XXLrt5r8VLCwASohIoPGrhVGOoidQ55xqIyNT9v0V8=; b=EEzdLA9Zy/ITUqanl7GKX/GJbVfZVlBw97hXeAT2DwLsdK6VK+V+h0vABBp8/0cHqz Q8tivXqV1JYsH91fI8UoQnS1nrzO/mhWQ4m/ngWBpr4tLbarBD6KXHAYg8CHKMOLBbAi 5I9FHUCki+O6VpumcEIF1Rl5vi3/fDD8eNaDnl3FkRKstBc+5nfPibld7fPFjMuTDezV ym+4eisxxtuoWceMP2ms+kO1m2+YPlH+2rvRgnu4GTjo5L5OwH50PzJwJRtB4vais0yp L0eUDnvsX7i5J7kEKnCYTQNnwSc67KfHFSz4a4wZ8tqlTInWF82zZxuGMQILqgI8EIxF gTfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XKDBvkkx; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si6320547pfn.41.2018.05.06.23.56.08; Sun, 06 May 2018 23:56:22 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XKDBvkkx; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbeEGGzN (ORCPT + 99 others); Mon, 7 May 2018 02:55:13 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:32426 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbeEGGzK (ORCPT ); Mon, 7 May 2018 02:55:10 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w476t3Vi010643; Mon, 7 May 2018 01:55:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1525676103; bh=7XXLrt5r8VLCwASohIoPGrhVGOoidQ55xqIyNT9v0V8=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=XKDBvkkxa8TCKJ5cUT9hWI6oualKZyHNk+Wo4lOizLYOjfOS4DUf6Sw3lDumjstJR /bdK/5OdNfXfjgjsHrTk1ctVV+zWFVNALpo45jzOVjlhUHzlh6Cg6qr+7Nf6PkmZsi dGcZAT0gru5GizND6AkE+aeOxm+5/JI2ujAqTuCs= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w476t3mm001015; Mon, 7 May 2018 01:55:03 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 7 May 2018 01:55:03 -0500 Received: from DFLE103.ent.ti.com ([fe80::7431:ea48:7659:dc14]) by DFLE103.ent.ti.com ([fe80::7431:ea48:7659:dc14%17]) with mapi id 15.01.1466.003; Mon, 7 May 2018 01:55:03 -0500 From: "Reizer, Eyal" To: Tony Lindgren CC: Eyal Reizer , "bcousson@baylibre.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Loewy, Chen" Subject: RE: [EXTERNAL] Re: [PATCH] arm: dts: am437x-sk-evm: add wilink8 support Thread-Topic: [EXTERNAL] Re: [PATCH] arm: dts: am437x-sk-evm: add wilink8 support Thread-Index: AQHT4umNrIAS1VNvUkK07yas+IZ4paQiVQFAgADvToCAAJCfoA== Date: Mon, 7 May 2018 06:55:03 +0000 Message-ID: References: <1525159453-32489-1-git-send-email-eyalr@ti.com> <20180502145100.GK98604@atomide.com> <5cc906da15da45ab96e06957f878b65b@ti.com> <20180503141759.GP98604@atomide.com> <20180506165621.GL98604@atomide.com> In-Reply-To: <20180506165621.GL98604@atomide.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.167.25.139] x-exclaimer-md-config: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, >=20 > Yeah my guess is that the reason for the separate GPIO interrupt was > that on omap3 we did not have SDIO interrupt working for years. This was > because of the issues related to padconf interrupts for off mode. >=20 > We now have Linux generic wakeirq support working with SDIO and it has > been confirmed to work also for off mode with mwifiex at least. So > there should be no reason to not also use the SDIO interrupt. >=20 There is more to this than just the padconf. Using in-band interrupt instead of the out of band one requires Supporting a feature called "Asynchronous interrupts in 4Bit mode" Which is part of SDIO 3.0 spec: https://www.sdcard.org/downloads/pls/pdf/index.php?p=3DPartE1_SDIO_Simplifi= ed_Specification_Ver3.00.jpg&f=3DPartE1_SDIO_Simplified_Specification_Ver3.= 00.pdf&e=3DEN_SSE1 Take a look at page 41 at the bottom part of the table. Wilink8 supports this feature but AFAIK this support is still not part of t= he=20 mmc/sdio core in the Linux kernel. If we want wilink8 to trigger a host wakeup using the in-band interrupt ins= tead=20 Of the wlan_irq pin we would need to enable/use this feature. I did use it internally in the past and was able to patch the Ubuntu kernel= =20 (3.5.0 at that time) to use wilink8 in a standard SD Card slot of an Ubuntu= Laptop=20 while removing the use of wlan_irq pin completely. However this was an experimental patch set written by a third party=20 that was not up-steamtable at that time. I do have this patch set somewhere... It is similar to the following patch which is not upstream as well for som= e reason: https://gitlab.com/k2wl/g2_kernel/commit/5c4970fdaa50422d7ea7220efa20fb3514= 8a4bca It is not the only patch needed, there are a couple of additional patches n= eeded=20 for fully using it from driver. I did check latest Linux-next and don't see this support there. Not sure wh= y. Best Regards, Eyal