Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1804486pxp; Sat, 12 Mar 2022 23:23:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhjoqOHiE+irdPqY/Jmd/ZdOuoYh1NTvdHCv6bFxSP94gDSlovQ0Iqorq59QP2uMpmZ3CM X-Received: by 2002:a17:907:94ca:b0:6da:b785:f067 with SMTP id dn10-20020a17090794ca00b006dab785f067mr14311403ejc.654.1647156193177; Sat, 12 Mar 2022 23:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647156193; cv=none; d=google.com; s=arc-20160816; b=bPhyxwvTkNAhW0PaultwoICS9gGbS+okFK0ddI9Z4gN+ys4myc12xAN3Ek7lhOpFJ6 c58pwx86lJ1LUs857+QGj7LerEAuDxnDlATwov/hzHo44IBMxIu7Nkddt1ZWHtiYOXKl vVD49/AdsYaQABiK0EZbWpkny6yzlEvZ/5airj/m7GSfb26CQWp8qO4xnSdXuraB0lkW Lx5/yuE5rHznOnOeYKt8S/MlbZ9u69iA6ueGSJSHVlYSGg+wPGWwSzN5KkKpP57PID1Q Et36ZiFc5GW3nDHZ9CpwoxJKwYtgfj2FO3hFTQqljPIPCIYAPi/Dyt9ldqaSLUJF9NkJ j1iA== 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=GSJXVOht+hxS+hKjGxwt1A2kwmz24g3we9uVLX8KopE=; b=kbL+QDrRLWbJZ+E8SkavBx8YvtULGfV1lAz92Asgl75Wvelzvb0vHYikqK0nzcvvg7 JC+qqvbDVVpLA0WFGrJAjAhmw38EW3QkGxqnVGJsBj+TNty8bnZBfOpuSSPZyREW+eab FrAI8L6E2P4/J8HmuowxznDntazwDYiSlPGDmndHDCzYy2LnuldHPSGhyaedA6uLasx+ qFSQvUF/RGmE2TuxYR4430L0hYJNDlPU2WfgxEkNRQJrpieeioFAoJ+1J3nILmhUU7bI bmIGl2sAJuOY6h1RKmQzoNo7optWz/0sbdQFRyEzmNb7Ph7Ko14JXEoq9bg1mBZ/RHPd jUlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YKGzICi3; 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 z13-20020a1709060acd00b006d6e5846a2csi7266668ejf.740.2022.03.12.23.22.48; Sat, 12 Mar 2022 23:23:13 -0800 (PST) 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=YKGzICi3; 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 S233616AbiCMFmH (ORCPT + 99 others); Sun, 13 Mar 2022 00:42:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiCMFmG (ORCPT ); Sun, 13 Mar 2022 00:42:06 -0500 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DDAB3C498 for ; Sat, 12 Mar 2022 21:40:59 -0800 (PST) Received: by mail-io1-xd44.google.com with SMTP id k25so14615247iok.8 for ; Sat, 12 Mar 2022 21:40:59 -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=GSJXVOht+hxS+hKjGxwt1A2kwmz24g3we9uVLX8KopE=; b=YKGzICi38ZdGllMCcDcm5P019Hzk9qjMGjdUtEOTG6PrbMVwtdJED138/+dcUNJW37 M4YDt8UYxW0rGnnszHqbINRl77Hy57S1GXAeN2NANfA12J3+gfXP8O4fazpmxCCkTOFM HcaMKQbX0E0+Jk14W7fQEaLurkevYy7+ez4GFFBwQ5QNZ7Mr9gnNEAIgw0eUdhWUc6mX vbpVvf6+7acpdDUkGFWnMdhwCP15pnvL3YFI3WuN02hmF6Y7cghfZr4ejvTHduHlte0q h9wKR8u3YcHJpGf2lw3JtCj1KIXj+bwHr0F65o0dzhMxNIoswE7zCM9peC4iNGbk28kw DgYQ== 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=GSJXVOht+hxS+hKjGxwt1A2kwmz24g3we9uVLX8KopE=; b=w8wU+9kJNj0mvTaDTwnSYkgiEi/eLLv4fJfV/5oTCIwwzn8rsW/wtlXV68jUdEfH9e eQCRSMsXWNGvvrHTdBa5OfVERM5cN7G54tKgKnp6xbOncji0cns88m4qFsysC6Yn9Ns1 pi0a7cXhHV5axVkrHmDcVHN9AfCotpOrzb4Uwq6+yjHJZr+XzYt0IpUzRk2TnKwYBd31 WnBm7VnK++nDpm/+RD2joWVIh6163M+DbaSd11sHdM7Pg8etocoQNQwpfAwSdIRCaY2g I+MpjoxsQ7rohQE92PDHk3lirRhOHv249KcwP+RJPIEWMhftxJa0uHLSa3cX7umgzlLT 2rmw== X-Gm-Message-State: AOAM5315JQFnI97cDxLtQmtQSYI1Mko0JwvsZ92R3r1uALxlio1Az9jZ TDOmwL4BpJlLdBONtBZBfy5WKAVhteo+JCV19iw= X-Received: by 2002:a05:6602:1341:b0:637:d4dc:6f85 with SMTP id i1-20020a056602134100b00637d4dc6f85mr13993251iov.155.1647150058869; Sat, 12 Mar 2022 21:40:58 -0800 (PST) MIME-Version: 1.0 References: <20220312002429.16175-1-steve.lee.analog@gmail.com> <009acb4c-d59c-c1ad-60b0-cc85fe7ad73d@kernel.org> In-Reply-To: <009acb4c-d59c-c1ad-60b0-cc85fe7ad73d@kernel.org> From: Lee Steve Date: Sun, 13 Mar 2022 14:40:48 +0900 Message-ID: Subject: Re: [RESEND V2] ASoC: max98390: Add reset gpio control To: Krzysztof Kozlowski 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, 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" 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 7:40 PM Krzysztof Kozlowski wrote: > > On 12/03/2022 01:24, 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 = NULL; > > struct i2c_adapter *adapter = i2c->adapter; > > + struct gpio_desc *reset_gpio; > > > > ret = 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 = devm_gpiod_get_optional(&i2c->dev, > > + "maxim,reset-gpios", GPIOD_OUT_LOW); > > + > > I don't know why did you CC me, but since I am looking at this - you > have to update bindings. > > Do not add random properties to drivers without updating bindings. > > Best regards, > Krzysztof Thanks for comment. Yes, I update bingding too.