Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3672819lfo; Mon, 23 May 2022 11:01:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+HmIx+GrBldkOm+ufbQDeZhGS1vnEXC0bugaVmFDpHTknUpO9h+vKNhJbCWZxdRCGQHuP X-Received: by 2002:a17:902:f605:b0:14d:bd53:e2cd with SMTP id n5-20020a170902f60500b0014dbd53e2cdmr23582521plg.164.1653328872642; Mon, 23 May 2022 11:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653328872; cv=none; d=google.com; s=arc-20160816; b=gX1jcwhOLRMpXZCFnPAuMIzYR6iS8ebtpANGvepJyx3BTzjYwJqJaKp9jXXnv7c3HW hv1E3PKosWd3KVgxhtnk3BPnu+U29is8ycb2BLt39hmbAbpEUrs1mav9HHDHqdqDCAlM 9kfk8i7ziTYsgw2Yt7Gr73IVxXLcBmcHev12slEfkNAm1zAnVuTNe1kcfmf/+WWcZel3 aZ6GPz57aad25Flxv6fS25UvdFdlF6QyBea3S/84M3chwy2D07aKfzt+xMprHHX4DSX5 PG3WONxTyk9K6e4X9hUAchsorP35E76X4uf3FLXmeDPmeZ02dl+6u0rOsd0RZQJn3FNN NlBQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4CscU5w8mjycfc4ig9DJwF6EJF8bWDxcKO7NRWCXVKE=; b=mdY6AN59Cj3DMLzYYSJk/NWgpDro5dLuCycfzJK86VnGVz0rmXp7e6fY06//yIWTty kd4FvFBPLegUzo4a4vMgpcQYNBdsCL1RHTZDDs9qIriKjiUflmfZQZ3qdY9nMlkc22g9 6SXfcYJJ7tHXngP1vb3mI4RPObCEfxp+FPvmf3CLGgva3+Ywr3og4HFp/Gp4ToeTbdDM JGZ2CtGM1WQBsThx8vGWDElUE4VqxYnJkiNk8MWS1b4FE0vS1bK5O8PnpH6fJamWWy9M 0Zj0GN43qhf7bMSUpeeB7M/rf1t1Z9ATHk6gW1hbh8u84f+c+KLoSS7BZ0qzdEzk+pmE hguQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g2SOlOHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j5-20020a170902690500b0015f3d889431si10397888plk.446.2022.05.23.11.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g2SOlOHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0976E3D480; Mon, 23 May 2022 11:00:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243372AbiEWR6p (ORCPT + 99 others); Mon, 23 May 2022 13:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242379AbiEWRc2 (ORCPT ); Mon, 23 May 2022 13:32:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACB4D72E1A; Mon, 23 May 2022 10:27:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7772660AB8; Mon, 23 May 2022 17:27:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 806E4C385AA; Mon, 23 May 2022 17:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326831; bh=7y2CQznIYaNLnJfzqbrtnBIEIajSKZwOQDySGCkC2mA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g2SOlOHaAsz4Y0GT5+n/UfFWTr8aXZB010Jkx8UXG3wGFK0OUb7hVYWD+lsHcLGHn mBoC3d9KyQWi5CMgmmQuwkK6PRSoslimOMaOnmgtAo5uBDzHxSe24F+/ft6tUAB3Yy AcvngXc0y51LcinLmQODbDvVhrxL0SyKzMm4a1wc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Horatiu Vultur , Kavyasree Kotagiri , Linus Walleij , Sasha Levin Subject: [PATCH 5.17 073/158] pinctrl: ocelot: Fix for lan966x alt mode Date: Mon, 23 May 2022 19:03:50 +0200 Message-Id: <20220523165843.050863028@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165830.581652127@linuxfoundation.org> References: <20220523165830.581652127@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Horatiu Vultur [ Upstream commit d3683eeb9d2b4aa5256f830721655ef2ee97e324 ] For lan966x, the GPIO 35 has the wrong function for alternate mode 2. The mode is not none but is PTP sync. Fixes: 531d6ab36571c2 ("pinctrl: ocelot: Extend support for lan966x") Signed-off-by: Horatiu Vultur Reviewed-by: Kavyasree Kotagiri Link: https://lore.kernel.org/r/20220413192918.3777234-1-horatiu.vultur@microchip.com Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/pinctrl-ocelot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index 370459243007..61e3844cddbf 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -129,6 +129,7 @@ enum { FUNC_PTP1, FUNC_PTP2, FUNC_PTP3, + FUNC_PTPSYNC_0, FUNC_PTPSYNC_1, FUNC_PTPSYNC_2, FUNC_PTPSYNC_3, @@ -252,6 +253,7 @@ static const char *const ocelot_function_names[] = { [FUNC_PTP1] = "ptp1", [FUNC_PTP2] = "ptp2", [FUNC_PTP3] = "ptp3", + [FUNC_PTPSYNC_0] = "ptpsync_0", [FUNC_PTPSYNC_1] = "ptpsync_1", [FUNC_PTPSYNC_2] = "ptpsync_2", [FUNC_PTPSYNC_3] = "ptpsync_3", @@ -891,7 +893,7 @@ LAN966X_P(31, GPIO, FC3_c, CAN1, NONE, OB_TRG, RECO_b, NON LAN966X_P(32, GPIO, FC3_c, NONE, SGPIO_a, NONE, MIIM_Sa, NONE, R); LAN966X_P(33, GPIO, FC1_b, NONE, SGPIO_a, NONE, MIIM_Sa, MIIM_b, R); LAN966X_P(34, GPIO, FC1_b, NONE, SGPIO_a, NONE, MIIM_Sa, MIIM_b, R); -LAN966X_P(35, GPIO, FC1_b, NONE, SGPIO_a, CAN0_b, NONE, NONE, R); +LAN966X_P(35, GPIO, FC1_b, PTPSYNC_0, SGPIO_a, CAN0_b, NONE, NONE, R); LAN966X_P(36, GPIO, NONE, PTPSYNC_1, NONE, CAN0_b, NONE, NONE, R); LAN966X_P(37, GPIO, FC_SHRD0, PTPSYNC_2, TWI_SLC_GATE_AD, NONE, NONE, NONE, R); LAN966X_P(38, GPIO, NONE, PTPSYNC_3, NONE, NONE, NONE, NONE, R); -- 2.35.1