Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5685896rwb; Tue, 9 Aug 2022 02:16:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR68E0JBBNQs7rkBpvLMyg8DE38NKS/jxRlSN8nVTzC5OmiOD3ddO8bx0rWeV0TCVPEfjGbK X-Received: by 2002:a05:6402:34ce:b0:43d:c2ce:6e8a with SMTP id w14-20020a05640234ce00b0043dc2ce6e8amr20709269edc.160.1660036608066; Tue, 09 Aug 2022 02:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660036608; cv=none; d=google.com; s=arc-20160816; b=qv5nKyqDssz6AMBerSSlVNUFpegQofxzzzD8NmPA52Ii0FB7FRHbxpmi5mvgZQuhzy Z7iYE2WI/uF2+WyAqUfzNEF3Dm828PFIXnYmAawGSu0tsSRn5McapkXEyUcUha6Ah8w7 yK2i2M+UiA9pH2bO5unIHtGazkzjo+f5GqyMgA7/oaHgCmyKHqcIUMNZ4kLYZQdS2U/C Zfmwed+M/hTJTdBFtLKrBFgY4Jk1/ik2Pez/aP1jhIBfhjPzSPHOr393/1MDjKj+G6ta bJe5o/wpLr+S099GniX4xo7z8Wg0ks3Waa+B+wWDzONkjqPNpgFnQbBCFqH8hBN3ga7o vhPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=OUcm8vHUxwRIwzbU6slNWWOPpfCMQUZkg+tfSBE3tgo=; b=X8mRhE/e584z/BKNSURH2U5hiyrpHhvVG5HK2Ae9fTh9wa6ejyxmvwvwh5O3+l28Tc sOPInw8aTQr0Zle497nhg1GV/JexgWW0dUoKOeFhrXXDeSHDnFWWWNZfVwSA9RSangs3 rPy6sRYUpihdqkNQlaem9jPd8ns1H3xvvPpNeC9pglS6vd+xP3C1c2M/twUUVpaaJdXB bsc3m5adHh2ptP00E/7dsEQi7EvHx1ObGYJgwIlrpu4j6+aAO39NMTwY23cU9uOHKmBK 3bl18DSDihUSrPGO1FtGXMSq/UdtO8Y2VykKWog4IEAYM9PFRxOprhnjgErp9wjJYcsL 9wHA== ARC-Authentication-Results: i=1; mx.google.com; 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 h6-20020aa7cdc6000000b0043da6d85bb2si7246663edw.631.2022.08.09.02.16.23; Tue, 09 Aug 2022 02:16:48 -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; 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 S240595AbiHIIdM convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 Aug 2022 04:33:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240542AbiHIIdK (ORCPT ); Tue, 9 Aug 2022 04:33:10 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30EC5201B2 for ; Tue, 9 Aug 2022 01:33:10 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLKfR-0006K1-7S; Tue, 09 Aug 2022 10:32:49 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oLKfM-002fas-63; Tue, 09 Aug 2022 10:32:46 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1oLKfN-0001Qi-La; Tue, 09 Aug 2022 10:32:45 +0200 Message-ID: Subject: Re: [PATCH 2/3] ASoC: apple: mca: Start new platform driver From: Philipp Zabel To: Martin =?UTF-8?Q?Povi=C5=A1er?= , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai Cc: asahi@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 09 Aug 2022 10:32:45 +0200 In-Reply-To: <20220808224153.3634-3-povik+lin@cutebit.org> References: <20220808224153.3634-1-povik+lin@cutebit.org> <20220808224153.3634-3-povik+lin@cutebit.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Martin, On Di, 2022-08-09 at 00:41 +0200, Martin PoviĊĦer wrote: > + mca->rstc = 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 = NULL; > + } Please don't ignore errors, this could be -ENOMEM. For optional resets, use devm_reset_control_get_optional_shared(), which returns NULL if there is no resets property in the device tree. regards Philipp