Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5671339rwb; Tue, 9 Aug 2022 01:59:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR4xuUDA+68uLBe6SHk//d9Ntf5X+OVk/wjgnyQZKxD9QeyOuAKLx3tRMTS97WIxjBySjt1X X-Received: by 2002:aa7:d8d1:0:b0:43c:ce93:ff67 with SMTP id k17-20020aa7d8d1000000b0043cce93ff67mr20865241eds.295.1660035561565; Tue, 09 Aug 2022 01:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660035561; cv=none; d=google.com; s=arc-20160816; b=Pms3Bl7zLb3TbB5k8w0r9/Jj0NmclIui/brqneN5FkAH1YRvw283sYeHKrkjPOU4CD WHhg9OL68D7MeK07XFpGhKnb/lqcYBau9M25tu+HYvhKkON5thyIVu8Um7PqcHDXwA0F f+TIa74dJBKPKQ6icTgqrZLff6WjUoKJfq37UG9CgJcVtyEDDREI4dWL0bcqyNk7PwzZ PJlL4RtMk70v05UxqzuI33/MYpnWHQClW4fotJ6irz7IVhZSC5ocVoLlAbchPV2f93Ae 2O6VVxVEIjpVFuLzm9hcbrJ7znb143MTlkCdmt+zv83ewHDLmokaPSjHBxvGN9DxVAiP 2ezg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=HTSQxyjdTff+5nKPgMwzEpelY+3eet5R/sdeOOVWrTc=; b=X+8P2rNh2Y+duJRxjfIMVBIxfi8AO0rrNjP49CK9ykyg2OuOEVBGk8K9Gfl2TX4nUZ QK3A3fMSSmmKNgspQC1GK7Oh051znKDILJc4t9wsuFHoTCrjAZ0x7b9CBHfXGPRuWhYE dZJ6x4bwgBtHvjfgMMt/BVYXxvfCypbHxID+68vMWW6iYCY6G8DdOeO8fxKUTxOJmVkT Fka0dm0xwHsu05GtvYEeDxow5u40qnEak7rKmcbVELkWOyXGKOXH81LkIEUkgnVmVIIY Um1g0Ryq2EyyHeymKOLB+rXf7WW/9Kms9n6PDyrvOk/2uyo9STUIIqAOttIR56HzQUHd p4Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=GV5wgq6S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id er19-20020a056402449300b0043e64d81518si6714952edb.619.2022.08.09.01.58.56; Tue, 09 Aug 2022 01:59:21 -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=@cutebit.org header.s=mail header.b=GV5wgq6S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241189AbiHIIyn (ORCPT + 99 others); Tue, 9 Aug 2022 04:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241178AbiHIIyc (ORCPT ); Tue, 9 Aug 2022 04:54:32 -0400 Received: from hutie.ust.cz (hutie.ust.cz [185.8.165.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE7ED22508; Tue, 9 Aug 2022 01:54:30 -0700 (PDT) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1660035268; bh=HTSQxyjdTff+5nKPgMwzEpelY+3eet5R/sdeOOVWrTc=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=GV5wgq6SeyFBiWZhXtg2xXQJhx94BbQOIGfNwWbOq1g9j4sHeM/lKE9/e+uWJ3clQ kyFU/VV8EyPOcEzGetL87wmnbeVd9fefTVslcKypKvn8kLkx8i8OhBhqeyWep+5HfN tGcmJXUKaS6JggqfY9Xo9ZZWoU+vbWUmSaoI8O0k= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [PATCH 2/3] ASoC: apple: mca: Start new platform driver From: =?utf-8?Q?Martin_Povi=C5=A1er?= In-Reply-To: <53c8f062-a760-c65f-479e-53e7991b3f66@linaro.org> Date: Tue, 9 Aug 2022 10:54:27 +0200 Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , Philipp Zabel , asahi@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <82B580B4-85BF-4ABA-B098-98E3CA9EE247@cutebit.org> References: <20220808224153.3634-1-povik+lin@cutebit.org> <20220808224153.3634-3-povik+lin@cutebit.org> <53c8f062-a760-c65f-479e-53e7991b3f66@linaro.org> To: Krzysztof Kozlowski X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 > On 9. 8. 2022, at 10:47, Krzysztof Kozlowski = wrote: >=20 > On 09/08/2022 01:41, Martin Povi=C5=A1er wrote: >> + mca->switch_base =3D >> + devm_platform_ioremap_resource_byname(pdev, "switch"); >> + if (IS_ERR(mca->switch_base)) >> + return PTR_ERR(mca->switch_base); >=20 > How does it work exactly? There is no such property... Can you submit > also DTS using the bindings so we can validate they are real/correct? Ah, I thought I fixed that. There=E2=80=99s supposed to be mca->switch_base =3D devm_platform_ioremap_resource(pdev, 1); of course. My bad, I guess didn=E2=80=99t reexport the patches after = these last minute changes. >> + >> + mca->rstc =3D devm_reset_control_get_shared(&pdev->dev, NULL); >> + if (IS_ERR(mca->rstc)) { >> + dev_dbg(&pdev->dev, "couldn't obtain reset control: = %pe\n", mca->rstc); >> + mca->rstc =3D NULL; >> + } >=20 > Similar question. Same as above, there=E2=80=99s supposed to be resets: maxItems: 1 in the schema. > Best regards, > Krzysztof >=20 Martin