From patchwork Thu Jun 11 13:04:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hartmann X-Patchwork-Id: 6588421 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3705CC0020 for ; Thu, 11 Jun 2015 13:04:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E8A320600 for ; Thu, 11 Jun 2015 13:04:56 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id AC17020266 for ; Thu, 11 Jun 2015 13:04:54 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5A6F1266513; Thu, 11 Jun 2015 15:04:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 915C32664D6; Thu, 11 Jun 2015 15:04:49 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 37E73266505; Thu, 11 Jun 2015 15:04:48 +0200 (CEST) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by alsa0.perex.cz (Postfix) with ESMTP id 0A1942664BB for ; Thu, 11 Jun 2015 15:04:43 +0200 (CEST) Received: by qkx62 with SMTP id 62so2686172qkx.3 for ; Thu, 11 Jun 2015 06:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=ikO4sKtloytSn7v2SkzqofqYQfphfbJDFeigWtu7Z+Q=; b=krwozgFH3+8p5SolfXD8Q2TUFsFQDfd58A7ikGjMTjYJT5AFitnSX5TgcwpEg0dTxk 94mZNnkzPQ1udTRiPKBqjcdxg5vz0oGu3D2K/rd4C1YN5hWB4SsFYyeTI1M5Kx+ySCiW HUBt7JGnRuwMdiwHLifrGBxDH6XkHxnd9Xc2yywIa8mdJSqrXiyinUztaJtxj3YtA51i SIT96M2BWiVJMafugLNdonZh8X1sQQCI1ps/vp5dQ4wVmhZhVaYsGr9Vot+9O9lLLyQx CpMxMirNUHcsJ/Z+6v1oJ9l/D7r3kKSXCJe4D6H8XLolp6Zhh4K+guJ4mIokJ9Rvh5+f qvCg== MIME-Version: 1.0 X-Received: by 10.55.53.70 with SMTP id c67mr18545693qka.62.1434027878824; Thu, 11 Jun 2015 06:04:38 -0700 (PDT) Received: by 10.96.217.98 with HTTP; Thu, 11 Jun 2015 06:04:38 -0700 (PDT) Date: Thu, 11 Jun 2015 15:04:38 +0200 Message-ID: From: Christian Hartmann To: patches@opensource.wolfsonmicro.com Cc: alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH spi-pxa2xx.c 1/1] : fix spi init of WM510205 codec via ACPI, the chip hangs on chipselect 1 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, I have one patch that enables the spi initialization of the WM510205 audio codec Without the patch, this message indicates that the codec chip fails with the current chipselect number in spi-pxa2xx: [ 0.296256] pxa2xx-spi 80860F0E:00: cs1 >= max 1 [ 0.296270] spi_master spi32766: failed to add SPI device WM510205:00 from ACPI So raise num_chipselect by one to enable the codec. The WM510202 is on chipselect = 1. With the patch applied I got in dmesg now: [ 6.056829] pxa2xx-spi 80860F0E:00: no DMA channels available, using PIO [ 6.067035] pxa2xx-spi 80860F0E:00: registered master spi32766 (dynamic) [ 6.067214] spi spi-WM510205:00: 8333333 Hz actual, PIO [ 6.067221] spi spi-WM510205:00: setup mode 0, 8 bits/w, 8000000 Hz max --> 0 [ 6.067287] pxa2xx-spi 80860F0E:00: registered child spi-WM510205:00 would be nice to hear some feedback or comments about this patch. Notice: Thats my first attempt to make the codec chip via ACPI working on Linux systems and some other patches are needed to let the codec work together with the intel_sst_acpi driver. Currently I am trying to write the also needed machine driver which binds to this codec chip. But I can need help from others too, cause I am not so familiar with the Intel SST ACPI stuff and the baytrail code itself, nor with the arizona stuff... cheers Chris From b0e434df115d8bb94c3de80dca660d5d44ac52fd Mon Sep 17 00:00:00 2001 From: Christian Hartmann Date: Thu, 11 Jun 2015 14:51:20 +0200 Subject: [PATCH] spi-pxa2xx : raise num_chipselect for this platform data in pxa2xx_spi_acpi_get_pdata() Signed-off-by: Christian Hartmann --- drivers/spi/spi-pxa2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index e3223ac..7b54b04 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1279,7 +1279,7 @@ pxa2xx_spi_acpi_get_pdata(struct platform_device *pdev) if (adev->pnp.unique_id && !kstrtoint(adev->pnp.unique_id, 0, &devid)) ssp->port_id = devid; - pdata->num_chipselect = 1; + pdata->num_chipselect = 2; pdata->enable_dma = true; return pdata; -- 1.8.3.1