Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8195595rwi; Tue, 25 Oct 2022 03:51:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7zdZImTdhAci5GkpB2VfZwr/vj/Wf8V60aj5isMOqFQ+DslUVoCFXNuVYO+NnmKsSlH51l X-Received: by 2002:a17:90b:4c48:b0:20d:5c55:b8a8 with SMTP id np8-20020a17090b4c4800b0020d5c55b8a8mr44701590pjb.207.1666695049937; Tue, 25 Oct 2022 03:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666695049; cv=none; d=google.com; s=arc-20160816; b=fs71SD/xumdYWQz9fKHzav4TqlIbRvlxgmKKnVRORtDX7a1FDX1rkI6xXm3Oa8HkeF 4+JzvdBhIQpbqGrcsY/SsLGI2CaCAdHY8CN/ya22+mRuLpkUNaTN3/fNrA/OphKFTczV EVEWIR1wzesoF66lTKhYR49rq26qCAv5DBN5N1Rqr/VknsE9hiMrgvvdT7+SU1QbtL8o mqIV0V/jbJa+I9D7q+l8XxJg637MyJiNb4KhcDZl7PcI7AtnaPqEk1LnWccaxjZkLKfr jLYRCCyyZI7k5VQ6httxprxmvz/J2PiQ+NZnB2VDYTIQng0jY0iPrzGtTjWLnLA3JP9g ZKfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LPiU63yaZKXaHZ3etauWCSt0BuuIBXfNkiKu2zhM6VQ=; b=RbWu+4Rd0WOWTtssu/IT6OhxkTht3zzk8dD9p/k3lzbV6BzIXtYxSJDkwFR98FGgQH I/sZc+E5t78r9vH0Y3yrtdKFpUMU3i1XUCKoA74iO4AP9vDC3PZ33+AaVMAMTMR/qNbK npecDeRa1KZxkgzYXSxp4YCD3T2NM1xedgEuGINcWDW0YqdQalOXJ4uog+Ykzs0KlkL1 Ako0CWyjYZD9FTKOzp0FTOzKctbrXJ68rtiX3ifVafEbUlkQh4YAzEUEopEgUdXkuB6K EXMOWOYso6Lw/YHDwR43zPMdLinocCvCtcr7xIUSuTtIVgcL16t2VJv6MntbJeCSCAAC GI7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iOlw4dlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 127-20020a621985000000b0056362152f8fsi2523800pfz.253.2022.10.25.03.50.38; Tue, 25 Oct 2022 03:50:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iOlw4dlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231945AbiJYKOY (ORCPT + 99 others); Tue, 25 Oct 2022 06:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbiJYKOB (ORCPT ); Tue, 25 Oct 2022 06:14:01 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25008183E23; Tue, 25 Oct 2022 03:06:28 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 576B66600363; Tue, 25 Oct 2022 11:06:26 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666692386; bh=VUGneu/GkKsEmT+PsR4f+B8IGy/eQwLdVzDz2FlK9lc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iOlw4dlTjzXRVQ1CT2YdYh77UHzv1fjxXQd5xg4emPrpVJc/2t++4xZYC8XA3BDPU UBTj7AMjXsbclKU3CP8qhVXAuFdoJxcW5qgbK+IAiTwmz+55/LdbwFTwx9wCInlBoa FxfMnPUv/fSYvpiXfnd05I+kLzzvugqV3AduZyvdbjqGlZhqnmGZTpMpAiuZY8sG9g JZ3dtrHD0kIdGjaBwvQU2gEIQaV9oMioeJXnk8WsYV+eyP+LFUzXBcxxBGL14+l2PH 6DPxutnTohLkzhbfocvwg1bb9Qas69D66ofJOsDKb/rymnR86W6/ga8dnLR2wei41r IRzWN9T22iBfg== Message-ID: Date: Tue, 25 Oct 2022 12:06:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v2 2/4] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Mark Brown Cc: kernel@collabora.com, Derek Fang , Krzysztof Kozlowski , Liam Girdwood , Rob Herring , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221024220015.1759428-1-nfraprado@collabora.com> <20221024220015.1759428-3-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221024220015.1759428-3-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 25/10/22 00:00, NĂ­colas F. R. A. Prado ha scritto: > The rt5682s codec can have two supplies: AVDD and MICVDD. They are > already used by sc7180-trogdor-kingoftown.dtsi, so document them in the > binding. > > Signed-off-by: NĂ­colas F. R. A. Prado > I also don't like these uppercase supply names... I wonder if it's worth changing the driver to get "avdd" *or* "AVDD" (so, if "avdd" fails -> backwards compat)... ...this way, we can change the devicetree to use the lowercase names without breaking abi. Of course, this commit would need to be changed to document only the lowercase supply names. Driver-wise, we have a rt5682s_supply_names array... we could do something like: static const char *rt5682s_supply_names_legacy[RT5682S_NUM_SUPPLIES] = { [RT5682S_SUPPLY_AVDD] = "AVDD", [RT5682S_SUPPLY_MICVDD] = "MICVDD", }; static const char *rt5682s_supply_names[RT5682S_NUM_SUPPLIES] = { [RT5682S_SUPPLY_AVDD] = "avdd", [RT5682S_SUPPLY_MICVDD] = "micvdd", }; for (...) assign_supply_names; ret = devm_regulator_bulk_get(...); if (ret) { for (...) assign_legacy_supply_names; ret = devm_regulator_bulk_get(...) if (ret) return ret; } What do you think? Cheers, Angelo