Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1575630pxp; Sun, 20 Mar 2022 23:05:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyec5TkKZmio8JZ8sw1kVBCiCE/o6MbQOPyj4v4z1ppC4ey0mAuw7r1AZndi4P26BhpRdOP X-Received: by 2002:a05:6402:34cf:b0:419:2855:ef68 with SMTP id w15-20020a05640234cf00b004192855ef68mr7947817edc.65.1647842749414; Sun, 20 Mar 2022 23:05:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1647842749; cv=pass; d=google.com; s=arc-20160816; b=mXtNIY/l1hHS8Atza06LYmI7QIrDrVl9AaBfJiqMvFyD+WiJHgKJtFLrn1QDMG9jDk 94oHoeUuySss9f3icT2WChDRHfeI2aZt0f503MjMLF8007hy7D/dN8p6VIMoFqUBWXaI XgZ441pDfgSrBpksPilyy0NKAiOYaOR3crojDM2aVRynOFjQEXpWuGGXjRXLAnhHg0R8 7fEvsnaO4lnKBF+QFicV//29zbcWhAwZDeCuXduv4ecV+vUL4U36LulIF5daRPJXJBGz gsx9run35R1uS/zBQkqH91hDGrpz61PZzu7pxV0yBGf/ztg0QX5XyUBXMeTQBWuY7dky jNqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iDY17S7RCvDF9qiYuie8u8fzkGV4KkzgjhHnHykA8tk=; b=qy0LjZxKLG1M3tplGYosVAKX7Kri8N7JUuCZhqoEnOaxSFBPY44lRkO6t4zKzH6EMH Knu2vB8O3kVbVIw6Vl15YaxTN9Edui0EZ05ieCto1fCCyiEIYOnIkuH7N7T7Hf8EmDl+ yM4+/N8meX2mPQSru2p5hU08oiOysmPMm+/K/t6Rwb3S+6ObAxjkuHpzykTeH+83pqBj faieGnRJtyr3l5/uD4/P+9QdyFu2I5VbCMMcJiiMV2K50XGhh7WIN141dZqAqt8nTkXi yDUTrgpccs5eZBwoSj64a4b7OFOKliKovHWEvzFWbo1zQu9mMR7Tq/61LN0RWz6H5n5F Ey0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=bCbZEd9w; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m15-20020a17090677cf00b006df76385ccesi6714991ejn.366.2022.03.20.23.05.23; Sun, 20 Mar 2022 23:05:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=bCbZEd9w; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244206AbiCSVWz (ORCPT + 99 others); Sat, 19 Mar 2022 17:22:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243626AbiCSVWs (ORCPT ); Sat, 19 Mar 2022 17:22:48 -0400 Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 021C0F3A47; Sat, 19 Mar 2022 14:21:25 -0700 (PDT) Received: from darkstar.musicnaut.iki.fi (85-76-3-17-nat.elisa-mobile.fi [85.76.3.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: aaro.koskinen) by meesny.iki.fi (Postfix) with ESMTPSA id 8051220AF5; Sat, 19 Mar 2022 23:21:21 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1647724882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iDY17S7RCvDF9qiYuie8u8fzkGV4KkzgjhHnHykA8tk=; b=bCbZEd9wb+b2O2zHn6wd1VCw1KePMyiGqG7liKfYRbq49DKQSqDHrpsUZJTJqSoz3siArC oDVM00swXaN2tWb7gEuXQoaxutMz1E20iRwmkiw+Q9wzOy9FUMG8nXMdZo0ifAlbf9qPda o0fAW0SaIfwjtBOIUPrp/VW+MwcRtyk= Date: Sat, 19 Mar 2022 23:21:19 +0200 From: Aaro Koskinen To: Tony Lindgren , Janusz Krzysztofik Cc: Paul Walmsley , Alan Stern , Greg Kroah-Hartman , Helge Deller , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: Re: [RFC RFT PATCH 0/4] ARM: OMAP1: clock: Convert to CCF Message-ID: <20220319212119.GG1986@darkstar.musicnaut.iki.fi> References: <20220310233307.99220-1-jmkrzyszt@gmail.com> <20220319184952.GF1986@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220319184952.GF1986@darkstar.musicnaut.iki.fi> ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=aaro.koskinen smtp.mailfrom=aaro.koskinen@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1647724882; a=rsa-sha256; cv=none; b=I1DHswTI7A5ca/cZd9nhOuu58fGsFhlGJrMzFEz3wHAwaTxrhMvM4BAis0lCoV+4+gQzz9 iU9Uv/Ha+3FAYQp6pYhNGK0PwDnlGKsFD0+gbXTH9fc4zZLu9r/F3utUw/zLo7HYL+Shl5 kiR2779eX49kRGqvQx76pYfW8bjfsos= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1647724882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iDY17S7RCvDF9qiYuie8u8fzkGV4KkzgjhHnHykA8tk=; b=MOwC43AUk0Z/RE//O5IsMFCBT1FohW2xbiINA67irU2c7affmRIkINr3qUZ1ySBThJtkXE jnVVko9wW6T/p14f1qaNE/D9A/uJbW2hksJ2qA6CBBPCve7GHkXq9EQ3zIV9jVdwd/1uSA 6WEjhgBOAw1HSKLbqPnKZdDBD00e/9A= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Mar 19, 2022 at 08:49:55PM +0200, Aaro Koskinen wrote: > On Sat, Mar 12, 2022 at 10:14:31AM +0200, Tony Lindgren wrote: > > * Janusz Krzysztofik [220310 23:32]: > > > The main motivation behind this series is planned resurection of OMAP1 > > > camera driver. Since OMAP1 clock internals have never been visible to > > > drivers, that driver used to use v4l2-clk to expose a pixel clock for a > > > sensor. The v4l2-clk code has been recently depreciated and removed from > > > the media subtree, hence the need for an alternative solution. > > > > Nice :) This will also help Arnd with building multi-v5 kernels. > > This will need more testing still... The patch 4 is breaking at least 770 > (the display/fb doesn't work anymore). Patches 1-3 are OK on Nokia 770, OSK and Palm TE. Patch 4 breaks 770, but OSK and Palm TE are OK. Below is the problem with 770. As a quick hack, I tried replacing all clk_enable/disable()s with prepare_enable/disable_unprepare()s in drivers/video/fbdev/omap/hwa742.c and drivers/video/fbdev/omap/sossi.c and that seems to help... [ 0.374389] omapfb: lph8923 rev 92 LCD detected, 16 data lines [ 0.374816] omapfb: configured for panel lph8923 [ 0.383789] omapfb: LCDC initialized [ 0.384216] ------------[ cut here ]------------ [ 0.384368] WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:1012 clk_core_enable+0x94/0xb0 [ 0.384613] Enabling unprepared ck_sossi [ 0.384704] Modules linked in: [ 0.384796] CPU: 0 PID: 1 Comm: swapper Not tainted 5.17.0-rc8-770-los_381206+-00072-gb2406fc1ddd4 #2 [ 0.385009] Hardware name: Nokia 770 [ 0.385101] unwind_backtrace from show_stack+0x10/0x14 [ 0.385314] show_stack from __warn+0xac/0xe4 [ 0.385528] __warn from warn_slowpath_fmt+0x90/0xc8 [ 0.385711] warn_slowpath_fmt from clk_core_enable+0x94/0xb0 [ 0.385894] clk_core_enable from clk_core_enable_lock+0x18/0x2c [ 0.386077] clk_core_enable_lock from sossi_init+0xa0/0x258 [ 0.386260] sossi_init from hwa742_init+0x90/0x538 [ 0.386474] hwa742_init from omapfb_do_probe+0x200/0x68c [ 0.386657] omapfb_do_probe from mipid_spi_probe+0x1b4/0x230 [ 0.386840] mipid_spi_probe from spi_probe+0x48/0x6c [ 0.387054] spi_probe from really_probe+0xac/0x2f0 [ 0.387237] really_probe from __driver_probe_device+0x80/0xe4 [ 0.387390] __driver_probe_device from driver_probe_device+0x30/0xd8 [ 0.387573] driver_probe_device from __driver_attach+0x70/0xf0 [ 0.387756] __driver_attach from bus_for_each_dev+0x74/0xc0 [ 0.387908] bus_for_each_dev from bus_add_driver+0x14c/0x1d8 [ 0.388061] bus_add_driver from driver_register+0x74/0x108 [ 0.388244] driver_register from do_one_initcall+0x4c/0x1cc [ 0.388427] do_one_initcall from kernel_init_freeable+0x170/0x1f4 [ 0.388641] kernel_init_freeable from kernel_init+0x10/0x108 [ 0.388824] kernel_init from ret_from_fork+0x14/0x2c [ 0.388977] Exception stack(0xc0c41fb0 to 0xc0c41ff8) [ 0.389099] 1fa0: 00000000 00000000 00000000 00000000 [ 0.389282] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 0.389434] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 0.389556] ---[ end trace 0000000000000000 ]--- [ 0.389709] omapfb omapfb: invalid SoSSI sync pattern: 00000000, 00000000 [ 0.389831] ------------[ cut here ]------------ [ 0.389923] WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:953 clk_core_disable+0xb4/0xcc [ 0.390136] ck_sossi already disabled [ 0.390228] Modules linked in: [ 0.390319] CPU: 0 PID: 1 Comm: swapper Tainted: G W 5.17.0-rc8-770-los_381206+-00072-gb2406fc1ddd4 #2 [ 0.390502] Hardware name: Nokia 770 [ 0.390594] unwind_backtrace from show_stack+0x10/0x14 [ 0.390808] show_stack from __warn+0xac/0xe4 [ 0.391021] __warn from warn_slowpath_fmt+0x90/0xc8 [ 0.391204] warn_slowpath_fmt from clk_core_disable+0xb4/0xcc [ 0.391387] clk_core_disable from clk_core_disable_lock+0x18/0x24 [ 0.391540] clk_core_disable_lock from sossi_init+0x1bc/0x258 [ 0.391754] sossi_init from hwa742_init+0x90/0x538 [ 0.391937] hwa742_init from omapfb_do_probe+0x200/0x68c [ 0.392120] omapfb_do_probe from mipid_spi_probe+0x1b4/0x230 [ 0.392333] mipid_spi_probe from spi_probe+0x48/0x6c [ 0.392547] spi_probe from really_probe+0xac/0x2f0 [ 0.392730] really_probe from __driver_probe_device+0x80/0xe4 [ 0.392883] __driver_probe_device from driver_probe_device+0x30/0xd8 [ 0.393066] driver_probe_device from __driver_attach+0x70/0xf0 [ 0.393249] __driver_attach from bus_for_each_dev+0x74/0xc0 [ 0.393402] bus_for_each_dev from bus_add_driver+0x14c/0x1d8 [ 0.393585] bus_add_driver from driver_register+0x74/0x108 [ 0.393737] driver_register from do_one_initcall+0x4c/0x1cc [ 0.393920] do_one_initcall from kernel_init_freeable+0x170/0x1f4 [ 0.394134] kernel_init_freeable from kernel_init+0x10/0x108 [ 0.394317] kernel_init from ret_from_fork+0x14/0x2c [ 0.394470] Exception stack(0xc0c41fb0 to 0xc0c41ff8) [ 0.394592] 1fa0: 00000000 00000000 00000000 00000000 [ 0.394775] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 0.394958] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 0.395080] ---[ end trace 0000000000000000 ]--- [ 0.417907] omapfb omapfb: controller initialization failed (-19) A.