Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1530429pxb; Thu, 4 Feb 2021 15:54:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjpuDTNPRfytolOa1brwCzCq67Gaq+1cGoIpIBLLpR+/L7qC8rqFomqSM5wXLps+THmrk7 X-Received: by 2002:aa7:c24e:: with SMTP id y14mr1032855edo.30.1612482856138; Thu, 04 Feb 2021 15:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612482856; cv=none; d=google.com; s=arc-20160816; b=iwUZcy1c2UxM4dboM7r74unLaJoxg2+Jo19UgLXIA5tp3dmybTJYfqDeq5qsliQYmY gm5w8nMA135zFHoNBJKqnqZQzZUJBBoiKa6sgsrDTFEF54LDqfBK7bDpCPb1VhKzgNpt fbf1RQNs40ZSBMw/VMDvTCaR13u6lWMqmO1gQMB8H//2g6VAkrYbMTxG6zCv3/f3yDcF t1tgXLnneF2YKFGievTt7jg8cbSOIB7rAeidXwasEXEaybS4q3ZYDOwlZlGFyMy85Cx+ LWr9Lsol7IUIq0OHVUCUfjNVIQOT3Ptqtjugv6KCBBJJWI/+aQhIAZUNS32skkbnaLv/ nY0Q== 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=O9zlWR0Ptd4cBCm9i9fSIyawVum/k/FT8xpGrME5Bgc=; b=zqJUqxKCUupeFzRn1lIaqhcopUuTbZinRIdT4CMlE07u12cLVLTlBTN3D44+AiRVC/ rtBaWx861hcoObtl/e2osnvIAyHieSrNMe3jziOhAGsd6Mbp8oSs0fQoteyCAfqMweEH aoRGB9AvwIfjseItDxMwZoDp+smVVhfZF6YtotndC5IAQd0TkQorYKCKJ445vvS6K687 FF63JSW8NfcgfvVB8AoGTqv7cTitqpnvlzj7ajvcF5izSvNjNfBYF5DI7au9WHaiy/H5 pQ2NgOpu8xzUkisb6RWUznMVDawwKtY3XLDDwx0aDai1J6tsEZuwPNR0N61HypfiVmZH uqQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G2N2NyLO; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si4079045edc.111.2021.02.04.15.53.52; Thu, 04 Feb 2021 15:54:16 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=G2N2NyLO; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235845AbhBDLbR (ORCPT + 99 others); Thu, 4 Feb 2021 06:31:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:56312 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235578AbhBDL0i (ORCPT ); Thu, 4 Feb 2021 06:26:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612437911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=O9zlWR0Ptd4cBCm9i9fSIyawVum/k/FT8xpGrME5Bgc=; b=G2N2NyLO6zN3nTTufxjhDxvkt+6qkE/COsMDbjpNvTi4fuh5UYYnRG72Neg1SPpj8MjnHF 5uWIvv8gOpXAg0XsI2rDYoRBh8HgGCs2dC5KPdLlvEF6LR/KpYgVrvxRHJzeXdw0QsgEVG C0BoJTxX7VwI4QXrlP4QwBEdnZw2rEk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-164-F2sYatScNCqx_MCzhUf3AA-1; Thu, 04 Feb 2021 06:25:09 -0500 X-MC-Unique: F2sYatScNCqx_MCzhUf3AA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B2E87107ACF5; Thu, 4 Feb 2021 11:25:07 +0000 (UTC) Received: from x1.localdomain (ovpn-112-112.ams2.redhat.com [10.36.112.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 72ECD5B698; Thu, 4 Feb 2021 11:25:03 +0000 (UTC) From: Hans de Goede To: Lee Jones , MyungJoo Ham , Chanwoo Choi , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown Cc: Hans de Goede , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, Andy Shevchenko , Charles Keepax , alsa-devel@alsa-project.org Subject: [PATCH v4 resend 00/13] MFD/extcon/ASoC: Rework arizona codec jack-detect support Date: Thu, 4 Feb 2021 12:24:49 +0100 Message-Id: <20210204112502.88362-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Here is v4 of my series to rework the arizona codec jack-detect support to use the snd_soc_jack helpers instead of direct extcon reporting. This is a resend with some extra *-by tags collected and with the extcon folks added to the "To:" list, which I somehow missed with the original v4 posting, sorry. This is done by reworking the extcon driver into an arizona-jackdet library and then modifying the codec drivers to use that directly, replacing the old separate extcon child-devices and extcon-driver. This brings the arizona-codec jack-detect handling inline with how all other ASoC codec driver do this. This was developed and tested on a Lenovo Yoga Tablet 1051L with a WM5102 codec. This was also tested by Charles Keepax, one of the Cirrus Codec folks. This depends on the previously posted "[PATCH v4 0/5] MFD/ASoC: Add support for Intel Bay Trail boards with WM5102 codec" series and there are various interdependencies between the patches in this series. Lee Jones, the MFD maintainer has agreed to take this series upstream through the MFD tree and to provide an immutable branch for the ASoC and extcon subsystems to merge. Mark and extcon-maintainers may we have your ack for merging these through the MFD tree ? Regards, Hans Hans de Goede (13): mfd: arizona: Drop arizona-extcon cells extcon: arizona: Fix some issues when HPDET IRQ fires after the jack has been unplugged extcon: arizona: Fix various races on driver unbind extcon: arizona: Fix flags parameter to the gpiod_get("wlf,micd-pol") call extcon: arizona: Always use pm_runtime_get_sync() when we need the device to be awake ASoC/extcon: arizona: Move arizona jack code to sound/soc/codecs/arizona-jack.c ASoC: arizona-jack: Move jack-detect variables to struct arizona_priv ASoC: arizona-jack: Use arizona->dev for runtime-pm ASoC: arizona-jack: convert into a helper library for codec drivers ASoC: arizona-jack: Use snd_soc_jack to report jack events ASoC: arizona-jack: Cleanup logging ASoC: arizona: Make the wm5102, wm5110, wm8997 and wm8998 drivers use the new jack library ASoC: Intel: bytcr_wm5102: Add jack detect support MAINTAINERS | 3 +- drivers/extcon/Kconfig | 8 - drivers/extcon/Makefile | 1 - drivers/mfd/arizona-core.c | 20 - sound/soc/codecs/Makefile | 2 +- .../soc/codecs/arizona-jack.c | 577 +++++++----------- sound/soc/codecs/arizona.h | 44 ++ sound/soc/codecs/wm5102.c | 12 +- sound/soc/codecs/wm5110.c | 12 +- sound/soc/codecs/wm8997.c | 14 +- sound/soc/codecs/wm8998.c | 9 + sound/soc/intel/boards/bytcr_wm5102.c | 28 +- 12 files changed, 325 insertions(+), 405 deletions(-) rename drivers/extcon/extcon-arizona.c => sound/soc/codecs/arizona-jack.c (76%) -- 2.29.2