Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3499312pxb; Mon, 30 Aug 2021 03:59:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnhmmXfJkIJTpjT8yO618F2qnDRq8/319ry4XfSWKk5yxyqJA24lZOdbrZd78Eubr+JjyN X-Received: by 2002:a5d:8715:: with SMTP id u21mr10849150iom.1.1630321151949; Mon, 30 Aug 2021 03:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630321151; cv=none; d=google.com; s=arc-20160816; b=EK7R5ZggOTd1cSKfr+pV7WDMgzo5+7uEvk7NtpizTY91XI2OBvjyejVjiJOokGxKJb qfXGkSfh1F7kzxBqXbF7DsWoj391BEr5fLGD0EI+ah4Zh+xgLxOoPLdBAo4//O3GqE8G AfRiGVH5GoMPRu1pYtSntN2ajbSFWSNgjY/aUFYc5X4Su51P2mBFJWZh8yok00eDM9pL a1LyxnfXA9Obcu07PZ+h+mkZMGCWTbnel2V8I02V6Dx+2bPzRqQOluG5sAvbR+6dB8Mn 8as3gZ41YqyTWdU+GomKtKIr3yidzcTDjeTEqyhVoPQfBRBQBY6szng38iYOCBVK/Cvu nBLQ== 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=IuLKz1s8t6PFtB3h5yQO3vsoV8BYc4QlCilxBHWTOcY=; b=ziP/206h59BG/s3LAsrofGExXj2RxnzZzxYosk8mVbi1V5932NHf3h7u58xNPe/Nud rWyP4nLC3tjJyJD3v9aTeQlF60Z+aYIVNblNg4bmv9y5LxWjI/v6sPDQfNSFM6mekJvf daEgscbFYZ15UYAGR2jJaPRR0rqXkf6XEB6lld0eHe0wK+FIyJNjpJydtyRAa6+X+EC0 aAAxmRLjaWgLRrbsdWJrBu0JxxgLSXwoBHAgi2UqERL72Fjo+kM2QkCuee91p6ZCGP/v ZUdJWfMVfY7hm3PkPamrI6rdEvfp55myMtbJCSNLUzpXeW4GTBzzdHDTe7qnDj84mIeZ 72Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gN/rIRJ+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si14371605jap.72.2021.08.30.03.59.00; Mon, 30 Aug 2021 03:59:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gN/rIRJ+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236430AbhH3K5x (ORCPT + 99 others); Mon, 30 Aug 2021 06:57:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235818AbhH3K5x (ORCPT ); Mon, 30 Aug 2021 06:57:53 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4F08C061575; Mon, 30 Aug 2021 03:56:59 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so13572965pjr.1; Mon, 30 Aug 2021 03:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IuLKz1s8t6PFtB3h5yQO3vsoV8BYc4QlCilxBHWTOcY=; b=gN/rIRJ+8Mk/MKOcw84CamLKnAejx1PZuqVsRV51WgkCvcJS7L9PiWIKt0TnmceP+T LWRDkoPqbMr9zTFv9XJG9Xj6TvqGCnYGa2ohFlCriTb69HjNgWfGichEWUseAQJg8Qsl iStTTO2OwqYvqYUWFGIDNLosinsIhEUxZjbRsO/5KlbtLOoVF5GvI5t+lsvGViaPBnQw G1mpqa0KY8zOeAIG0D/9eXsQNhPiHz0rsAnndZfMmWCv2GlWNdHhtwzjFXWD865dWSqo SaOF8r+DOgfxRSRI67JQUnYEoeorL/SCpBhsnCahpdVRGWchqt58a1hlZ8GGQUVWuvH1 fz1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IuLKz1s8t6PFtB3h5yQO3vsoV8BYc4QlCilxBHWTOcY=; b=pGlxPNvk73Iy/5Q739JMOQScsxoRtFmyCF38I8VaUKTtivk6S5QTV4H3Y/FoboLzq+ moxA69QduikECkXp78SIkb9j0K/EWZNVzuQd1pBAqgc2vY0xSXetwzOpbO1SLiUL7rik eaZ0UYzi+iFeqnVs5TfPfOIiS0dYw89+Knl/CAT83o+OR4hEjbSL52OEcrRXdjsgz9Qo v+cKfvx+entxr+kNe1tul4MyGMQkYQHwwenuGQKrXBQUj6Gkns9++pNiyRkZWJHh89fr nLE2ar8dAzk+trLO1V/mYCjD1y58lgjSr39I8SPu7MnsuGzl66oCIMKudcKQ9P/vzzRB JmMw== X-Gm-Message-State: AOAM532iPJzPNUiG4wcjM1PsPszjNzYe15dl99IGsHnqLqBfqPLVQs0v +Ty97P78F7AJ0wpQWBacmIAVvuzZdYoSsgBM2ak= X-Received: by 2002:a17:902:bb81:b0:12d:a7ec:3d85 with SMTP id m1-20020a170902bb8100b0012da7ec3d85mr21312883pls.17.1630321019360; Mon, 30 Aug 2021 03:56:59 -0700 (PDT) MIME-Version: 1.0 References: <20210830104426.487246-1-atafalla@dnyon.com> <20210830104426.487246-2-atafalla@dnyon.com> In-Reply-To: <20210830104426.487246-2-atafalla@dnyon.com> From: Andy Shevchenko Date: Mon, 30 Aug 2021 13:56:23 +0300 Message-ID: Subject: Re: [PATCH v2 1/2] ASoC: max98927: Handle reset gpio when probing i2c To: Alejandro Tafalla Cc: Liam Girdwood , Mark Brown , ALSA Development Mailing List , Rob Herring , Jaroslav Kysela , Takashi Iwai , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 1:48 PM Alejandro Tafalla wrote: > > Drive the reset gpio if defined in the DTS node. ... > + reset_gpio > + = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_LOW); A bit of a strange indentation, shouldn't it be one line? > + if (IS_ERR(reset_gpio)) { > + ret = PTR_ERR(reset_gpio); > + return dev_err_probe(&i2c->dev, ret, > + "failed to request GPIO reset pin"); It simply as return dev_err_probe(&i2c->dev, PTR_ERR(reset_gpio), "failed to request GPIO reset pin"); > + } -- With Best Regards, Andy Shevchenko