Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11985637pxu; Fri, 1 Jan 2021 05:27:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNlcBIqL8A7o2yyFitYjVAFLOD7hNITU0DRJECfejyTjRry3sFhoNeBITkoLeBKb8oWI7C X-Received: by 2002:a17:906:81d6:: with SMTP id e22mr58092877ejx.476.1609507657386; Fri, 01 Jan 2021 05:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609507657; cv=none; d=google.com; s=arc-20160816; b=Pg8PU8VZF7UAmkcZ3qRqpRgjJJc9rU7YwpEgng1eDcord4iBCq7cJr5NXMMt1rA4Vk ZySg1ieG8RHIB+SUDy4LHPLNg01TMSV8EuLM9/YNmn0z1ktSPUqEa15DRkiSS8T7RS1V 7ayDzZFxdKBwdmJnbksESIzN0u09D0hmCLqyj/QUXHEGgpckryc/OgDUuyY5WEDVSbP1 wxulpNus9xznxay2JUL8pPQsgClbGs6H5pJZkpZ5H1yWjZrsMCsVFx007X76xMWbxsEH 7wi6oQzZlxuP9bTff22lqXXWL2NltRx72Sld3Yas3W/6KYGb1C4Gpaq2uBn7beIjBogz TB5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=NlUf3RFrTX25sJTt0DKiuNwG0dF3j8VQJM9/nMs04SU=; b=Ay64ErCqkq3gXTuFN12D4YEHFpsMhN3PPYV9vT7s5FRnvvlObio2TUA/MDDk8F1Y1K Kj55UgfzySxxdfcEjwbhV86l0f+XMYykepPEHkaNH8Gu53JSFy5nIUvnQWb5d7uszFYi jNrdXFi21dDqIwKjAh5V77gZb/c55gKxohm4hH9qKX+R/HeQ6J4zfaM/lJfU25IdsSr8 c6E2hHrl9gLtfo423levn1kG4+2BcXPOORNTK7QS2u3i9GqFK3b0YHKGeA1V1TCmwTVD hSlGb8YcHITIfKgLmi1qIS+kimJCI8kkv84QuwPwCNmO82oUjpvSS1EHp7BY4/Y2kBZA HjCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WgYUE9OT; 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 k26si26220296edx.279.2021.01.01.05.27.13; Fri, 01 Jan 2021 05:27:37 -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=WgYUE9OT; 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 S1727093AbhAAN0H (ORCPT + 99 others); Fri, 1 Jan 2021 08:26:07 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:37676 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727005AbhAAN0G (ORCPT ); Fri, 1 Jan 2021 08:26:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609507479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NlUf3RFrTX25sJTt0DKiuNwG0dF3j8VQJM9/nMs04SU=; b=WgYUE9OT9xoy6yeFdIlkqZtni9/iNJ4hCGuJ+JdNP3p91nuK2NlFTsuGGC/8vYXpuPy/Bk GWn3JMuzXNGdjHQQBjhLE6+JdCjNQyKkH08X0nG5yTI1UDSDwJT659G78Ec5vdrH+Jd+fG sNFDdGOHZS80CJBQFF5rQ8vAO+aPqDk= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-466-qNX_sdWDMZabIIQnAdrG-g-1; Fri, 01 Jan 2021 08:24:37 -0500 X-MC-Unique: qNX_sdWDMZabIIQnAdrG-g-1 Received: by mail-ed1-f69.google.com with SMTP id dh21so8250231edb.6 for ; Fri, 01 Jan 2021 05:24:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NlUf3RFrTX25sJTt0DKiuNwG0dF3j8VQJM9/nMs04SU=; b=DTsIkCaP9eU9TzFNzrHs2tTSE4GmrKgwCEXKgothcNXbmFDDrO6pkxjgoRvaIuy6dB ozRPL6N16V8XYJ0D6ue3VjKoeJRENz34EeEE6Ql2yGeUa1CCuyiDYawoKNNwOf2RAOkE G4wUcSh9htDYVipEJ+AoIrByZJLFuo8Dy4JAB5Lu4EwOWKLp4bhUdwOOblroV08S34UJ TWwjpv7Qkccz1k/YFy9QVeqWki/n/cpdeDHL4C3pRVQFeVeYV6yYlCd1nM57mokjSoOg WTWhqZF0+6VBJym3gdCvf/TckepEpRhJzT8x+ehJwB46AZvgkE4Cwoq8NjZuYcTZAlaQ GCiw== X-Gm-Message-State: AOAM532YszUMr8l4RBMhxzyNgP8563QXPvMh1Me3Vu2/BbNvKpu83kur YRTwMmBJbGV9mXZTY1VAoRyCWqH4exZsDkZ7yegPMSTCDTxYs3hO36BgT5QPSK888rH8Pb8A8iy 78A+GLNnh2JysOVA+JhnaEfk+ X-Received: by 2002:a17:906:2c54:: with SMTP id f20mr57560680ejh.318.1609507476425; Fri, 01 Jan 2021 05:24:36 -0800 (PST) X-Received: by 2002:a17:906:2c54:: with SMTP id f20mr57560669ejh.318.1609507476213; Fri, 01 Jan 2021 05:24:36 -0800 (PST) Received: from x1.localdomain ([185.200.132.250]) by smtp.gmail.com with ESMTPSA id r23sm20864486ejd.56.2021.01.01.05.24.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Jan 2021 05:24:35 -0800 (PST) Subject: Re: [PATCH 01/14] mfd: arizona: Add jack pointer to struct arizona To: Mark Brown Cc: Charles Keepax , Lee Jones , MyungJoo Ham , Chanwoo Choi , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org References: <20201227211232.117801-1-hdegoede@redhat.com> <20201227211232.117801-2-hdegoede@redhat.com> <20201228122138.GA5352@sirena.org.uk> <44f84485-8efc-39f9-d0a7-cb8db2ea3faa@redhat.com> <20201228162807.GE5352@sirena.org.uk> <20201229130657.GN9673@ediswmail.ad.cirrus.com> <19c2d056-4f71-2c4c-c243-cdcc0115876c@redhat.com> <20201229150807.GF4786@sirena.org.uk> <07037a8a-1d35-362e-1b82-b73b81f7c6ac@redhat.com> <20201230133803.GC4428@sirena.org.uk> From: Hans de Goede Message-ID: Date: Fri, 1 Jan 2021 14:24:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201230133803.GC4428@sirena.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12/30/20 2:38 PM, Mark Brown wrote: > On Tue, Dec 29, 2020 at 04:33:09PM +0100, Hans de Goede wrote: >> On 12/29/20 4:08 PM, Mark Brown wrote: >>> The whole purpose of creating sound/core/jack.c is to abstract away the >>> userspace interfaces from the drivers, most audio devices shouldn't be >>> working with extcon directly just as they shouldn't be creating input >>> devices or ALSA controls directly. The missing bit there is to add >>> extcon into jack.c. > >> So what you are suggesting is making sound/core/jack.c register the >> extcon device and then have arizona-extcon.c talk to sound/core/jack.c >> and no longer do any extcon stuff itself. > > Yes. Ok, so this seems to be the same solution as which the opensource.cirrus.com folks want in that both you and the opensource.cirrus.com people want to change the arizona-extcon.c driver to be changed to stop reporting extcon info directly itself and instead do all the reporting through sound/core/jack.c. Where the thoughts on this seem to differ is that the opensource.cirrus.com folks seem to be fine with dropping extcon support, where as you suggest to extend sound/core/jack.c to register an extcon device and have it report extcon events. I'm with the opensource.cirrus.com folks here that ATM it seems best to just drop extcon support since the only user is Android, which also supports the input_dev API. If the need arises we can always add extcon-support to sound/core/jack.c later. So I'll start on reworking this patch-series to change the arizona-extcon.c driver to stop it reporting extcon info directly itself and instead do all the reporting through sound/core/jack.c. Regards, Hans