Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp947601pxb; Wed, 6 Oct 2021 19:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyupuCUunulyzcWBJRWqxcS3kiJUSzo2a9WF9ZJOp+0FW/jZDUykvXY/5WqtYVnIRPPwuzo X-Received: by 2002:a17:90a:ab94:: with SMTP id n20mr2643538pjq.146.1633575006713; Wed, 06 Oct 2021 19:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633575006; cv=none; d=google.com; s=arc-20160816; b=JDZ9SVudmw+TjFOZmTQchvlmcoa5ze697fIpj/49aq9hFYIxUeUekAtfSlgoze6F6n 9FF2EzgJqqvseia1ctHVjQXnyUHeAZ1GzZWsrJ45BTMLQpxbydtvs7MJG9ULK8K17qBF EfrrWqhRELHdMwj3/H7cIs60aRZ8puPPCZaEMcWvh+LVnzKBoGnzgG8o0CLI6UlTatdl nkXedMpEiqR0FjG3mCID5rBQKI/TbreYAChjlB+8rRprb93zfgczQn7U7EGCz/2x6He5 Zfi7ERw1KEwLexHVl/a4+znFUlgYOmoyGqhGxRsMcHakrdwunxxnZuWXxhw4lb+8nY5Y NTZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UQONep5ySl/5cbNAymDZv03km2yD/iB0jM0tcNMVEHQ=; b=LCnDduFYKSM+l0pvtHAyfwDPlCgNe64lFnm94tE78MxpkKfRMcRobq8b8G3SvfO0JA HdN4CwgvaN3Y7d5kOtGxbx2KMtMgafbVN78NsIX7YD+hRAI4A5Ma9r04UL6Zjn3WKrPI 0YclVxvKaf/DhZBip4wVnvkkCalk7qVuYUcfyhCkK8acHm8kq9yFVei+W7bpwEjZCnXQ hzcc5lMLnj0kWt6SRGn2902AGRGHksSaTyYcUOaE0JRKO4vTv/XMxZfJ95kVee9O9Yin vpqc3iL851JEyQpor5z3MnJde3HvdITiBHDucZ0b1dU5ht0ghrTN1yYHRQhNO/YpPYZ4 KfhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dnyon.com header.s=mail header.b=zhwnJWAw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id em22si4221030pjb.188.2021.10.06.19.49.53; Wed, 06 Oct 2021 19:50:06 -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=@dnyon.com header.s=mail header.b=zhwnJWAw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238858AbhJGCua (ORCPT + 99 others); Wed, 6 Oct 2021 22:50:30 -0400 Received: from dnyon.com ([82.223.165.189]:43402 "EHLO dnyon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232254AbhJGCu3 (ORCPT ); Wed, 6 Oct 2021 22:50:29 -0400 Received: from dnyon.com (55.red-81-39-194.dynamicip.rima-tde.net [81.39.194.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dnyon.com (Postfix) with ESMTPSA id B059B3FD71; Thu, 7 Oct 2021 02:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dnyon.com; s=mail; t=1633574393; bh=InGqucc62ZYMr1WtkutA5FBp7KXBlrC8+tssE6HbyFA=; h=From:To:Cc:Subject:Date:From; b=zhwnJWAw0ou5BaKphNIfrtWm2WGiX8PSehems8NJwg0IeHNblYaTZIuBw99YUwjrW loA2+uLXLeC7qyFWxfOscZlgw57HWHZslp4iGKXHFMggm+pBzmk+7XZNpRqjp1lf+g ZY5TkYAg/z+6fPQDh0fFFe0RznPa44QAIzA7XMyNcUQCqfAZXiOpvVUcs9d12yc6zC 2XK8qiTOg0mKz5sQrdumOriaSgEV1eDdvnNSp375FoW/c8H7AdayKqAY/4g2Uc5QXo qSVX0L31txEF7u9+UIqdWqgbGHe4lpAkZChuPT0xC+m5E4BS8C+1ZDelfgajVbeQFh vWEyLDd5WLkvg== From: Alejandro Tafalla To: Liam Girdwood , Mark Brown , Andy Shevchenko , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , ~postmarketos/upstreaming@lists.sr.ht, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: Alejandro Tafalla , Rob Herring , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org Subject: [PATCH v4 0/2] Add reset-gpios handling for max98927 Date: Thu, 7 Oct 2021 04:38:54 +0200 Message-Id: X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The max98927 codec on some devices (i.e. Xiaomi Mi A2 Lite phone) requires hardware-resetting the codec by driving a reset-gpio. This series adds support for it through an optional reset-gpios property. v4: * Correctly assert/deassert the GPIO states * Wait for the i2c port to be ready after reset * Reset device when removed v3: * Fix indentation on the dev_err_probe line v2: * Use dev_err_probe instead of dev_err Alejandro Tafalla (2): ASoC: max98927: Handle reset gpio when probing i2c dt-bindings: sound: max98927: Add reset-gpios optional property .../devicetree/bindings/sound/max9892x.txt | 3 +++ sound/soc/codecs/max98927.c | 25 +++++++++++++++++++ sound/soc/codecs/max98927.h | 1 + 3 files changed, 29 insertions(+) -- 2.33.0