Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp797852pxp; Fri, 11 Mar 2022 15:25:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHurnyHOIFy1H5XI1yZnbxcjALpJGwD0ZM+gePAmQ6ETDCGlg0gN4gKnlPe7m0b7EwpC/z X-Received: by 2002:a63:110e:0:b0:375:89f4:b54e with SMTP id g14-20020a63110e000000b0037589f4b54emr10478794pgl.430.1647041112709; Fri, 11 Mar 2022 15:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647041112; cv=none; d=google.com; s=arc-20160816; b=JmzDOBegp+t0E31WJZdDrYqmxKtUhrudtkyu+p++n8XULIa8ceMe0U/56uytgh2nF8 ksTFJQ0cwlYWWkPNcvhi4BngjDzh5aodqsuK1Sts+EhqGgwchIw4tPNK0CWB93slutXa 8T6Uk2ms/ANQPZ0VzQi3WAwtKklw9hpDZ88XgGNBq/LlrjpqPDrJevPW+yDtPxyBpF5c rfQEdrQAE7I5t0F4QIO3JGnQ3dfnsjmqYGrCd+QwTxhqyJIL7TlZQU7IGcsXp0xZItsJ bTisAM7vxbnNWQSBtR/+ZzBfFuDM2MAhrdraJ7l1691GVVv17okxw4SCo63a+lNNQEMS 8knQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iH2ohTMZfPnRZ9E6jdBe6JKfO5koQv5qtiPS15nsl0I=; b=j8ZqIt0KaHcrqqAfOldGtYJGdadr96mOcab/ph0pkvKFLZynI9+OsC12g4+ZQvZjrk ImvsPQH4g6SY0sYuJaxKYrKLGnIoEoIZ+UiOw9gw9YHTXp0FCqbokrE682KA63Hm7NI5 nPevarIBV9c0z3sQkdQpVr8/LNtqf6J7X/JVeJOXp1aHfLOWYDkTYs339g6J/gIVNylh cRhP8ZcImEyZQG7xG8F5ygXaXsYphSC7A+lFs9M7Q1BWEDRzZRFgyRxrCOvtuaW+Jk+I gDoXgNbVZ7L5mY6mAlFBpOe1zEFu5M9nN1sKz0UEgkemJVBj1dm/mYxIeWeYPdu0sc8f 6EDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lBLSNHND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f11-20020a170902ce8b00b0015301b286ccsi9907180plg.80.2022.03.11.15.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:25:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lBLSNHND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D027E3B714F; Fri, 11 Mar 2022 14:11:44 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347750AbiCKF7h (ORCPT + 99 others); Fri, 11 Mar 2022 00:59:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346715AbiCKFyT (ORCPT ); Fri, 11 Mar 2022 00:54:19 -0500 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CD81F1E8F for ; Thu, 10 Mar 2022 21:53:14 -0800 (PST) Received: by mail-io1-xd43.google.com with SMTP id x4so9011341iom.12 for ; Thu, 10 Mar 2022 21:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iH2ohTMZfPnRZ9E6jdBe6JKfO5koQv5qtiPS15nsl0I=; b=lBLSNHNDBDLhECW+i7GItRVFc2s/fgUj/HMjqg84Xln7MQUu6DxpDIq7jdrZwx2YWB HDmLI2wAzHNtmqomw5J3eD4YE0N+ivlLv1Er2iRuVUG3/ri6ZqhWubh8509kcBE3idYJ QSA8JQqsfolKtgGCs518PBnajsSWdlErkZ82pu6WfzPooJzUIJTbF/7cexQ5S5Qzlfm4 T3VU65+SP5zmCBG6TatJtUP47W9CAUa1dZzaetX2Lj37T5DDBjKD1toIp6o1KdpvmHbF sS2V5edCKN/TlpsmgAUVLXwVE/c7LQBrMEB794Vlthuht9Tw3zS8/YqcEUwo9Q6D9LGW yd4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iH2ohTMZfPnRZ9E6jdBe6JKfO5koQv5qtiPS15nsl0I=; b=MFV9eJSnm7/8G5Yh6B3+nqwHIOBVgN++NcG1hnEefuLMirb8GoT4sqOG76k08OICvq 5zS1iZfyllYg7OQQmFURSgB6aTlbxy0I8oeBgbSfZRhJlBiH7Q6Xb6NHnM3ik2BZub/t oQXypv35Dw5k0AIS16qj4Q6MOF2URLpUWCHLteQjTOCxrfXt3RzdC073u7NpAgYQ1MKI bMBC+1nuQ8FfJR763GpHGr9cKeicEpmIfHky/iCaEzC2HQAQ7A2Q5UZxGqkVyGIiqYLl 7uv+QKv3e2z6r1jhYV4bvfFsYAm7nmcmQ36wQqS3G99A8VI4/2ZB5OoDtFntJFfp1eu/ 3WtA== X-Gm-Message-State: AOAM5320JmI6XzShPbBDcWjFzpupSwSSgJvl3kBK674zUlGj2eC1qtCk ZOO+vdmHm64TMARKgEr97Ih/OyYtf2TGltldWCs= X-Received: by 2002:a5d:8ace:0:b0:641:2a6e:471c with SMTP id e14-20020a5d8ace000000b006412a6e471cmr6896106iot.42.1646977993769; Thu, 10 Mar 2022 21:53:13 -0800 (PST) MIME-Version: 1.0 References: <20220310081548.31846-1-steve.lee.analog@gmail.com> In-Reply-To: From: Lee Steve Date: Fri, 11 Mar 2022 14:53:02 +0900 Message-ID: Subject: Re: [PATCH] ASoC: max98390: Add reset gpio control To: Mark Brown Cc: "Sa, Nuno" , "lgirdwood@gmail.com" , "perex@perex.cz" , "tiwai@suse.com" , "ckeepax@opensource.cirrus.com" , "geert@linux-m68k.org" , "rf@opensource.wolfsonmicro.com" , "shumingf@realtek.com" , "srinivas.kandagatla@linaro.org" , "krzk@kernel.org" , "dmurphy@ti.com" , "jack.yu@realtek.com" , "steves.lee@maximintegrated.com" , "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Mar 10, 2022 at 8:29 PM Mark Brown wrote: > > On Thu, Mar 10, 2022 at 08:48:09AM +0000, Sa, Nuno wrote: > > > > + max98390->reset_gpio = of_get_named_gpio(i2c- > > > >dev.of_node, > > > + "maxim,reset-gpios", 0); > > > Why not using devm_gpiod_get_optional()? We could request the pin > > already in the asserted state and make the code slightly better... > > Yes, and it'd support other firmware interfaces too. We also need an > update to the binding document covering the new property. > > Might also be worth putting the device into reset when unloading the > driver, though that's not essential. I will check and update v2 patch.