Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2220520pxp; Sun, 13 Mar 2022 12:08:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPCLGoz1XD4nvDYdbgJBQ6M9jgnQq6ST4pJVfqZURf1p1ExE2uL+M6e7knbnrFvUr9bdEO X-Received: by 2002:a05:6402:518a:b0:416:b181:10ea with SMTP id q10-20020a056402518a00b00416b18110eamr16240071edd.276.1647198492459; Sun, 13 Mar 2022 12:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647198492; cv=none; d=google.com; s=arc-20160816; b=CfTxgxixsO2eTnt6g0V9XoxXgxq3agOc3Ao+o+Hvuq7ss1fQ3h4VRpKGSmS+314nbT JJ2sZJhqhViJpftOJanV7/1olhXAmJ5PueuQW+N5bNiEXbR1HUUNpfS6r1Vd7DDCg+EL 642NHuchtHlyNiOHta9Qete0gE98v/Ny3WHnAN59h6mEzLuMl3uRYqMK+S2hZwdrQ8cW yPe260su1hTlVCT8/vwFfBLY+HuMOPDRB0wZYNHj6aXVXYEYsytBNzuvdB5iyzjNihtv 9/L5CWMYsqpGIeiQoEHHFBheAHqj1U4VlgL/Guuwa7EKZWq+cmFofreW2U1vucDmcUg1 Rhjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yeehAnwXiFpjq47LCkJzC+vZeMh+kdhUAc1wvTjLTKQ=; b=nNqn8U2wFr/etvHUjbVeGhkpiYbdoGVNOXsAk0fkHP6Gl5KAjmKsshShwYHUmk5OYM dEdSdzdm37Eor8P+Eb6qyqYPuQ1q5ilpCZRtRElnRGZhOEDT6pe9TIsM56JF2EnNCRkQ lFkvg7ppSyPB7jhCsLi7wskk7srCcQkVt5iazID24QiQJRTE+xoVZov2P5MoYzWS5VT1 nHnZYP1raeTB9lmWGdcUy+YG3GjhjQoutcqI8ygdap5QOZNXQFbm8X2Qzz4EneKhxQgR wDDuMs/cgH4fc5xd7wZob01XOMB5vnbOXi+NMWDnsRpiao8ozycMA4Rvcpabqsdwrm6z 4ttw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d15j8gZE; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a50cc03000000b00411cd50fd1csi8418385edi.135.2022.03.13.12.07.47; Sun, 13 Mar 2022 12:08:12 -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=@gmail.com header.s=20210112 header.b=d15j8gZE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233625AbiCMFoM (ORCPT + 99 others); Sun, 13 Mar 2022 00:44:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiCMFoJ (ORCPT ); Sun, 13 Mar 2022 00:44:09 -0500 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B74A2D1C9 for ; Sat, 12 Mar 2022 21:43:02 -0800 (PST) Received: by mail-il1-x143.google.com with SMTP id h21so891418ila.7 for ; Sat, 12 Mar 2022 21:43:02 -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:content-transfer-encoding; bh=yeehAnwXiFpjq47LCkJzC+vZeMh+kdhUAc1wvTjLTKQ=; b=d15j8gZEJQ2cUKh8lIyS1UGKxT0GQRDadj6U6b5zp/zFIkaK8rHI0s8XZuz4eqi8ob I3K6xhmzr5iV/ZIk+GweWX06qMX0wTcI41QSx+nyDNUrsaSHf4KK9ipFE2F9udgT4r1/ bMRzGQrpRmnoWIS+vkfBy3Uku9G+ZJzXECwUIcznZ1g25LQtEeIIspETWyFJr/lUj85F oCGYCLmFGRNpviEw5oYvW/gDFKnBJ8waBRZjdNRb+e9mQEYuTZln7NGY7ZBd4ZKcOyr5 gPw554sJanMM/5vvrGRKQWpsXIDM7yBzFMu1YXvqqftKcvu/HCfQVgOMJMvpd8oJPG+8 cWdA== 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:content-transfer-encoding; bh=yeehAnwXiFpjq47LCkJzC+vZeMh+kdhUAc1wvTjLTKQ=; b=KEbLo8iPHQwW2KE73y8sqP4uBhXd/g8+Aqj5UNTQLT8FjVEdraBNGh/gGlTSmg1XFZ Fkq8RS436QPoV5CTELaD5U6atOq50NGs0GZZ9vIwhuAvPCJesoc7IZH/+x04u2hZGBpA 6d5N4DKrdKNO1nnSqdCnLltu5xB+o7TCpYtVL3c+yTtuf/0WQU2WuuXTk1V8cIbauPjL 67QQqxREyGNK1jtCx1C3LpGLwMxY2M5SNLoKin9BH5UCeMrlHaYnxfrtgcRojmlGu1Xr V2LwXdGXzJYeBfDe+OHreHFZ6Atj0EPeCTB8wat9HVyp2YwpVCBoJEApK4B5Dcg4LJho nstg== X-Gm-Message-State: AOAM532gYsvM5eLaWomHTB9mdwGdgqSdgtTntLdnZS0V1MS/jJwchOrj 2lc1bTLWP1IZ0Z60vnyfOKqOyjOKX9Y1k8lVpaI= X-Received: by 2002:a92:cdad:0:b0:2c6:7b76:a086 with SMTP id g13-20020a92cdad000000b002c67b76a086mr14632088ild.5.1647150181750; Sat, 12 Mar 2022 21:43:01 -0800 (PST) MIME-Version: 1.0 References: <20220312002429.16175-1-steve.lee.analog@gmail.com> <8f4a088ffc0fc1d4aa14aa1d0adf575cdc94291b.camel@gmail.com> In-Reply-To: <8f4a088ffc0fc1d4aa14aa1d0adf575cdc94291b.camel@gmail.com> From: Lee Steve Date: Sun, 13 Mar 2022 14:42:50 +0900 Message-ID: Subject: Re: [RESEND V2] ASoC: max98390: Add reset gpio control To: =?UTF-8?B?TnVubyBTw6E=?= Cc: lgirdwood@gmail.com, Mark Brown , 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, jack.yu@realtek.com, "Sa, Nuno" , ryans.lee@maximintegrated.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Sat, Mar 12, 2022 at 9:58 PM Nuno S=C3=A1 wrote: > > On Sat, 2022-03-12 at 09:24 +0900, Steve Lee wrote: > > Add reset gpio control to support RESET PIN connected to gpio. > > > > Signed-off-by: Steve Lee > > --- > > sound/soc/codecs/max98390.c | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > diff --git a/sound/soc/codecs/max98390.c > > b/sound/soc/codecs/max98390.c > > index 40fd6f363f35..9a9299e5cc5a 100644 > > --- a/sound/soc/codecs/max98390.c > > +++ b/sound/soc/codecs/max98390.c > > @@ -1022,6 +1022,7 @@ static int max98390_i2c_probe(struct i2c_client > > *i2c, > > > > struct max98390_priv *max98390 =3D NULL; > > struct i2c_adapter *adapter =3D i2c->adapter; > > + struct gpio_desc *reset_gpio; > > > > ret =3D i2c_check_functionality(adapter, > > I2C_FUNC_SMBUS_BYTE > > @@ -1073,6 +1074,17 @@ static int max98390_i2c_probe(struct > > i2c_client *i2c, > > return ret; > > } > > > > + reset_gpio =3D devm_gpiod_get_optional(&i2c->dev, > > + "maxim,reset-gpios", > > GPIOD_OUT_LOW); > > A reset GPIO is a standard property so there's no need for a vendor > prefix. This should be devm_gpiod_get_optional(&i2c->dev, "reset", > ...). And, as said before, you need to add a reset-gpios property to > the bindings in a different patch. > > I'm also not sure why you have this as RESEND... > > - Nuno S=C3=A1 > > > I forgot to add another patch mail. I will check it before sending patch ag= ain.