Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3001236pxb; Mon, 19 Apr 2021 20:53:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKhcrf0J9GpY55798xBir8fh3XPSt0v03GRVX8IYXzNrpggb27NDauCvwTzrlX9hoth5rE X-Received: by 2002:a17:906:3e54:: with SMTP id t20mr25321633eji.53.1618890836426; Mon, 19 Apr 2021 20:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618890836; cv=none; d=google.com; s=arc-20160816; b=oD1msyvJmFZUSFNbS1PKUK1Jes53jK71Qq2fEIs4RVQXWzNBVue6Mf4jY9MUJjl1Ww o2uzIXauf7hu3WVRBmuqSZ3toVOKG7wwBxZvEYYAPO49fOGrEfQo1CmfJvSW7+vlQgyB 0+S0OA4tdrpHbSHwZ0/gG/4a5Rat4Hi+3U9K4n4opBRYEkxaXn3UL/VWIzkNU+D/Dq1o v7kNtWHluCJihmeUmw/BPfte4km0/FYJ4FSZabvBUOsMJ+F5fzYL3paeQOc6l5JSxwLS ErcjsypfAxk/56yqBZicekQTfYWIMfz/Av9LFob8nh0THmojvq5hC5oL9fars4+g7AGF GfRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CvoIToNjQG2udbqm3ipvUBy5hlaSF8l41XQVBPJoGwQ=; b=uwT4XU5lH4a94zpqEZb11Rzq12Gg+53r+mJwCWx2nK30J7tdZ+coBD8VIUvqmf/gfG 8bEbupWFgUInGd7Jyu6WSceZwIxpuOm1TQQTug70WzDY73qp6Zeu93eG6UkRdUN6ts3P r2KMr0gQPbVgROUVNcMSIAfFwOyfEhpAdGhydZ/zsUjgNz8oqEY33NlMfz2U9SEbOkXl dwOk+dEcZ1SEoUl60CQEHLdST9Agqp0hfE9zUwftfcBo6sflDLM2W3f/wl3joplZBhvb Zupa4mfw4EGSUp6Eam+3fKSYrIaygYIobl2ZX0yNSAVHaNHUL6n3kh37nQakhcGB4A/Q q7Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="LldPUIP/"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si10468615edq.585.2021.04.19.20.53.32; Mon, 19 Apr 2021 20:53:56 -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=@kernel.org header.s=k20201202 header.b="LldPUIP/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbhDTDvA (ORCPT + 99 others); Mon, 19 Apr 2021 23:51:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:48260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229467AbhDTDu7 (ORCPT ); Mon, 19 Apr 2021 23:50:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 289DC6100B; Tue, 20 Apr 2021 03:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618890628; bh=4VHQO/2Y5QQ2o1qMGFqr4wyOmnZip6mdpmq22Di4o1c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LldPUIP/tlfnAgepSvDsITxKLbtbs42Z6TtiCBo6fVGRmvFBkc036zw5NoQY8xABm A6CxHTMN2CSKAk1atUzN551OAYKrykA2cMPuDfx2uRLPU2mYOyPQkQZ8tA9702IZlc KeWlbaUXz3P3VFH3qFIYnIlV/zNAS7iUxElzDZkfyJj3Pij2kDn139Mjmx455RVeqE 3xMC8bPrc0FHtXYu7eMLhPI1++nRYxc5FR69lfynJNPLVnyVVGnUfjEGvvec4axoaw +gw9ONYY1/Vqlcdbz+v+NK/oCQSpZXihv5jRCRP/4Lfhg72QSKMu8pnXhojc+iFyzv n8d4+VRcnp+Pw== Received: by mail-ej1-f54.google.com with SMTP id x12so35349846ejc.1; Mon, 19 Apr 2021 20:50:28 -0700 (PDT) X-Gm-Message-State: AOAM5316h72zhOYS4mdk5epbrdbiFSDLwA3OVvuvpotcYUjVyc54yYwA UVBwgebVhrXiHmoTNTPDIKbG59Q2CWG7Q6gXOoA= X-Received: by 2002:a17:906:fb81:: with SMTP id lr1mr24077340ejb.62.1618890626699; Mon, 19 Apr 2021 20:50:26 -0700 (PDT) MIME-Version: 1.0 References: <20210413055702.27535-1-zhiyong.tao@mediatek.com> <20210413055702.27535-5-zhiyong.tao@mediatek.com> In-Reply-To: <20210413055702.27535-5-zhiyong.tao@mediatek.com> From: Sean Wang Date: Mon, 19 Apr 2021 20:50:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 4/4] pinctrl: add rsel setting on MT8195 To: Zhiyong Tao Cc: Rob Herring , Linus Walleij , Mark Rutland , Matthias Brugger , srv_heupstream , hui.liu@mediatek.com, =?UTF-8?B?RWRkaWUgSHVhbmcgKOm7g+aZuuWCkSk=?= , jg_poxu@mediatek.com, Biao Huang , Hongzhou Yang , =?UTF-8?B?U2VhbiBXYW5nICjnjovlv5fkupgp?= , seiya.wang@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 10:57 PM Zhiyong Tao wrote: > @@ -176,6 +180,12 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev, > else > err = -ENOTSUPP; > break; > + case MTK_PIN_CONFIG_RSEL: > + if (hw->soc->rsel_get) > + err = hw->soc->rsel_get(hw, desc, &ret); > + else > + err = -EOPNOTSUPP; I think that should want to be -ENOTSUPP to align other occurrences. > + break; > default: > err = -ENOTSUPP; > } > @@ -295,6 +305,12 @@ static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, > else > err = -ENOTSUPP; > break; > + case MTK_PIN_CONFIG_RSEL: > + if (hw->soc->rsel_set) > + err = hw->soc->rsel_set(hw, desc, arg); > + else > + err = -EOPNOTSUPP; Ditto > + break; > default: > err = -ENOTSUPP; > } > -- > 2.18.0 >