Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1378124rdb; Mon, 19 Feb 2024 13:34:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1RB9kGNULoomCxUfASqYzmZ78r/E/0RcEHS2Ywq5JcJdEvN2tZ2/ruEqBxZaxn6+Tc1s/SsCONqjrXlM4BGTygovSJU3DnpkeoPDfeQ== X-Google-Smtp-Source: AGHT+IEkAOIIfG9Mvysvg6l8KoNGSZ30ZFdi9lb5Iayu+MvFeiLhs2x9K9T+Y0jAJHMtG/VvtPlt X-Received: by 2002:a05:6359:c85:b0:179:24ae:25dd with SMTP id go5-20020a0563590c8500b0017924ae25ddmr14633760rwb.25.1708378476541; Mon, 19 Feb 2024 13:34:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708378476; cv=pass; d=google.com; s=arc-20160816; b=rqyxQ6kO4fIOLSMbBTl25uEsro7VVvQopaVsUWE3TfMcSZvXgcA0cP9SIvHnupbMRo DWIJMzxMR1Og8SSfqrNNc7gtIegTzMNFjB12DMHTrIj2IEmGicki3Wsu/jQ3E9357dRk QFzKPzclfPCdVymVVXcd6lz2YiRXI+fOG3Biulri5Uq3J0UgNRcVRiXXxaNZ5Fj/H5ie 2oSCp8OssRSMlcBTg1MFHQi2C4kNTxO2aEZqN2zvAHk6puWxCNU7DztRRkjLSf2FsXrj T6oxBKE3lNRzle3oiS6ozUeRJpPQwxzkSvcGmD1h7uo6Hdz/I4VOmjmnNmURwgQkIvX5 LZQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=VyyDJL/AUdL5bRKBSEj9YFNsbj2JyVyWTvI1ZhXkE7w=; fh=UVOfhNmgE5vDPMFiPRYQnq0RvXiA2N19sH32Xnf07U4=; b=Cdyvd869eJctw9NbYgABEYlrCuEpYJjEkNE8qJtWst/SzQJg7XBnBffZD1VlwH51a5 MDKp+sdFC8INZwiyUxJrSytxWS9oxQUF6Q5OFmN87SKHGgEGhf6I/HOjhjZOJbTgJcFM WNgbCA7E3Sm4hRHYEzJEswSwsU6j1yWdtQMABfZcd4gCcU9ldF6v7kw+QCy3QA7Xw1Um 4ZKmv8eUxrUdYWT59onGntx3rpGUfV4lfLyYjVvz7nfaRkJUYJzMbPIG+gHBeMbRCBV5 UNJ229ywoQKEJrDDEXTMR1yjuoRD355by/1GzYapsACT+maZafQhFEsPcu4SFJE8NRkI 6CYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bn8RD9bb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-72009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p8-20020a056a000a0800b006dff5504b00si5139418pfh.339.2024.02.19.13.34.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 13:34:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bn8RD9bb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-72009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 348622838D8 for ; Mon, 19 Feb 2024 21:34:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C6865025C; Mon, 19 Feb 2024 21:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Bn8RD9bb" Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 A6B9953E16 for ; Mon, 19 Feb 2024 21:34:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708378470; cv=none; b=MFYyHQdjmW/jQxneBsZ+d+ZOFMWGagaLGFXO4pOsBQbPkEPaC0ohj/ptfnpIUQMEkKAYUMRYYBy87qUHoTx4GheZDGwafnwnMLK44jtTDMgB4TT28UifkkMgXzU3RIlekTRQi5SIMaVN/sFKfsEMae4/gWZyvbjm1yMSCaPs/fg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708378470; c=relaxed/simple; bh=uoInPYMoRQjvdNM+QaIpZwzsQ6TyD4MZWJdxYQ3v5iA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OF67nBNOVryRjQidFsTLS+9u8oi6J5ogI4grjaPVzFhkW7psBtOMFoY/VUDdCNDTysPJ8l/uFHW36qBWXPNiC60igYtD6f28j7GyNQaenMh604uRc7iQxK5hYL6YUi9JSb3MogXGkoieD82PnnioJ6bdUPIAHyCIBzHP8BsUqzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Bn8RD9bb; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-41267d9d6faso8853435e9.3 for ; Mon, 19 Feb 2024 13:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708378467; x=1708983267; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VyyDJL/AUdL5bRKBSEj9YFNsbj2JyVyWTvI1ZhXkE7w=; b=Bn8RD9bb6s6zwLm4Mj6jGx776iPmdvqJQ41RJrkdAs9UB4WBJ2IuZuNP5AXmUziI2l uqajjmlzygsFzbJyoYba/nPGO6jEaQIH7z6fBiT2A5tDqmMjAJ3NwZ+l1IKNuk/l4QfP ZyeJwYnshF3BhDbPSI0wOpCIRz6E8e/Wmx1HqxGhzLXua/D3OOoeZD17iYzaIc19J0qr JRf/9ldlgxKAF+2nskfBwWRc+yleamHQWMEXmoBGFLYxn9KP4espfMP2La2OOTZPK7kd aeFNBZuKaumNgPJBiQ5QiuIN4TPLMICOxJApBT8qoN27SNvW9vWkE64dZy0w424XoYlX m7nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708378467; x=1708983267; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VyyDJL/AUdL5bRKBSEj9YFNsbj2JyVyWTvI1ZhXkE7w=; b=o8IxYeDSjFXFSxUQI+E6Vfzr+csDfNN3+EWxtBN9PdPAB9dd3dpCj0AsgfBVGp29lm N6KZOQVi7k3aNRRSJo9Y969NyuxRDfpyjlpZVoafyBXVp98yr0hTw3XTezglm7bQFHyP q45KZe7h1bxiIwJwQv4f15rIkfZ6qP+EhcCcn6lypZg+EsVOBkgsT0I9GknuC2s3oTpu 9N4EYRIJBOYutu4nZgnQjREglUQNsvPweo1dAjwPcQRA4Teqvgh2PQRyc6d3aOWBJ1qx +zPK53ZImFUtNXVh5KQvepSRlMPQuVKfi7r4EwoJRJQCXi4qRrOMHxwj+bhOilVSUPcy EjJA== X-Forwarded-Encrypted: i=1; AJvYcCU+i8BAPUnI2LTpMDNbLT/GWaE+iBTglAr9s2Cv2Vg4Ll4hU9vxyI1Nr2RJsKPq9DdveHjYhZgyzZe+SnvMiWbN5ncVhwxxoWs+DSXC X-Gm-Message-State: AOJu0Yy4SqUaYReiUAJNHUZoBpKOoQ9VbIODD2IcRwvLwIVo20VOiRPc sMtdJBlPG6hZKkvO0/SyniEoIGxunAq4Wpl1pDYBlt3BA0pMFwKTioY8yzTBIvk= X-Received: by 2002:a05:600c:1c1b:b0:411:d9f9:1b with SMTP id j27-20020a05600c1c1b00b00411d9f9001bmr8913552wms.40.1708378467107; Mon, 19 Feb 2024 13:34:27 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id dn23-20020a05600c655700b0040fafd84095sm12314551wmb.41.2024.02.19.13.34.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Feb 2024 13:34:26 -0800 (PST) Message-ID: <271c7f14-abbe-4922-91ea-809e50be46cd@linaro.org> Date: Mon, 19 Feb 2024 22:34:25 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v3 4/5] phy: hisilicon: hisi-inno-phy: add support for Hi3798MV200 INNO PHY Content-Language: en-US To: forbidden405@outlook.com, Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiancheng Xue , Shawn Guo , Philipp Zabel Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , David Yang References: <20240220-inno-phy-v3-0-893cdf8633b4@outlook.com> <20240220-inno-phy-v3-4-893cdf8633b4@outlook.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfG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6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240220-inno-phy-v3-4-893cdf8633b4@outlook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 19/02/2024 22:28, Yang Xiwen via B4 Relay wrote: > From: Yang Xiwen > > Direct MMIO resgiter access is used by Hi3798MV200. For other models, > of_iomap() returns 0 due to insufficient length. So they are unaffected. > > Also Hi3798MV200 INNO PHY has an extra reset required to be deasserted, > switch to reset_control_bulk_() APIs to resolve this. > > Signed-off-by: Yang Xiwen > --- > drivers/phy/hisilicon/phy-hisi-inno-usb2.c | 65 ++++++++++++++++++------------ > 1 file changed, 39 insertions(+), 26 deletions(-) > > diff --git a/drivers/phy/hisilicon/phy-hisi-inno-usb2.c b/drivers/phy/hisilicon/phy-hisi-inno-usb2.c > index b7e740eb4752..5175e5a351ac 100644 > --- a/drivers/phy/hisilicon/phy-hisi-inno-usb2.c > +++ b/drivers/phy/hisilicon/phy-hisi-inno-usb2.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -43,6 +44,7 @@ > #define PHY_CLK_ENABLE BIT(2) > > struct hisi_inno_phy_port { > + void __iomem *base; > struct reset_control *utmi_rst; > struct hisi_inno_phy_priv *priv; > }; > @@ -50,7 +52,7 @@ struct hisi_inno_phy_port { > struct hisi_inno_phy_priv { > void __iomem *mmio; > struct clk *ref_clk; > - struct reset_control *por_rst; > + struct reset_control *rsts; This does not look related to this patch at all. > unsigned int type; > struct hisi_inno_phy_port ports[INNO_PHY_PORT_NUM]; > }; Best regards, Krzysztof