Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2706459pxp; Mon, 14 Mar 2022 03:14:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweev109ex1RjpUkV1TT45m/siPIu5txcy3u1Gv+rUjUm6aRa80rF44yrivDP5LbTNphOJe X-Received: by 2002:a17:90b:1a8b:b0:1bf:89c2:3a0f with SMTP id ng11-20020a17090b1a8b00b001bf89c23a0fmr23864012pjb.215.1647252849333; Mon, 14 Mar 2022 03:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647252849; cv=none; d=google.com; s=arc-20160816; b=b2yO3OA89gcbifnRpzwYYCOuEZ4POXwlxZ0Hx+XafHEvdKaiCafAKqTHVEdFfnIjnJ 3FG66M3DoaL7LyEOyamBOOnErGMX6UBdNXUD5VG5fUuvyPcduacnGu7ZwwkCRRPhSRdR GmuHNJ9gCh+5kuXhPbR/w4N0YM3vt7ngl37IJY9AdtrqmyDVG85P0KaKgpeMbnuKUTb2 8pnybgNwm8STETuDfM3UzGw4IIerU/3jTOTNtTN6ogGTMbfR3ErnVl11xaAUAdw/w/4l JQp5hEW4Jc4rvonA1VvcJPUpgtEFEKYlGf4l05SSJDJA29BTUivHJ0X/aBGRFDS1CbK9 xGcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=mFsSD1c4g3l2OYCc1c3FtLKI1mcqNVpSXz15ZyAFhMs=; b=PdgjDW3k9eD5yFTQNHB/4qI0g8Njl+F29lpl0w8nwThuZL/n/8RYd/de2otbNxlmdO sAm/89Kkku17Iw69NjhHDN0D/q5N+vcciOmR1vXCPKifcgmNt70HL/ZgmSdWw765UFQ1 RnrjXaY3IsxFw4nbsR1ZQG33Gzp4puSsJ7Q7me28/hxoNTcVfk3cBzMTEito86Kc8Vma sgDyumdVTg56oamwpKMDlvMMy1uIxTkmVOQJhCssZooY9Q4/uDF9yYmKEPMbeTmt30nl iO9rBxMJ8jn2TGV+lPFcvQCAlxwdM4enXvDT6+WF8BiWkAoWu8LnoXSyWxTQCBPWNEPb dkpA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a63a111000000b003785aa398adsi14506632pgf.246.2022.03.14.03.13.57; Mon, 14 Mar 2022 03:14:09 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230383AbiCLKmG (ORCPT + 99 others); Sat, 12 Mar 2022 05:42:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbiCLKmF (ORCPT ); Sat, 12 Mar 2022 05:42:05 -0500 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC33B26E036 for ; Sat, 12 Mar 2022 02:40:59 -0800 (PST) Received: by mail-ej1-f53.google.com with SMTP id r13so24087578ejd.5 for ; Sat, 12 Mar 2022 02:40:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=mFsSD1c4g3l2OYCc1c3FtLKI1mcqNVpSXz15ZyAFhMs=; b=sd41uWonzwPXHr7hQfXjjyyDI2TcQxu+PVm+ZVwddvrk1IoB1xZkwaOjOqtRPD1OyG /1EtE4ZBoVcIvfkKXFEeTJSggmfo8AE8zGVlkA+RM3szuw42ffIvCrDwNbFlQinMCNVM mi1FiP8y4jq1gYm0s2G4WFMfKsuXOTOqsTfetDxyI9JG/BaKkhXxh2T1/nsFOKlBRLAT s93Ug//M4Ho5M4SNIKmgFR0v7T+Isz6diZuUgZpEnux1cFUkQvYsJe6cN22vrWXPLDw7 qE6lfkNaWQJyimmnpo5I3BxNxfOlPM7xQLPmmCk23uR4aST7dyi002as1cG9E5HP7pf6 Tt/g== X-Gm-Message-State: AOAM531QhknO86kuNM1W0mX0RsOnAO+PEOybncZ63Ap1leYEhgP7ZY0m 4jQrFT8vXoirqL/pEdyaWWY= X-Received: by 2002:a17:906:b052:b0:6ce:88a5:e42a with SMTP id bj18-20020a170906b05200b006ce88a5e42amr11963926ejb.237.1647081658122; Sat, 12 Mar 2022 02:40:58 -0800 (PST) Received: from [192.168.0.148] (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.googlemail.com with ESMTPSA id e9-20020a170906c00900b006d4a45869basm4167533ejz.199.2022.03.12.02.40.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Mar 2022 02:40:57 -0800 (PST) Message-ID: <009acb4c-d59c-c1ad-60b0-cc85fe7ad73d@kernel.org> Date: Sat, 12 Mar 2022 11:40:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [RESEND V2] ASoC: max98390: Add reset gpio control Content-Language: en-US To: Steve Lee , lgirdwood@gmail.com, broonie@kernel.org, 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, nuno.sa@analog.com, ryans.lee@maximintegrated.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org References: <20220312002429.16175-1-steve.lee.analog@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220312002429.16175-1-steve.lee.analog@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,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 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