Received: by 10.213.65.68 with SMTP id h4csp1798906imn; Thu, 5 Apr 2018 04:06:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+52dSu8ARbKZdK4s/BDhqGNa9m/0BcZ0n0TtnS3L/6Vic6CDM9CphK70+O+1wAkYWpBE9g X-Received: by 2002:a17:902:6bca:: with SMTP id m10-v6mr22645931plt.387.1522926411717; Thu, 05 Apr 2018 04:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522926411; cv=none; d=google.com; s=arc-20160816; b=SjC05TxCvlvWO6m1K4LkFu2Jb3+RsKS78+N1APBdmF8mYb+C7CG9/KJR0aA8mK4oRG cxQ+qw+cCFrJpoGgs0jqajG+CA7Lm8OSbzuEMlkuVN3edRbre5lTD0k4g7rpe3JD3n3p 0XmbTu3M72pkBif8fcrpF3c1uEI22jqa7oPrEDjbb/1Ke63xwQSLDO2Omg5ZTMCuYfTh WrrNqa/SK53M8sinFyT1zOWJQOFZ3lWz87gf5s8QT6VPwpgY078p1lIsviZ8AnaA7vp0 vDcS6kS2OmgMpj1dYMBfyl3RaxZXH0Y9pwzsoWgmm6Og5PXXUJhXi9ShKbd+aYTcQWF1 8pmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=q0JbXJI/m5L4UeMao3GSASE1VtiAjJXXqa/RNx9rd90=; b=hXYQH48yvXcWLaC9SP1IaOtgUpULS/hQG9THjmJQLZ41MxUMb1qmlLmQazR1lRxYL2 W7CoZ6yDAjE4DQLkU7PmqQO54mVPAAOwfozBRnmiq8/fsHB7wvyA6EFSyknLTDEh03oA OVSmB0hSav68DZkkWgwa6lp5TWY5+Y06lrTi2QVmjlmRQj8tSZozsGF55zpex/bPbN02 GNT3B0dOU3dlDoFXvsOMfEkVQO57izH43ULs0EhFQz47VGnEnteuxU7U5cb0uRc5m/RW D03HaeWVkHJMUyZLpEV1JjHzBiF3YjsQrD6AWBrHpfHq6yHM1LKpI02pb/Sjd1SVucVb SyTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vf1WxP5J; 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 l14si5328301pgu.581.2018.04.05.04.06.37; Thu, 05 Apr 2018 04:06:51 -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=vf1WxP5J; 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 S1751367AbeDELFY (ORCPT + 99 others); Thu, 5 Apr 2018 07:05:24 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:33395 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbeDELFW (ORCPT ); Thu, 5 Apr 2018 07:05:22 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w35B4t0x027021; Thu, 5 Apr 2018 06:04:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1522926295; bh=X2CKO82cImTXyOOVaOCfcVpgW7qY/jQ5AT0gRRM1sd8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=vf1WxP5JHcbNjEwcfmKav2U5UDctaL3fMzHpAbpGKDmUBOuPwuA0N40BIVL8PQscV TAB61FsT6JNPtFWhdxhZjqxJB4flvV81/CGouqC3o9MRTjv+cL0GtZ9E7WKWQi7/IV yxKcKeeKQoovS0gG6oz/u1bv2bPxlTrh/w37rSxA= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w35B4tPA025481; Thu, 5 Apr 2018 06:04:55 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 5 Apr 2018 06:04:54 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 5 Apr 2018 06:04:54 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w35B4q7n011208; Thu, 5 Apr 2018 06:04:53 -0500 Subject: Re: regression: twl4030 audio/clock stopped working in v4.16 To: "H. Nikolaus Schaller" CC: Discussions about the Letux Kernel , Tony Lindgren , Linux Kernel Mailing List , linux-omap References: <2E644641-82D1-40AB-B878-06066C91AC7A@goldelico.com> From: Peter Ujfalusi Message-ID: <3c615b51-f9f4-7267-cc2d-2a74184058a8@ti.com> Date: Thu, 5 Apr 2018 14:05:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <2E644641-82D1-40AB-B878-06066C91AC7A@goldelico.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nikolaus, can you CC me also, I have almost missed this... On 2018-04-04 21:29, H. Nikolaus Schaller wrote: > Hi Peter, > I just noticed a problem in v4.16 kernels with twl4030 audio and vibra driver no longer working. > > Tracing it back shows that it already did appear in v4.16-rc1 and wasn't fixed up to v4.16.0. > Kernel v4.15.9 (the latest one where I have a binary) works. v4.16 works just fine on beagle-xm (including audio), omap2plus_defconfig. > The symptoms are: > > [ 1.557342] twl4030-audio 48070000.i2c:twl@48:audio: Invalid audio_mclk > [ 1.564788] twl4030-audio: probe of 48070000.i2c:twl@48:audio failed with error -22 > [ 1.839141] TWL4030: HFCLK is not configured Hrm, the order looks a bit weird, it should be TWL4030: HFCLK is not configured twl4030-audio 48070000.i2c:twl@48:audio: Invalid audio_mclk twl4030-audio: probe of 48070000.i2c:twl@48:audio failed with error -22 In twl4030_audio_probe() we try to get the HFCLK rate via twl_get_hfclk_rate(), which is reading it with: twl_i2c_read_u8(TWL_MODULE_PM_MASTER, &ctrl, R_CFG_BOOT); > Those are not visible in v4.15.9. And I am not aware of any changes to the gta04 device tree. > > Do you know about this issue and a fix, before I start to bisect? The CFG_BOOT register of twl4030 is not configured correctly for some reason? The TRM of twl4030 states that the SW should program the HFCLK_FREQ during boot sequence. If it is not done, MDAC and USB should not work either. And all sorts of other issues might happen. So the boot loader is not configuring the HFCLK_FREQ, for me it does as I have this line in the kernel log: [ 1.472503] Skipping twl internal clock init and using bootloader value (unknown osc rate) In DT the twl should have the fck clock to not depend on the bootloader for the HFCLK_FREQ settings. We do not have that for beagle-xm for sure. > > BR and thanks, > Nikolaus > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki