Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1415458rbb; Mon, 26 Feb 2024 08:33:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUplXSDwXZoPcZ0gGPrNR876t5UFK9jmBm/taOBL2a2XmKjBXe8/24gmsPMrO9s1hWf1S/NXWzOVK+gK57neE61wgRFl9EPKFnbrIu+Qw== X-Google-Smtp-Source: AGHT+IGxXUaETk8Arbw+G1S5vz2Pnf+p78Lakj8rQiguL8LNo2tLIyO9ibbFeLmH+WTWJMl6TMeg X-Received: by 2002:a05:620a:16d0:b0:787:c780:a767 with SMTP id a16-20020a05620a16d000b00787c780a767mr5852438qkn.9.1708965195550; Mon, 26 Feb 2024 08:33:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708965195; cv=pass; d=google.com; s=arc-20160816; b=pZLnBd7AcRBEODgGSjvVyLAMPbW4QAb7ZvP5FA8xApZ4xhWAbAITjNk4f9CnQCFBB2 SMbX1ZLWPiVrXt43KBh8tMf15/NDHx2V3j1OkYdgtUj/E7L645yQcepC05V6gsWVYLbB 1yopSY/2aWVbzvr7Js78YS0h/NslBYoqH1oxs0DNU2H4oBxq6bMSAkPhZJSybaUFjkJv d8tC92kBFjmmjRQGk3eN/5zLoWbLk7DgDrwUs4rreJq/3mWo8YEJBGGfBgnut55NISJB mdtu8dx/XTvjx2lmuPiGuS0z7Ma/Q2ntQcQyAeWq9LoOeuf/QDZpqmHJ7uqSkkgSv0lV nJBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=pKzSA2YeBsQVoAG/zw8293MLkS2N7cW4zmSYPw7lkcI=; fh=VeRBZ2rb7to6PQPwQP5TdUsRoX/JHhoycA+ZYqtnVWk=; b=KHIX0MT3FMcj4xcnY+1+uf9N9RQIgQg0I2OuBywUaef9Rpn7qx6VVqhO4OAMCqyy5o CoadKl6EHJhXIjBf/CqTsWBVDedA3UIAMlYEyD3lUdjmUEXoPtSK84pDfrAaKVKl6iss csY7ZjHLEWmiIia/uFk5mhdG9UqHrlPqL07lH2kRWzCihxW6Loxx40KUwct/OcTsXuQ4 89btexCnXLpW8hyFHGp3yclNKnru9p7epLngW1cpCIrqMemzpcV+b7p9jpbrfTyKnSlU UEZsfkgrWZB6OAUbfGPV3Cu1+TjuJqWX0K9lPPnijp20T7cUjjUV9AtNqrBSqb/CyzGF NrnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WkwIMLu2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g28-20020a05620a109c00b00787b8d1a7b6si5293535qkk.560.2024.02.26.08.33.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:33:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WkwIMLu2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AFAA01C2A7B0 for ; Mon, 26 Feb 2024 16:32:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A144812C7FA; Mon, 26 Feb 2024 16:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WkwIMLu2" Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F9A112C7E2; Mon, 26 Feb 2024 16:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708964714; cv=none; b=laExBUVHsqEk+sNUcBGIQpSKWVHejDiyxfvgXO1i1Hpjguvb6Pkabse7OIeNQuilSKNM/npJphDm4iSKUqfze6tIa0VdBC1hgGs3zrz2esS85zE8TzezbNxKk79dwfVfvepzI+bShkiylRygdpi4BzBnAI9f01rXFb4K9bq6rXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708964714; c=relaxed/simple; bh=Zha9MTer1+ivlDWWnbhfFfwPZpnIbtl+PNMA/+71lL8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fjioWndvyblWHrtlKdY4NGcdspzidyiSrnK2ttxByA25+jixm6OJ1Mb94AdkRvN3js0OY3lZLQQJRSI+hSE1Dt4nLIIBm7q1R6iMBPR/pzYVTYU9K1V9PCTpLTb2OsrJA9aOrImCm9bipetPG/cfdqtWaviLgt315SRzcPwh0rM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WkwIMLu2; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5d4d15ec7c5so2573405a12.1; Mon, 26 Feb 2024 08:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708964713; x=1709569513; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pKzSA2YeBsQVoAG/zw8293MLkS2N7cW4zmSYPw7lkcI=; b=WkwIMLu2eIcFchAz4W3MRuLcIYmHKhJzW1USCUy9ahAIwtcSf6BJVmiRyj252igIwC Knezu0q7rSHZIPm9jY8QKRj8SyH/9xZUB26IDDcZnWhpXUtXxxB4VlBWV6ZzN+cCtKhJ 9xGZCzEQcne5f/cJpy43kD02sY2rknF2nWNnz1g+pOMOrhGq6wmci+tISDskhtUhl2+d fOm23YpG+1P8AE2IZh+M8AYz2PfXSIDWczl4Ac7EvyYIsLKXPzaKZwoswWQo3jQj1QIr iDk//FVdh9TCsPFSGlUI8QH1iKDV5W2F5dH/E2Krt8s/XcA6yyavJC4qxSpvJfYPoZJf 551Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708964713; x=1709569513; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pKzSA2YeBsQVoAG/zw8293MLkS2N7cW4zmSYPw7lkcI=; b=BYaKzVcwUKanuziAz6xjJUOKKvXhmKAVB5eqfd4qpJJh8XxBx9vKaECnkVP/7s/fAd 9gUDuLJpaRV6gG7cnmnH4+8t0CXDchmp+B26D3lKqvMXf5k1/Nxa6P0NUsfTtuW8gv/j eQFucWmidt0zbxSrmkyTibaxjNVdmAQxzTfPUGbz5MthQnKHixr/fsXHaKTbhRvUHx4K 0YmKBpzFgGBFbZM1ZzxgD705hoqM6EAtwUU7SJKYhEUOA2gTUzAqw4Yf+fFUCbmu6Y+L 6WT8HVk/m5v/3/PqSdfgNSoeP0lPRVTGJA1HeoQaCD61vJthBYygqcjJdb2gj1AZchjg YRgA== X-Forwarded-Encrypted: i=1; AJvYcCVw7sohP+Ac9jS+gvF9YuEa0LxG67TSTYqFK2Rhq4wkUKg192Yz9u42f1NdCqyJYFcHk/BGei8y5OAz6RQ6205q92eKZi/b2b2D+YVi3am29L6BKwjdhCXYz3Q4bto3tIkz+4Q9 X-Gm-Message-State: AOJu0YwTNU5GQ+29shaUKEkIOVVlT2yiDM78/9nYwE59XYNCC9SIELYp Cou9303sfJCWhzCA5vuEcacxI9kEHSDo5KKOut/hdtRjlKFT3NG42lFzbgUtQqwqku9qVdB2UWc qNPrXWVQYaeWujRu3r7Pfloe7hyXUSgV0Kmw= X-Received: by 2002:a17:90a:ce97:b0:29a:1ed5:18a2 with SMTP id g23-20020a17090ace9700b0029a1ed518a2mr4659219pju.47.1708964712608; Mon, 26 Feb 2024 08:25:12 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240224203349.1358064-1-robimarko@gmail.com> In-Reply-To: From: Robert Marko Date: Mon, 26 Feb 2024 17:25:00 +0100 Message-ID: Subject: Re: [PATCH net-next] net: dsa: mv88e6xxx: add Amethyst specific SMI GPIO function To: Andrew Lunn Cc: f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Mon, 26 Feb 2024 at 14:57, Andrew Lunn wrote: > > On Sat, Feb 24, 2024 at 09:33:09PM +0100, Robert Marko wrote: > > The existing mv88e6xxx_g2_scratch_gpio_set_smi() cannot be used on the > > 88E6393X as it requires certain P0_MODE, it also checks the CPU mode > > as it impacts the bit setting value. > > > > This is all irrelevant for Amethyst (MV88E6191X/6193X/6393X) as only > > the default value of the SMI_PHY Config bit is set to CPU_MGD bootstrap > > pin value but it can be changed without restrictions so that GPIO pins > > 9 and 10 are used as SMI pins. > > > > So, introduce Amethyst specific function and call that if the Amethyst > > family wants to setup the external PHY. > > This looks good. The only comment i have is maybe we should rename > mv88e6xxx_g2_scratch_gpio_set_smi() to something more specific. It > seems it is only applicable to MV88E6XXX_FAMILY_6390, so maybe > mv88e6390_g2_scratch_gpio_set_smi()? That sounds like a good idea, want me to send a v2 with the rename as well? Regards, Robert > > Reviewed-by: Andrew Lunn > > Andrew