Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1449967yba; Tue, 2 Apr 2019 09:05:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYNHF0DDXqm9+Q4S9dmTuE+8CDvjdlNlZc+umvGC2m7U/gxMrITTnhOyrVJqfV0aH8KuB8 X-Received: by 2002:a17:902:7b93:: with SMTP id w19mr2427527pll.137.1554221123575; Tue, 02 Apr 2019 09:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554221123; cv=none; d=google.com; s=arc-20160816; b=qUD9wgLjpukaULFfHFQe5990mPSC2fNB1Fa2deoREHjbUb9QEH2k4waOQHD8nNn0h3 UcaB5P8/aXvNGEhlbvisPISk3YS8s4FYAcPdVQElcSDYUCRgavfhfA1US3o9/6QKAmA3 0/qGghdVb+M77/hL4i2q+fC+iX/GBw4lBrbthpomKnwKOKJ6y517LW/De14fmdVDFELP p7/xb+zuymjEYMzMgndrx13uWuVa3ATl6Ep9pFkBiX4tHwf1HcLcnnhA8sIWwqoU0lXv YNXJsffmD1itsE9fgylV+yD5geqHecJYarmL5GcWXf8YEH4tHaur7J6LlhmclZIdyDpp JIyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=o+zmX98tXbi+xY0zAH0xz9iVxstlsGr5BVN7FYTplPg=; b=MzHrQf9Rbnt3Yi5HzsMvzplv9wZp2/IT4fvORLBA0/wJbep9a5EdvBXEZkfwsdPith A6Ui+Bexkei1Vkh4A5RZPND/lUk3aHwNB/KUnNd3LwK0wvwL/qz9r2mSWY1pBU8AnEJQ PDVMyUeNoGbiqPVJO1gDNLbNIy5gZM5BJijpkRmcPfk/jIqU+wViarrkGtPIxkDUQGmZ w6akx/N19jznuZvjD8Rncbts01mxFXodkB8dvAaF7gRJRNlnTshWv+z4T52oc1SzWjwA LnLPsso+yc2CBNMCr33zFWzygkq3xtOnuqRFKhuePWRt1sz4LC3kwfVC2WbLbC7gFv96 QSPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AJO3IU5H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e96si11369621plb.123.2019.04.02.09.05.07; Tue, 02 Apr 2019 09:05:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AJO3IU5H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730708AbfDBPxY (ORCPT + 99 others); Tue, 2 Apr 2019 11:53:24 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40393 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbfDBPxY (ORCPT ); Tue, 2 Apr 2019 11:53:24 -0400 Received: by mail-wr1-f66.google.com with SMTP id h4so17291921wre.7 for ; Tue, 02 Apr 2019 08:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o+zmX98tXbi+xY0zAH0xz9iVxstlsGr5BVN7FYTplPg=; b=AJO3IU5H8LYqrmSculMBB1AmkO3SfwVlMi2lm/9y1gbOsZOy3miNngzfZVXCfQo+e0 8OKYNV2Na5WEjJVUwYbYX0NEkg8aSPgtLXItehpIej4WM1Ex+jn4RcIiQ3E+bDeH9lHd 5orCz04DjsDM6IzfJY3lG9IvBMJKIoJVIAllU= 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=o+zmX98tXbi+xY0zAH0xz9iVxstlsGr5BVN7FYTplPg=; b=KHBSIhwX7lf1GrHFjy06zG4O8i2TDLRM3K1k4/FYrmy4i37jGmu2xHPYQwAb9a6Fhw AhYEU3aiMAsQ99wErw9228+TyUNUBzc8q3FoYnmCdX6LWGlKNgjSt4btODSW8rojjVeP B7Bx6WzYChQbHLtNfEICcgTZIIPK/bWWAw7Y1MopRkspXmSLYmv+v3L7gfjKA23WPvUl RTV8iPU1yGEsRabL5thgqwuJjMkdDugqtyCItBSRQ+uiHlz+/pGrxTGKNcJf1HZ4SxJ3 R5UtjdzIEykv7Kg5XYVIt4vfvQnsak9/hV93hDND2ReGzeVyLhemKMWoQhAa7rk8a1xB tO1A== X-Gm-Message-State: APjAAAVQFi+mL7nZ4iNKPuB1EuZNZQOX1CBy5O3mFPGH0Zlc8VPEmDro cwhd0v5VM6a7rKBkR1Uwjusi9riq83mxtYoPoVQShg== X-Received: by 2002:adf:eb84:: with SMTP id t4mr48722512wrn.100.1554220402591; Tue, 02 Apr 2019 08:53:22 -0700 (PDT) MIME-Version: 1.0 References: <20190401205519.34023-1-fletcherw@chromium.org> <20190401205519.34023-2-fletcherw@chromium.org> <20190402050637.GW2059@sirena.org.uk> In-Reply-To: <20190402050637.GW2059@sirena.org.uk> From: Fletcher Woodruff Date: Tue, 2 Apr 2019 09:52:56 -0600 Message-ID: Subject: Re: [PATCH 2/2] ASoC: rt5677: make ACPI property names match _DSD To: Mark Brown Cc: linux-kernel@vger.kernel.org, Bard Liao , Jaroslav Kysela , Liam Girdwood , Oder Chiou , Takashi Iwai , Curtis Malainey , alsa-devel@alsa-project.org, Ross Zwisler Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 1, 2019 at 11:06 PM Mark Brown wrote: > On Mon, Apr 01, 2019 at 02:55:19PM -0600, Fletcher Woodruff wrote: > > The rt5677 driver is using the wrong property names to read from ACPI. > > Update the property names to match those from _DSD, so that the correct > > GPIO pin numbers are read and that plug-detection works. > > > With this patch, plugging and unplugging the headphone jack switches > > between headphones and speakers automatically. > > What makes you say that these properties are wrong? Are you sure that > this isn't just some other systems using different ACPI properties given > the poor standardization for ACPI? Your new ones look like they're DT > properties pulled into ACPI while the existing ones look more idiomatic > for ACPI. The code to read those properties was originally added by commit 89128534f, specifically to support the device I am trying to fix, the Chromebook Pixel 2015. Admittedly, it's possible some other device came along and matched these property names since then, but I'm inclined to think we might be the only ones. > It'd be fine to add your new DT style properties but this > might break existing systems. That said, I agree it would be safer to use the idiomatic ACPI names, and then fall back to the DT style names if the idiomatic names fail. Does that sound reasonable?