From patchwork Fri Feb 9 21:50:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771900 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 E367F107AA for ; Fri, 9 Feb 2024 21:50:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515438; cv=none; b=NaDMtVWjRMfzDwmbUmK9in5ssMyK2Ax8ts3vXOfM6VtdNaZiXREGaLpp8sI/84vgflGSejO69IkvOPVmitGlB7m1mNIDt2xQ1GAB0xGuiGZk90T9lPg0rUiu2VTmY53tSlZ6vHDjPNCzbqyNvxDKExjohIS7LevWOZTyEvgYfOg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515438; c=relaxed/simple; bh=zXQTB0UTbLqKL0nxwT+xbYvoKu354PiK4225HNhdxm8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KYs9s0/zLFY7oUDRR30krZmNQyOAxTmXvchqBur9g3rB2QE3yzx0XhTHM+1LbLsaNpOKy9Zk53V4O7V/vNcJLFCKskA/eO7DayvgDhDkQiDEGl3iBW0hHnMJuW2SPdep2IYZ3u4gH3aQserzC+z0puF1ZRhGvhRcsHJ/xCgJxM0= 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=B77Kr5br; arc=none smtp.client-ip=209.85.208.178 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="B77Kr5br" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d09bdddfc9so16444101fa.2 for ; Fri, 09 Feb 2024 13:50:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515435; x=1708120235; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4sfbHX5QAyUBZOUDcGHw44glG2jhZqLX/qM5eWSG9kw=; b=B77Kr5br0RC/jfhNyssAgxL2Z7nVNC2i/5+PcwizRKJKYpYeij6iEOtCqw0WLAWXWH cUvnWpvy46NuUWKX1BEHQNFgauQlBFjqu8g2qHFVfzzc/TVX5ul4tR+Ka8lFHgpnjt4s FdOKH7+aLln5JddIVRpZzkPI9zhMao7sNVNKPmnIX4LgD91dZNidvcy5uRYNyukmw8QN su7iU7IaDtka+d3hQEm6AWU45mC9VlqJx8n/3jOZz7jv9Wp0nVyWJcd96R5GysVitOxt GfaS5wXXwyKEllToAw1g2k5oXHiDIW+MeMhZSHzS1LvLILxIzg2WmrBYHGPe5qKP6kX8 +bxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515435; x=1708120235; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4sfbHX5QAyUBZOUDcGHw44glG2jhZqLX/qM5eWSG9kw=; b=K8agMXuqG46diEWP4bSYRB+z4zcOM2J5Qh+0ZER82FkykxGB5VISvFQmMjS9h64hjr doBmgFtnUaNKzeOpkEyfpYxpar3P2n1aiosDyGyIkByZAzLElrl6lo7RFDizc4qPSdFi V3k8AzvG515HThW8rwYRnCqVt3m4QouDZtZXa1p+zcRiA9IRWnsOntOMjbiFAZeJQ+0E utIAo2MBbKYH2TKK5YxjuMHL7vIYwsDDI6c/Ox2YMblDF3F/YwvlNR7jhut2IPubyuJ7 c3rN6JBSiyMnc4VO+QqU+sax2vBFZSynlAoGJjTj9TLHIkESnpyH+js6UsEPBCkvhZRK elvg== X-Gm-Message-State: AOJu0YwWc52pkeQD6F0nVta4DcRFrxJk50UcR82JuRK6wyevLwGJJ7N0 4bOcJEWx+acGZekUfN+Giur14NgxtvjWmiJQA3bIBB63CfcvH2paN1hMNUwFRnc= X-Google-Smtp-Source: AGHT+IG9Z8g0DPyp7EVYupXf/1ancgNAdrRrmH8adceFQRG8TYM0Ce9q6b0PIVHzmjWhIOmTDQfaew== X-Received: by 2002:a2e:87cb:0:b0:2d0:dfa7:8a87 with SMTP id v11-20020a2e87cb000000b002d0dfa78a87mr180106ljj.8.1707515434943; Fri, 09 Feb 2024 13:50:34 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWsHbHPIyAqmzStAXa3zlKh9046xx0UWO24AgG3d2Ae/5CvzBucYjMcAD0UC5in7vJAQnqKYGUhY9GKDm40LLnUCF0PFA9W4ijayoAZCea5/JjypHrNdkZhQ9rR5cro8NWwxio+ec8kdcIAUXWXicrj5BqCFn9Fiyk2hxWg0EYxJfowxKDp2A2KYS2vOLcWqcZjyhZHm4rubviNtZn1Xhb5hszAH4JIi538SzrV/4DMYhHymATxUMOJP5dJqJ8JlkwIIC8/jwEVGy3NOML47cUV4WTmm2GS26k6I5XXgtVUsU58kWljKm5WWCCNkUlslA9kwutRf2O08LJifp7oaikXXZBVCSl6rEUyGX8eO6MWAzYtar/d57DP6C2k9GhSGSc48SQjyc94MEeM1xk1qsE+ob6vLmuTKlyc1NUFHK2dV1i6iqrHNlJUBGOy0yVuS4LhOvLRWJDr5tkfD3PCOKMuDIZ5G/qO445UksBlH/HD2fvRVj3VtpqNFdbqW1OqDnBdklOjiqX1D0Gqk2NH7u0dOONPFu9h0Rggq+LajrYxwZYPPmR+cvkmAc8XYCIJiwzkHTPbi7CafD7Rykouw/9fRIctOsn4Oog= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:34 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:31 +0200 Subject: [PATCH 1/8] dt-bindings: ufs: qcom,ufs: add second RX lane on MSM8996 platform Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-1-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1529; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=zXQTB0UTbLqKL0nxwT+xbYvoKu354PiK4225HNhdxm8=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlxp4ndlknkuTjzr3YIUwDh2PR22rrOETju3Aes xxGv6YOUdGJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcaeJwAKCRCLPIo+Aiko 1f3yB/42hjMD4zHwA5aBzdnkKQvx+zi1nWnB61HhTZp/FugvwIPPdsPLpLz8BIaZKjmTsUhVvmC Jfhr2ctqhCPbiRB1JJ6UEYTD9WIWLlaDCM6pEtRxqu0wc0HFUZaoYpbA6KR0SAOTI0ENv93WQpM ixbdwIAUM2JIVTBVXHBcYAOZgZYJ5bQnj9ySI7C347lsi7Svjy/niwTzFCIjdNRguf15DLmbOAl q2o9eP22t/AR/gdSlbJPXk0hKsZwlW+2CFQvj+3k6+RPn5XV2uagTaIjFnHC3HoFrZ5STpkcGAm FKaKmmaMwoqntvRNPs6BjP44Wexd8qSgTvo3647WzqvqLmMR X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Describe the second RX lane used by the UFS controller on MSM8996 platform. Fixes: 462c5c0aa798 ("dt-bindings: ufs: qcom,ufs: convert to dtschema") Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 10c146424baa..f1de3244b473 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -43,11 +43,11 @@ properties: clocks: minItems: 8 - maxItems: 11 + maxItems: 12 clock-names: minItems: 8 - maxItems: 11 + maxItems: 12 dma-coherent: true @@ -188,8 +188,8 @@ allOf: then: properties: clocks: - minItems: 11 - maxItems: 11 + minItems: 12 + maxItems: 12 clock-names: items: - const: core_clk_src @@ -203,6 +203,7 @@ allOf: - const: ref_clk - const: tx_lane0_sync_clk - const: rx_lane0_sync_clk + - const: rx_lane1_sync_clk reg: minItems: 1 maxItems: 1 @@ -257,7 +258,7 @@ allOf: maxItems: 2 clocks: minItems: 8 - maxItems: 11 + maxItems: 12 unevaluatedProperties: false From patchwork Fri Feb 9 21:50:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771351 Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.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 C72341A71B for ; Fri, 9 Feb 2024 21:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515439; cv=none; b=LxvqjCUlDYYnSLfylZICFiqgSw7Gk8h94HTT/jpqRff+3hfHDaUJ0TAhhFWyhqiEATk8jGdQ9y7zMLhvpG7m7n2tFTJD26wsf7+pa0BK8eLvISCbz0hxhxKISkRlq7ZH82Q39/uZhVQxHIZLHp6d0qX91Ozd4fgUySDASDjzzeY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515439; c=relaxed/simple; bh=sny/m9wJ9i9gQI3uK7sG9rC2WxbHvJ9BZkJpg0lVtPU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TjTrhLXgaj8bILvl+QzhWobf/jeLrUQqKSJRJxKZm+9PH5Z7ft4PJsH3p3n488BtZIOJfsm0cvL8gIQZuWHDliBUxfSzf+i5csHESqSx0L7ZbBV9nzxs/IaxecQRDwWUS/XxTNXE/0TvmEqigORQ7NQvU2+OHI8Lbs92fyYH2Es= 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=QVGy0zik; arc=none smtp.client-ip=209.85.208.171 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QVGy0zik" Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d0b750518bso19925281fa.0 for ; Fri, 09 Feb 2024 13:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515436; x=1708120236; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=T82RS47xunOM7WFJBNZcxWFRq9fwUSzgHkN5K81v/tc=; b=QVGy0zikpqjNYUwhgdWj+BRC04thfw0cxh5hlEQ9lYz69/2L4Bq4B/W1bF+gNHavxj WEWynKifG+VwZrI/KZCypXZnV1DdvXHpISNAIg58UBrqru2/6LelSgA7k3csbSqnGnfT cmTGLy2D2i2e97PCLo1XNEmBbfdLamZ+Rtx+iylVpP+XgII1gUsn2adUzc26c4yFJuZN hwXipoQY0loIvn065yHoXfs2Go4mhVRxWr1k53e9GV8ssaz53Ktv2WwzYV8OiHnLofOY FpivIJfkGjmqOO46jfgETHjKqxiqR1zBoxBzENw1FHc19OU2n+gVkp0DpQ27BwroBFh5 nNzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515436; x=1708120236; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T82RS47xunOM7WFJBNZcxWFRq9fwUSzgHkN5K81v/tc=; b=FfKX5ATLggckYtmlAJ++pIJGbF8lXSPT5nqO2H720J5vecYEXnJotMb4mJxDR4+5/X 5ed1PFGoJl9jnAeHqBcnWvv/CdRJdT/u5Dc+8jG6kWou6naBQqbTDMuZtil1IO3mT0F1 6NSG3YZz6XAi6UwtHY8ccHzu1dQo2ZAj4Mu0vrB93z7+sWtEoXjP35JCD275kqR+V/kj pRe8QkaBSqbtSlSDgWboHMrEmni4gCkHlAhTLB+pvdVDt8+0+FBPwgLSguI8F3i8yZax 0JxNEM7oMD0iblX8v3TL+sXV/7XJO5w2/Jzg5p8jbs/iLbPbQHNKAYw9bhYPNm2SfoMo onGg== X-Gm-Message-State: AOJu0YzH0/dImewkoKD6G+bY+vNvG+MEdZIaV+KqC605spl0yKjO90tk xqXIYBt7GdCesOlY4Zbpo98ZYIKAjEdbSLmbxyn/66D8NgsHKh4wUQpffZdEmRE= X-Google-Smtp-Source: AGHT+IFRFvaEb4IuOfosae049gbrIkO6hFiXlA1DBHk2mi4U8sRAN37hA7fmSEKOtksS77IlR72vgQ== X-Received: by 2002:a2e:8904:0:b0:2d0:b6c4:2180 with SMTP id d4-20020a2e8904000000b002d0b6c42180mr130316lji.53.1707515435881; Fri, 09 Feb 2024 13:50:35 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWTCIcmQq3wSjinxParpmNgW4o5UnfKgcj762fmorevMXyj9QRWvYHT6yst9ZE0jKGotmfBbOkz1zKpnMS+Muz3g3RlOZHiuZR+O1inFKCZllpxtQKT/Owxdz2146cfBEXu8aCbG/N4gvG6fX8FlBk0vajA1swMaGuAyPKeXhaxh3ciGnf3O07YGz0+Jykv07Z/aB24k4Yj5XM7QPjdOKLcwOiqFpstKglQKyrU4l1fSQVtmCrdQcLJEjJuUoUsV9t4epT8Ru1iAEfmrZD8oRct/oGEd2APSrdfs8ZTatmjAm3esuvo9k4e5mCjSso3ozO5OWR2oJWHOKKb17COoWNs/BDbG00EzSA8aT9v/CA4Wi7YgqnMy21pL4yT6+zsWXHQXjtNgE6sK5MiuUwHLwXvFiMiEaP55xCSZxO/lbxSZXHDjrh95HDuuatdQo9WKvUf5SSjWz4pB+I2l9K3DwekBlc4oGRS4xEuDVfKCttj/HfY0IZrD0Pe4ZhAoNO+6wyk8PJJs3Ra+UwQ3FLreQL9NeTy6GXlBxuHk7eVbUHmNFtpkM8Jtl15jio/aLMBqd2JDaWWcwFefRDZjegJ4yLURLiEAH/Cxi0= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:35 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:32 +0200 Subject: [PATCH 2/8] scsi: ufs: qcom: provide default cycles_in_1us value Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-2-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1292; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=sny/m9wJ9i9gQI3uK7sG9rC2WxbHvJ9BZkJpg0lVtPU=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlxp4oF/udIPmh25v9YaVBGF8zomk/oAgu82oWc 4qjt3F9Vo+JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcaeKAAKCRCLPIo+Aiko 1fqJB/9MX9MZSLldZwM1esOwZZgWaY816oeEp0Kz6LtZi4kAPH483880Np+n7VHQz00nlQTGwMa IGHIxyL0OV132G+to0mZ68vDXrPlIiecUxo5fUADw5Dl6QIyp0cLW8ewj91Rzp3b4fI3TM8HOBC Y87B+sdiwznm3ZENyUcd89xkUaILfIO5xpMsd0aweNTjiwTbpNgG0AufCvU8WldZgMF+rwwd5A0 VlzGssDcpOiEWB4+4Jg6GfS95/0XgKn5tmhDyX+LFrPOKR17CTJ7f6r1DQOFQgmuO0BaP3e9uqE mCjM+v3umfKHqUMCWfOFKaVLnzbDXn00pzmPmeXTh823Fean X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The MSM8996 DT doesn't provide frequency limits for the core_clk_unipro clock, which results in miscalculation of the cycles_in_1us value. Provide the backwards-compatible default to support existing MSM8996 DT files. Fixes: b4e13e1ae95e ("scsi: ufs: qcom: Add multiple frequency support for MAX_CORE_CLK_1US_CYCLES") Cc: Nitin Rawat Signed-off-by: Dmitry Baryshkov --- drivers/ufs/host/ufs-qcom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 0aeaee1c564c..79f8cb377710 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1210,8 +1210,10 @@ static int ufs_qcom_set_core_clk_ctrl(struct ufs_hba *hba, bool is_scale_up) list_for_each_entry(clki, head, list) { if (!IS_ERR_OR_NULL(clki->clk) && - !strcmp(clki->name, "core_clk_unipro")) { - if (is_scale_up) + !strcmp(clki->name, "core_clk_unipro")) { + if (!clki->max_freq) + cycles_in_1us = 150; /* default for backwards compatibility */ + else if (is_scale_up) cycles_in_1us = ceil(clki->max_freq, (1000 * 1000)); else cycles_in_1us = ceil(clk_get_rate(clki->clk), (1000 * 1000)); From patchwork Fri Feb 9 21:50:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771898 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 AB186364AB for ; Fri, 9 Feb 2024 21:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515442; cv=none; b=ulBJnWrwHL76yAjqnCKoYIdzlrYTKlUXmlqaR8iLfP4hyl2PzT3vuTDIigZUt0xVmM+WpYl5RA/XmXGmUKvWLb78hR0QIWgMGA6fdbyNCrRlahEAwu7+0z1f8L7M4RoTEb6PftCaY5buuVhxWg+NokYyHMHPB5ve6GVNXMfaqyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515442; c=relaxed/simple; bh=lme1RrLHypMhP1IKVUdYE5epWMb2CFcPlYghOxVFbxc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fBz3UiSUbnirqjGHMd+Pcw20YGoDWOvkjYRqCvXhfwaaZ4thcHt2mYEejT8UD2Is3LjJIvzk/Re/OC8jezlCUbsv0SISTilnNg8SPgeWkD7SPjRD4p4sLa7rKECSRWGeHDRLIN1E4CcOFMykDls4xfpDOgtpN9gM0WoODR676ds= 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=JhtkEQWT; arc=none smtp.client-ip=209.85.208.174 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JhtkEQWT" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d0d7985dfdso19482911fa.2 for ; Fri, 09 Feb 2024 13:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515436; x=1708120236; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xG1aT5LJNwH/dRpQTGDTuFAcKwHfCgYh9E9LjUpdBHA=; b=JhtkEQWTpChQ5Fp/02YAYMpWSYI+i0RRbgS5h7oYL+jKdc2VJj33ZCO9tx/lNcD/hS tdybkKwKBTqfa/PKVzvjktJrfpy/f+PwBkN/sjf0GhaO2AoWKAC7iHjVxRPfQSIf51/h mi1ocAstFueCphYgjngNidqfTn1MLbcVcCwjHJhMTIYiyhtVzovBhIGdo2cu4MfzQN45 BB2/suKys50FWPid0kDjeqwpEn7oZXgfVxVUo8yIWLzGrjMGNszF3rRM4MSHe/Ac6enQ t0yXbK08X4LrAuq1DeaagWZLkAwb3yXRcKL78gxpP6tWO4VwqV05QBRGp4DkJ8R7wqaU cRcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515436; x=1708120236; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xG1aT5LJNwH/dRpQTGDTuFAcKwHfCgYh9E9LjUpdBHA=; b=waLgchUgkB06eIy0gGp20v0aZdxOA0wSCKVklbw0wD3Cj0/0tnACzv5OHznePcor5/ 4RoBPK1J/chUsrD0pgfnlDu7XtdP83zbQssxFOcDXFxLklM33xg5uX/puPUetekYIW13 8xCyda83BykI4HGDG0tXqPn6EyMbs9R0/PcmJt/rcz0nHdSX4XlUqthShJDPzR4wJhU5 FHSFVWpMuvXMt3BkaErZ9kIX8jXmCUS663RFXh1PrddoQJwHy2tQs+w5B8dF1CAfjlTG PodaE8nyPR+bfMSsc+sVCXe1SJArHSbVX9+SucoemNbk7F8UZIcnKeUFLWqbb1ukF0So InhQ== X-Gm-Message-State: AOJu0YwpKLLY7xuf6eiFFzUqGYyH/OGb8f+F7I6dK5TNqW/dZ2oMdyMU KIf75+6XHkLNVMRgAlfC+vJxvtBGTwF4h6nwYqrvxfm4YMAGoslpwOcoxug3SwQ= X-Google-Smtp-Source: AGHT+IHImH4Xw/8GOnfoOdrfHRI/2441YEadUX0HeBbadTOpIUFEEUW81H8QqC9NKnRKVA6iEaC55Q== X-Received: by 2002:a2e:9c8b:0:b0:2d0:e296:d640 with SMTP id x11-20020a2e9c8b000000b002d0e296d640mr197083lji.11.1707515436775; Fri, 09 Feb 2024 13:50:36 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXmlCfIbxj7QoKywHEuRvf43azqfOagFYXGGhGLbk/WKRrKCbK12mEuMYYC/3j1ca2tw4vhJNlCs7aXGWr5squyJEyfww29DYatyjqynNfvizbwJKVtgFi6r/CUXchTqdA3dLmESAhqZBMZ38d5YYDIHnwfU1MHYmLBRrOZ9WJlENhXaxeauUnApSX4Wu3sFEvc97QWiShIP5gX3nu1kQFsWhmMfpN5N/Y2UomPY9SP99CKp9ileMj7N10MdXeNCTjimIvJyZ1j5ul4rQ+7NR4ea7fS09mDnXkLlIIljMs1hA0qAJPf0t1dMh4cVigj7OOcNNY4kGZNOb3zxaocadHUprGJ/tyxZMJaDm0PGAuaf5vWZ+W+wiWe8aHeTFsxS/uAikyyCpftivDYIR8vqJfiNoElLFbVthsa3q5EOZNA/JluOGM7fCm8gPjULKaM7bN9Nmcmq1U2RtQzArSBW5HtmkHivnF14mUJD7HxzzGzf+QJrKH70Q4Mc3raX7soE67gMR3cCMUa6gv9FqsINxDf+PeQpD61/v2DUH0cBaZoOTjNuaA1ASUPCe4m3fekY5plA3Wyqwv8f0pr/4JhxJluD2Av0kwgmyo= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:36 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:33 +0200 Subject: [PATCH 3/8] arm64: dts: qcom: msm8996: unbreak UFS HCD support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-3-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1096; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=lme1RrLHypMhP1IKVUdYE5epWMb2CFcPlYghOxVFbxc=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlxp4om9AdF+KEigHcO+gUHEp2estUthJn4ZfFk q7hdNIxcl2JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcaeKAAKCRCLPIo+Aiko 1cy7B/9BYW+GCvAnSvNFR1zqowRnTsJW8Hgvg4UjhOn3GEZQENNcrEPOzR7lDotXiX24M2vG4kC cx+8fXE+L2O2oZzO364S5sB6HCOeGE2W4JjltbYtuiJNs16EAEA9TG53RZqeioYt6MsuB8tHx+2 py+Evqoeh4luSLKnh9aSipQt0cpLt19Qv2V9gsUEzeW816ZSPv+kPshVl5sCqYDyi85eptD5Jbj 4LJKW5CoZUq1fTio58YFg72J5Y3mTwhbbOZgmxk+bfdyVqhH7k2su/W3jAR/C/OI0NZ05wlEYsU r5j1qxsLPULLZiOl4kYz9zbxrovBjJ3HBPGUiiaeK/dGr+qu X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Since the commit b4e13e1ae95e ("scsi: ufs: qcom: Add multiple frequency support for MAX_CORE_CLK_1US_CYCLES") the Qualcomm UFS driver uses core_clk_unipro values from frequency table to calculate cycles_in_1us. The DT file for MSM8996 passed 0 HZ frequencies there, resulting in broken UFS support on that platform. Fix the corresponding clock values in the frequency table. Suggested-by: Nitin Rawat Fixes: 57fc67ef0d35 ("arm64: dts: qcom: msm8996: Add ufs related nodes") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index f6b6fdc12f44..80d83e01bb4d 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -2077,7 +2077,7 @@ ufshc: ufshc@624000 { <0 0>, <0 0>, <150000000 300000000>, - <0 0>, + <75000000 150000000>, <0 0>, <0 0>, <0 0>, From patchwork Fri Feb 9 21:50:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771899 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 A053D36AEF for ; Fri, 9 Feb 2024 21:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515441; cv=none; b=N4h1IvoPU+V2CiprKCXbPi++YjaQiJHilYsCYNPGpfuvlrXPFEv2R1el8yePuZCcHUBCgRcRZ2iKVdJZ83TUv5pAIfriWPtgDH5NVzNkJOuUH5Ihw7ZHGhiAVj9A64J+gVlrKT+9gIXhGLIFLZCpxZR9be1ExXJ6PV0kBk/taJ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515441; c=relaxed/simple; bh=Yu/LzOcQdCwZAyJpUXbklqudqrQ3EIxx4vsAwegkqbc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YDUZYVNGBiQa/dl5tFMPmtHNopIWNtGQL8RitHKkfneSMZk401BWWVJa5u6Q+E1aNbX0ybSvy/0RSxm4ABLRfD4yoEMvcNZUENWFr+XqVMNVk6PLaOCcH5AcfU32V5tPyf/0M8I85R9KpIAvZw0NpeA3DMqjGBW9XoDGXf8xN8o= 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=M35PNE2r; arc=none smtp.client-ip=209.85.208.182 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="M35PNE2r" Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2cf3ed3b917so16495491fa.1 for ; Fri, 09 Feb 2024 13:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515437; x=1708120237; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bb+Sg+PuMfej4JlBw0WjutTwckzrP3l1xV8RqoQLreY=; b=M35PNE2r8xjdK/dz3wynIYnPwqe+MYHyO8IEoKSuSQHvqqYllxun7lYGX1Eq9490RG 7AN6rSnE3tVRCWT33tpJcCOMKen+A2HtSCNsZ1B/NtsKPq1ySDjFA466qvfOEAR7B1uR Q7t2Kj/dwTVr2qMVCRhhN7g4ijCo37/SfkDRx9aG6/dhZyTJlzv4+erh2VqrNC//dQ5s WPQpMOrMRgLcFt8LWjiMnWTDf7oE8oQL6wChkPTucV8hOQTapuoNF0A+OqfE72zuoJtU gvKncCSk6dG1sQWJsJruKPE97Fl1OKEEvPTK5MLCpvXztVH2THPnalLtKMzqUYtap3n/ am0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515437; x=1708120237; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bb+Sg+PuMfej4JlBw0WjutTwckzrP3l1xV8RqoQLreY=; b=Y/kM6PddX1oiNo9CENTgyA+betGxv+CaM5PIGXjePBIFbQIm+IyxgbXYTU0jZE4O+a nkaEbCXn5h+tQrQKviPs88gC9ZpPVW21+NcxqGBF+cmGKybptXyWY6aIMJTF+LhDgitF HfUIBZgMBD2XgQ+KdKFhNqRz0VyICFpjQo8fwwJL2o4f6gOjStLfqNqvVb38kd5kFvju SJKyDRbUoCI1nwuqYhYKdK1oFdhSI/95/O7Gle79TW3ntnvDBevbUwo2XV80QCC+BnfB RbJOd0ieNIYm2fP2Drg5EHRNpDZBqdS4CFcPf+hNp22ooun/wZykl/suCzkWSIlYDRcO 8VpA== X-Gm-Message-State: AOJu0YxEflnJST2Jfixi7/mGMj7J1IhP21QPFQ0HlML9riugahGKTugC 3CngwUaSClcPmLbU4yxeKK1kyhXRpRrG8rSB4hm3riotorrdZkJzti9CcR0jv/Y= X-Google-Smtp-Source: AGHT+IFF4APdxejo3krhK98jJDEbNv7Q1pmG1j5+LIhk9UntOHNiQq20JhOvuzyyqMJR8uROmcsYtg== X-Received: by 2002:a2e:3806:0:b0:2d0:a71f:5eab with SMTP id f6-20020a2e3806000000b002d0a71f5eabmr210385lja.23.1707515437558; Fri, 09 Feb 2024 13:50:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW43uGcUmlYEa7r8C65VOJ40b6JybqNWwfDRdHJLlqoqRDFTzTFQgma8bIHjq3hv9E3QJdjAcgkdRrtgFpcbDBSfXSerbEj60fLCjhechlkITjTqXk5YO1UAIb/aYKo7Cmtk7FFHLimieDNZl0W8qdrutBUT6JUXK195tZ+RyMScFRYOkdiSCqa4GwgE8sbX1MswW2XfSu7uMZi3fd1/9tQpkceusLhwvjvVAfG0t8KwilirkMk4r/Yg4W11/Ed4b0i/4U8sxLIBLQ106QckYzzu/gslhwOKCpb5qPZc6RIUOPi5buixQhqUMk3/kavFaWPiIMMGr1Nl7P9mY4ZE9zu6/Q9wmKmjGuL3hOXKqbjaN73lZByupkS3NgG+80je8sxeRhnCm9igC3vRCtUyIfXW4V9p1GbR7myxkU6sXhI1bBhwHnO9qXq6wuJadOTLf/J33gnQhJckP+iMXXlzod/cOGDxOIjn+eySTW53aOoWbwI8kE8YopI5EV07nZ6EOIh/z7QJYJuNSacL04U9SlmQEJAKHN8KjP0/I7DVF5UKT+/EEROBK4+cw3i1zR3KIkw3JwRXDCGi3netcWhEis7siP0KCFAdAE= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:37 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:34 +0200 Subject: [PATCH 4/8] arm64: dts: qcom: msm8996: specify UFS core_clk frequencies Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-4-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=975; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Yu/LzOcQdCwZAyJpUXbklqudqrQ3EIxx4vsAwegkqbc=; b=owEBbAGT/pANAwAKAYs8ij4CKSjVAcsmYgBlxp4oPisjdMAjttGDKMVPpDmlZqu7GPwM7Nd5H MqTPgqlgz6JATIEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcaeKAAKCRCLPIo+Aiko 1ciFB/ib4ZE+Qk5EBi+qpqjvxVXZjDd/Haa7IBdbqcSY5lkPH3lhVep03A1QtYcGtCzQACbKlmD TUaijeU5T2l4Kjz3OvlvinaAVUsWpdkSBDVFHmHQl5k3uVGlblvu4+KEvOono83JMIh7LAEOUOl gzZlWSGN9ovjd0+ZeVnlRncNq59y6bBmA26c9/+nhmnlndYuGuliry/311qFBz5i/eo5dNNn2qN ud51qCkweLTgkYzlGWIFGbGn+n97eIfSdwkDoaUSiXhfqaHepjX7Uvahc7R//LZ2sua04lxcnxq 4jOaUSk7dnBPb/Bo+5YoMyF4vhO6itXVz24wcbUta8xjI50= X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Follow the example of other platforms and specify core_clk frequencies in the frequency table in addition to the core_clk_src frequencies. The driver should be setting the leaf frequency instead of some interim clock freq. Suggested-by: Nitin Rawat Fixes: 57fc67ef0d35 ("arm64: dts: qcom: msm8996: Add ufs related nodes") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 80d83e01bb4d..401c6cce9fec 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -2072,7 +2072,7 @@ ufshc: ufshc@624000 { <&gcc GCC_UFS_RX_SYMBOL_0_CLK>; freq-table-hz = <100000000 200000000>, - <0 0>, + <100000000 200000000>, <0 0>, <0 0>, <0 0>, From patchwork Fri Feb 9 21:50:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771350 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 2DB09374CF for ; Fri, 9 Feb 2024 21:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515442; cv=none; b=gTuFQ0px6fGIPV+KMXwyQcBBTMqN0PwOa2Yw1lXUgZqF0Tp3nWq+tzUs2HPQDaiW9SygQiOnihbR0duaqIUaFcVx20vz0CaAjPAlsMOj8IfMBNBZZgzwbDxCfTOLXzpeynMxrjppOOlB95FvhMe+lkbhcG17OqHuXHOUS59SSOQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515442; c=relaxed/simple; bh=qFaDb3+HsDF2bsx5hIZxH6UqlzjoVIko72glK0fFo+4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tjEr/xiqnXotguvhWBBFX9SBRsB3G9xEr1rerc0SGDO1av4+AGilxOYvfDopymg4dPXC0N6CKu1hE4/OMlMmccDq4Kr/Qn/CGRbp0lRElasHrHNQlFrMTu6bWxh3U8JYrX5l6/KaSGFfECYcQBUh6BamUUPOZB5ggOp/0OQqQvs= 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=Hvd6H2rP; arc=none smtp.client-ip=209.85.208.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Hvd6H2rP" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d0e4ef33b2so1843101fa.1 for ; Fri, 09 Feb 2024 13:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515438; x=1708120238; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vO5RBGkhGj7QMxqzI1uI053ZUd8FqxdZU/olLT08QLw=; b=Hvd6H2rPXuCxlUPQJ5+7MVQBBZ0Wc78WwonlY9ggjTC3QVRixUIpoGT97O6fbj+u4w WvkWk0RYR/7+Gd4vqtLFlw/6hQ+DdOaigu4fS/4P2LTd34l/lgS0HB/bhHQd8lHxpIj+ mUI4EhrLkH4vIkET+QLvgT6XY89vYAdeJgFp7NvVl+YA7rbaIdA3ZokdWqpkm9R8pn3A neIWakoxhnCkFYgQiMBdejpOXO5qJnCTu+76kGapCgxaFyWuVcL+y6qjF/nd/1IEAvjM LWSDsR/Q4wU54ocqKXGKdt+YiHJ7uaVt2sAvcAzlI6nsPat3YVdQ4zsgimiobYji2vh1 qCRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515438; x=1708120238; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vO5RBGkhGj7QMxqzI1uI053ZUd8FqxdZU/olLT08QLw=; b=q0ToYZlErreFiJn0gkIM9YZ/jlggHOwDE4ePh3M/Nqe7WAnUB/ncdzcerGBC/Ovg0s CEhwGJafjvyh2wAM5jkJQGgBHoo8UFQuluinNmLyA31RdiqTvC6K9+R50jH86kOamkS8 PUGEtGmpUdRGW37WNXVMSROpEDpl5dtUxd7Xc1W3CkBAbJFzzbd3xy6H6xjQ1AwfBEUP ogeFyebnWPsFbLs1mI255WyldkVwS5Mhoeb8ZrVgiMKAMag0ALs/QWqzbHKAuCy0Bt+N LWOV+bbJTiHy23vPo2IRkrNtQ3YLHG/zs6OY3M9PU/dO5JQ3YIHq+nhiTToBwnlIGxVL yRBQ== X-Gm-Message-State: AOJu0Yz4wc+dSveEmdwql2tAtHDaV46aF3A1416qgW+oTKM+zR0rPYCh vdr7PEH3F5Z/x/0KXBecPNi01QlRQMc2PZrcH21MhWUJaDfKKkxWqknpH4Z1FGA= X-Google-Smtp-Source: AGHT+IFBeYk1rvYkPJ+8zNYGAOEyT0gO0UKqOedDYLNlm5pHL4MiOsfoR8TlpcowCyXvkG4RXe556g== X-Received: by 2002:a2e:809a:0:b0:2d0:9b68:d063 with SMTP id i26-20020a2e809a000000b002d09b68d063mr184219ljg.31.1707515438313; Fri, 09 Feb 2024 13:50:38 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVR7thEYF863u9XaxkbAukH6ITFAlWWsDnKKjrKRH08hiUBdr9PcLjKBD6aEKZXgC1Ewe+m651NDU+wgC4LbYtvzyEpgKjyzCucJaJ2mTHilEvjHC9OIKR7kEoSeHVdRKQATjNVlrwSCpFvSmF+uQ9yDqrQzn09+v3A1hSMGqFaktHdlLGLV8pRkcPcljI+hrkKbhNgFkx+fO1C0mWbjSybxQb2US7UkESsdyEsRza1ZkSLq/3rGda8rzQbA+PpLwTlcObfhWUxM0se6PpkOg8gWrMRwUGpZdwtv9exyBwt8SCHgXSdpkyCss+TJ85nm+mVxVnRvmeIjJ/eRIIyptdAkUy06sqE9WSLpU58KoLYtrGwvX+QCDsuoEkuK4Xl7/GGexlaP9tJfKR7+0bCTgZDXlmqj43vqOw9hPCxaY00yHcv5zuNNRShXvLkasm+TuLvxQwMBXhXQJz4aznpO/rCSTEgzAHY46pSPDbjZ8wjzU15W433cgIwh7cbYnQmlwXrJ12gChTLoYHUIAQibQ1PiNSBos2eKnNRGf5OEagSfeGu+T44tDImKy814S/jvLAqy/WvRWybK0CdrleAZMEZBgBpLjN1sns= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:38 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:35 +0200 Subject: [PATCH 5/8] arm64: dts: qcom: msm8996: add second UFS RX lane on MSM8996 platform Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-5-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1349; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=qFaDb3+HsDF2bsx5hIZxH6UqlzjoVIko72glK0fFo+4=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlxp4ocXormBCjJV1YQU2TLy5kWlu8cty5tBadG rGlQyyYLwqJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcaeKAAKCRCLPIo+Aiko 1ZRpB/9W0blSBVKtdWzVaBEZ2OFl6Afuo/pny8EhwnN2UU+znkCUmxSShEiVqvj48eH2pJ77T3R A6lUeYVgjf/P+ofMLm6lFKjPP/1hSYh24Jj+3fqYFKK/9eqRLQ4lBJh9zk6xY9LUyhaCWGpVAzm dk67C0bPRsYr5BPdDAPysn+cxIqtXLs1AQL0RtwjjUWCcC+Yuzg3XPX9o8Fr2gm1lQqrDhSUAdU dsdVEnwLXs02SU243fSyFwt14NHHIFFS0ln8+MP7xFasMbDeB37vzGLqt1pCMlKGhpwoegV65/z DxAmOQFcGCOLf7HeXMy0O9wEx23H5VE1CYE+MkBTyYtvTkl7 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Describe the second RX lane used by the UFS controller on MSM8996 platform. Fixes: 462c5c0aa798 ("dt-bindings: ufs: qcom,ufs: convert to dtschema") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 401c6cce9fec..4472bbc7f058 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -2057,7 +2057,8 @@ ufshc: ufshc@624000 { "core_clk_ice", "ref_clk", "tx_lane0_sync_clk", - "rx_lane0_sync_clk"; + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; clocks = <&gcc UFS_AXI_CLK_SRC>, <&gcc GCC_UFS_AXI_CLK>, @@ -2069,7 +2070,8 @@ ufshc: ufshc@624000 { <&gcc GCC_UFS_ICE_CORE_CLK>, <&rpmcc RPM_SMD_LN_BB_CLK>, <&gcc GCC_UFS_TX_SYMBOL_0_CLK>, - <&gcc GCC_UFS_RX_SYMBOL_0_CLK>; + <&gcc GCC_UFS_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_RX_SYMBOL_1_CLK>; freq-table-hz = <100000000 200000000>, <100000000 200000000>, @@ -2081,6 +2083,7 @@ ufshc: ufshc@624000 { <0 0>, <0 0>, <0 0>, + <0 0>, <0 0>; interconnects = <&a2noc MASTER_UFS &bimc SLAVE_EBI_CH0>, From patchwork Fri Feb 9 21:50:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771349 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 01B2C374FC for ; Fri, 9 Feb 2024 21:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515442; cv=none; b=KPkLJ7bKm3J1jaxcudwgizxxx14UA5x3VgjY8fk8kUUJlh9D1YC8dM+4mSzzRQlUbyOp1zDdfRESMuftmigYeISnjns/BBBWlQ+vcrLQLmygeGv6SM+ItkFPW+0VhWQ4s51+oCqveTVjOWwxAFC/7nQGRvw7/B8I2t7qXu/PqdM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515442; c=relaxed/simple; bh=+sh35SiDz43Be9QOkvS4z1KDQSnZwszEyuZbCIKMEwo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q+0WHf6EdAXnoVNKNSnYEMXRLN7YooNqJvBC8yTFg6olqakLSt+zcF9O+PIXw5h25yriZ/hi9osA7vlQTvCy/fAnkhOil3R4LG22WY5el/O5SrSlnlaqazVoDj+Zdio3SJ2KXDs26XCN6tq8rRcVC0ojZDQXaQSWp2cBq/xiSys= 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=Oq6JCpTa; arc=none smtp.client-ip=209.85.208.175 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Oq6JCpTa" Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2d0a0873404so15789591fa.2 for ; Fri, 09 Feb 2024 13:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515439; x=1708120239; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7EAiUDLF3fClB5a1Gd3kFGd1tv/eV96vnJDqGRKqYA8=; b=Oq6JCpTasM5AAYQJ3x46O58cc3UMdOGdxGlmOVc6PSSLLnzANrhGmhkiUwGBfr6oBM ajz+xiMhx3vpmGUwdQjoFHhPtu7HYj0O7zRGEkl9ZGt9aI6qX1TsEvlyi2YA8WHlE6VK ukBSlm8LnWtUnk9eIQ7oNynkLXg2Qk2BQwfttuwPM8T8IcwFuhXSoXhJrzxaXRzwM9tW hsJRlliYqRupTXOGXbDzeiyiyRxiFeZjGvicW6PZDDUZAaBp7Cmgo2QX/aMb4AZ5QPN0 7aQacrKg9zOdLOCQxQbyiEmqalTQsAHTNo5kpkbDIIgxLxfM1HLd1y8CNIJCRwGh+CrI ZSRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515439; x=1708120239; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7EAiUDLF3fClB5a1Gd3kFGd1tv/eV96vnJDqGRKqYA8=; b=IqgnHlCChWlBd/VT9iKee5HRg4fYKwyJ4gZoL+93IEoEbwVshsdRS2qIWSrHMfRvyx BLvO/psHYgLkyQFE9W6bM+jL37g1v2VU1psOHPezcU/keYEQwh66EvLnZ8hbfbXz1/LP 8DtfujZYFtfNtKj7JUai6xsuN9TpTAtkHTM8sbFSgh3MU4HzvJxs3NRIaIq137mqwYCA HUHIqPmi/Et9VmA8s5f0SCOWuy7yw8v6HI/xWmVB3McuujZWQWg4w4yNAXnlmHzdxNfn T9YSJ1LL9+OOy9bWMRen/RH3p3CX4gLr26dMq8B8vk+MrlgqYg+vTkQwabhPPuge/w2R msAA== X-Gm-Message-State: AOJu0YxSDWcaGfMXLfEyT9KGGP06TCWpR/0DEd+cXE7cbuKljw4Kgmd7 +Y1f3Qi1CLd50eMNWBhfEyCnO4+kD0XACNk2IGMjQ/NHtos10Rn1+6QePAJhKT4= X-Google-Smtp-Source: AGHT+IHU2pSMQ4Z7goOURBmd2iu1XYGGr/E7eIRTSg1RqOB4crX0T5DSJTcJxouc/BHCqXxxXSYOvQ== X-Received: by 2002:a2e:3c15:0:b0:2d0:af2a:63c8 with SMTP id j21-20020a2e3c15000000b002d0af2a63c8mr172907lja.40.1707515439056; Fri, 09 Feb 2024 13:50:39 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVXiNFh0kbcBC4ELLvE4dRX3tQshbR2fkYdPtGKnaiUIot52Devxiv3K9Ob00k631g1G/9NlJIL99uzrGPfpwYCsSm1QZ/5T5D0sK37mDG9J8HXzs7pMY2RicekCEr4ub0XyESlFdpoxfC09o89xMMnai51IDYL9CwfBxBeTYjG6i0Va2pADE/emBTLrk0a6yAuBiYuaebo2gdtfvSTVf1HsS8peXQSgKS0FviG6rGt0tuA+jlD+5EGlojaW8FCinCr1m6bQhONmtmJuivyXjJRR0yIo+vStRRThQc78CCnEfBBSkOJZ/AuYlYyXwi/pVy0sgAd7EJvDcQK2Qf4PifC6vLsC5HCnLe3u8ddgZzUYQ47XmAimxLK+zTcGLkzw9ukl00lrlbzINTxy4HCGSxaVUwIjkdFDNkHB/hWu5dEOjo2KWGBREZVYJ+4PRB2ZFoCl5Q6z79xCyyakTokokCV3+7q89840gL9kly4snqrQ6kcnTRisHLQ8oOsUy06RCsHwTjO5EJV5DJhWTzdh6H2HNqiDBF1zQRKM0eJ7J89aKSUDHd5ZcFUpApszvNe0Y+Mm4C7U/T6RA7+6tKIBJ1CZL1FW/+xpSE= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:38 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:36 +0200 Subject: [PATCH 6/8] arm64: dts: qcom: msm8996: set GCC_UFS_ICE_CORE_CLK freq directly Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-6-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=802; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=+sh35SiDz43Be9QOkvS4z1KDQSnZwszEyuZbCIKMEwo=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlxp4oYG5Gd0OLzMKalzNm4aoxG8kTBWMSGbKft HyDO5hljnCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcaeKAAKCRCLPIo+Aiko 1cmaCACmMi2HsX2bWSlLj5IRSe+5MEXfaRuiFjOAT/2ir+d4T1PLWQiYxEahuMih72XpyBlAiFA KbwPolTPR+mkf1F6hzsuEIP1knqgyNSY+qZURaaDmtzxuE/L6V0Be0yiIxbm8o9A8haIUcG9Q9h i/xWtLy/qwvniGoNcGPvxGZ7n9R487U5mYxjAJAiL/25v92OU5D8ZZU1uMb1FBtIH8XpJmQ/tt2 KjGvhOt1QHBv/xDScsOgs9OZFq0EbQiLGi0hh8oIufzS6F1kBChkLx3mU7GBM0i/KGpzY0t8YNR wLn7oWamLR1eRcEH/s7201keyP32knOPU8Xg9ECZErrVUkRc X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Instead of setting the frequency of the interim UFS_ICE_CORE_CLK_SRC clokc, set the freency of the leaf GCC_UFS_ICE_CORE_CLK clock directly. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 4472bbc7f058..6c847fdff192 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -2078,9 +2078,9 @@ ufshc: ufshc@624000 { <0 0>, <0 0>, <0 0>, - <150000000 300000000>, - <75000000 150000000>, <0 0>, + <75000000 150000000>, + <150000000 300000000>, <0 0>, <0 0>, <0 0>, From patchwork Fri Feb 9 21:50:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771897 Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 8C1D0376FA for ; Fri, 9 Feb 2024 21:50:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515443; cv=none; b=De4ScVzvp0pcP3fFOl5bBscnGxjOT23QjqxOsTTQKvbPOHgNvhuM1o7Racsl+2xBJqqKJkCnMAyIgcihoXUzwicoACFxGfaecnxUTW0YeiNsGLu1+bX/rd5uvxuo0TiIc9jplWtXGifuQ2Hm0e5Jl0Vppp9D+CfXUc1ETC1O9kg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515443; c=relaxed/simple; bh=bl2Y26bAQOrF7Fx/WmrM2EjdC+b87dw5MwVD4zAMJ9M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VFbpx5cIQEpHxa6u1bEzP4q3UYGBmugwApyV+6kmxI3LIDsKOFp9jXlo+FW0SKsaT3EsuB2LhvopgONBzu9Gkk5+/Jrd/Ifn8An0TW7mxfJ7NUCYtin+LBEJxJ9nyxte3G/3GgHeO+LDbezVCfdEAdY888k5ZQt6sNN7YLMJ+ZE= 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=QhFSDrc+; arc=none smtp.client-ip=209.85.208.173 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QhFSDrc+" Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2d09faadba5so18491781fa.1 for ; Fri, 09 Feb 2024 13:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515439; x=1708120239; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=V26xckDyjwdJHuCgGskejffI1WpJJSP7w4OMDnjaGcI=; b=QhFSDrc+iRo2qz2whQSxkjalNmwlrejWirrUs61KULNL5L8gZdbX7aStBQqwr2d9Pc vMVLv44onta08fdV20yQ6APfP8VJFTke9eUmXNg+uuHpUqQhv3r99N1OCgEwvRTJi/fd K3qAj9ixxazkM7ldg5KR+HupDvQO67LGjkXbqVwDWJSQGadwHSFOclKISeFx5IwtyItr igif5GsZd0mnvHTZtRlUccfGElGSfcgoyoFPajltJbjtqKAYeXUUWFm4fjTRwLW/xt+0 /b6hIUjB75Q0/N9mpSusa29i6+iKuQm9M4JQGn/8Ifj1v/dUqEvKJnbZ4bfs9ZkO0id/ qNbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515439; x=1708120239; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V26xckDyjwdJHuCgGskejffI1WpJJSP7w4OMDnjaGcI=; b=HUr3Hz9kb+qmNFJD5sfX/rKAaG4B1LsLrdpFV118ZchjaB8X3Z3LD4aoqGU6ZOnR51 6feVuJawp7EREzr7RkN2o0npoBFRL0HXearbkI+DcZL+p/qdWpELTNyzreg1W3ElSjDO SswraNI3xL7tVTyBkoQGo442sRo6v8ruEh7oa7JOOZk+WhMCaXC1osmCG16008ARFifp cVrhBGqmcu3JwyJVj8JgD55p/T+MnRXjJmxHO66ujUOHmFnm2H+pWdD2JzMQMo1yALL3 y5zL5i/OqPQy3Iyv7SjXNgHhzbZgrO142PuOONToyk2X93EWcEFOP/HH6fitrv9vzLDj BJUA== X-Gm-Message-State: AOJu0YySsj0bIPtEWUb3t0lv3hyEJn2HyK9+CiGtiOF2VSeprf4QLFlm qHTFNPNMJ4fWwwSEkRukewDfdk/BHdi+YgL7gB+xQr1qcsoSlj94IwNZ1VFprUM= X-Google-Smtp-Source: AGHT+IFgeZ41d3nK2nsuS4f6wEiNPwe0vgCRbvkM8yoctYC3SX5hFMUHhrMggVKWN0BYVSiC/o9CLQ== X-Received: by 2002:a05:651c:2043:b0:2d0:d3ec:a545 with SMTP id t3-20020a05651c204300b002d0d3eca545mr154449ljo.50.1707515439680; Fri, 09 Feb 2024 13:50:39 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWs9KtyuyQVmnvoEwpuNw+wYNs5pq0wHd4rcW83LJaNGn/5pqAj09L8PNETBqKx9fspfk14+q4Wyun6mCv3315uMmv7lyMgvB3K3bR0VS8FqgBmZ1A6jQGQO4i51qhNgQav66lZKeleBi/jMyxx3CeO41f7C65bgdcMpiHMp0FdtOu1jzYj62njltrSZ3oN8EexjV1HS4pgBAGwWQsb7bts4xs2MSf+HAWbH2AFQ9uLa5qbE1MOde3+0phI/QEH4j+sTGWCtYsSFdN5rzyA4ciI0AmYmH6KdfAmEVYto3fnxGTssfHZpJJG+375bEg+6Q9YmJc7qGqjLK06LQpqNPN+trj2tVMAUoBpBKU5KrF5cTgAOasuIqobhYY20/dxXboX3MmqJqVJe/LhhwB3qEEBlf2qcjVJdLo+Dhgb0pgWom35PZLUmh5gy78egnTDDCKWKwcgViSs0f64EpEtA0PtYF3Tm2gTYteO5tHzXhnGD1p/xM56bgCI20tBJ+jIEbBHJ2K0skGgYh6mduBxkVRbU8hH3QRFXjpmf31BY7D9dRgIz0+aPF4+LXyi5atlr6zpApviqv85IH1vu1qFABFH+CTx5b6fjUU= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:39 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:37 +0200 Subject: [PATCH 7/8] dt-bindings: ufs: qcom,ufs: drop source clock entries Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-7-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1605; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=bl2Y26bAQOrF7Fx/WmrM2EjdC+b87dw5MwVD4zAMJ9M=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlxp4o6+ge7Ga9YGQOCLnWjLlEkJGho/D8fvUuQ Aqrb6MMCH+JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcaeKAAKCRCLPIo+Aiko 1ZJLCACXqw6fod0tdRakwnJftPOdGZeXy681leZj+s6dUQsa169uzUXrRvEvFQloADwOQqIbXNk VUdBVkAb/XFahK6KcHkJkm/gbTgZc4eQ4+PPyI7bvq4iPG8SD8+DhwN2SVlFhQ+85/3t56b/ZuW Fpw5quFC1JgywN1NdxQgdmOi2679ROlQjarkbYCmS+ml5wWde61ACWpqLWYyKHBksOzCXMsPYnM DIzAlqdvEB9xR4jahxlZHcRzdFTvfksPFNtevMwdJLKfk4ljGg/b4Jlp9HbCKXyF2lRDpyHkdSp pOV/F292IMoZ62bT0+oqAS6d/IEpMpnHBrclgXSQHSe3JZul X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A There is no need to mention and/or to touch in any way the intermediate (source) clocks. Drop them from MSM8996 UFSHCD schema, making it follow the example lead by all other platforms. Signed-off-by: Dmitry Baryshkov Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index f1de3244b473..e835f12c75ca 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -43,11 +43,11 @@ properties: clocks: minItems: 8 - maxItems: 12 + maxItems: 10 clock-names: minItems: 8 - maxItems: 12 + maxItems: 10 dma-coherent: true @@ -188,16 +188,14 @@ allOf: then: properties: clocks: - minItems: 12 - maxItems: 12 + minItems: 10 + maxItems: 10 clock-names: items: - - const: core_clk_src - const: core_clk - const: bus_clk - const: bus_aggr_clk - const: iface_clk - - const: core_clk_unipro_src - const: core_clk_unipro - const: core_clk_ice - const: ref_clk @@ -258,7 +256,7 @@ allOf: maxItems: 2 clocks: minItems: 8 - maxItems: 12 + maxItems: 10 unevaluatedProperties: false From patchwork Fri Feb 9 21:50:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771348 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 8F6B03839F for ; Fri, 9 Feb 2024 21:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515444; cv=none; b=pNyvx7RmZsOzxO1/KdeMxgyDhhW41idAkFZwTarlWdGteTBSnKo5eEsEuel6VMzKqY3H/1/Zd0lsw5itvi5k/gtkm/diNtza9wciDJE7sa8MCjHn8kk0xcfTM8ZDjCm96CJgHt/jO+P59x9mK6I0CL2LhdYpDj0AKhEg3zGG3NQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707515444; c=relaxed/simple; bh=74MCy96nF03W7EAJTz2PT10B7QEkB+SqtG1CDRc9HX8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b8wD3Y4bjSvjSN+rkMRsn3sf/koG7q5fJkMt+gdVi+oH4OR6nyDCnC+iB3ctTay/yXf+toya7KAbzTQEYSqIWBYAwWVvZKw3Qmjyjtc0rp+cI95A8d1+blyIrPLv+YtsGX18tt9olaTZyMNawPsLnjkbpZx8DJQXHrrt2XoecO8= 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=xinAG5Ei; arc=none smtp.client-ip=209.85.208.181 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xinAG5Ei" Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2d073b54359so18784411fa.0 for ; Fri, 09 Feb 2024 13:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707515440; x=1708120240; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=v20cGtgi8PVpPVdnThFjD58lzld+LA+T4nI6IieahUk=; b=xinAG5EiKQqnaVxnBCwJMu0k2ZRT5VFIblSkehdEq0AkNJtXEbj5UNFOR8a0Izaw0F LNU8+wGe+WAjrpWwSHI8AWaDijbVrg8WxSg5d9hwjnc2HQcwZDieqrw5Kf+JpSjXxpxy 3y92alrJva+EcueT1LbXUUuYf2KSVWP0QU+M/5sylD3L7h+2dFTBI4O69aLy7ui/8D/A Xuk+OjG0J2RUEtlCzq0OOc49v0rojHaFTQIFnD1msVQqn5XtMVcyrFGZDduYUl6FTnt7 tOgKZFnXiZjodWnnK3xADde5LIeZKF/EKIBkda6IqmjNOMDH5Ctgc9cjeHcOnGEXd0Yd dnRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707515440; x=1708120240; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v20cGtgi8PVpPVdnThFjD58lzld+LA+T4nI6IieahUk=; b=UWAoEl0Jz4F1fjWouMpSpJT/m/XURtcgaPgnkDS4WurN1f6fq4xXUmcSUN1ww90B/Q cu+aWVTdoI/9ZGemxnoMNTX4GRtA3c1FQuSvQGI5DqALT+Cw+AZzJq+4Co65fTytldHK k+VwgMVrzugCzZAciz1EvhJSxQI1boe+PsweiBbf6LKmgcbMAF+eaPKjEdMCkboUAqKk 5j+xfj3Vl1TJouiXOnG81Gyepkmi2QwBpFfDlMZ8Yn6IZTsfls4XfFnm0M/Yb8bjkAtD qPoh6HAg2GZSrH/RFWgF9oGI2K685A6fFbX4UGq3Z/bCU1WVR7s1FnS/769WPuCvrT8D qh4Q== X-Gm-Message-State: AOJu0YxY3p5ZV+8Ji8guvrCa8MPxvkJ0DInYpYFL2NiCeJJynKjry0SS 8FYeTsBkmzOzq+0nv6cm1LYvSDrR7UFx/lwJhF2r13B/GrERgR3k75iyccdn64w= X-Google-Smtp-Source: AGHT+IGVOM4JYXMSQBQEWi4mjU6HTWulEOLVqsiC6pwlL45ECHXhHKIE2cNtxQxUTg9k+481ofY64g== X-Received: by 2002:a2e:8884:0:b0:2d0:cd24:24c3 with SMTP id k4-20020a2e8884000000b002d0cd2424c3mr155994lji.53.1707515440667; Fri, 09 Feb 2024 13:50:40 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVSDVrhLuIic87LKe8KhZUCIZcaWQiQsLS690R6xfrOlLzh85+PVdRgQh3iOt6PsrtNNRuEZE9vJeHm8rfE4OJlVOjtRRgL7tws5m5e45D7xNOXq2o1TErLhHTGuAB0mp/WM7dyM7WBM2SXpxj5d1GlEPkECWWiKYL/lam53AYUSBYW7Q9KlkBIrteDIoN/hrRic2mVqTZGVeP+HBvIHcaTVUey++KN+UsIR1q1rm/+B0wGHNPlxibQW7NN+O8IG3XT4dDwd0kIRyFIj8mMwnpSaQQKVgyJy9JbsN6JgnTxhK/ctKKed9dvWL9O0DLQfCh/RA8EhVd96q6tCPzacJf443hDOaxH5BLe8wvjmJ9Pg69kgEXBIFP4+65XKDKq8gHuSfbyaZuUGDt+7kTImyyNO0/vt3MSjlx3dy3SCawKakGAkALtuBQJ0C0BQzRGdAD0C79PIi42n6GFlPJedPY+qIRFafoU1xOIKXx4J0bAvJWJQOI2tI80DLrzFj3hCkWhjEn1tvFaNb5Hhsq4/aV3axdTC3Ixyx0KM+W/BN+94CH/a6o6C8nprkNOKDZIBhcinGSyqk51uzo+lMC/N92f2X6PVp6gb8U= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t1-20020a2e2d01000000b002d0ac71862csm391162ljt.9.2024.02.09.13.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:50:40 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 09 Feb 2024 23:50:38 +0200 Subject: [PATCH 8/8] arm64: dts: qcom: msm8996: drop source clock entries from the UFS node Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240209-msm8996-fix-ufs-v1-8-107b52e57420@linaro.org> References: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> In-Reply-To: <20240209-msm8996-fix-ufs-v1-0-107b52e57420@linaro.org> To: Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" , Nitin Rawat , Can Guo , Naveen Kumar Goud Arepalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Alim Akhtar , Avri Altman , Bart Van Assche , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1516; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=74MCy96nF03W7EAJTz2PT10B7QEkB+SqtG1CDRc9HX8=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ+qxeZoc8focG91fuD+QiwgTVXfYLbhfe8ah0En9E7Tdd 2eHs5zqZDRmYWDkYpAVU2TxKWiZGrMpOezDjqn1MINYmUCmMHBxCsBFvNj/cJSpqqwrZ7xzo1w2 50q+6cGaxe6ChiynXr6PiT62e3qM/wze1yInZWtf1PqcsdIU5fM/ofFlR4fKI2u5Ezeudm3yZv8 9zT3cWGjew1ePOyZwrPvq0lhk65xpU6jq92/nLoHa6rRpB+YWh3FpWC6xYav1PqK0UmjTO+X0zE 7eP4IP2gLfcpsVXrPP1r/cECD1TruuoPXrNnWGyS5CzefP3jBveK3K2nth1SRZ14nXohancVaue RHBE7fp1YxH+6MCn/Y0dCeer5rCcOno49g8n2zpedfN57y9fz3LpmCV+cmVnPcMLpsy7JtWeD+6 9nbjxxjWdUf9yudybkl7sDN3zn7+n++8UpRyo7YF5JYDAA== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A There is no need to mention and/or to touch in any way the intermediate (source) clocks. Drop them from MSM8996 UFSHCD schema, making it follow the example lead by all other platforms. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 6c847fdff192..fc44979d7902 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -2047,12 +2047,10 @@ ufshc: ufshc@624000 { power-domains = <&gcc UFS_GDSC>; clock-names = - "core_clk_src", "core_clk", "bus_clk", "bus_aggr_clk", "iface_clk", - "core_clk_unipro_src", "core_clk_unipro", "core_clk_ice", "ref_clk", @@ -2060,12 +2058,10 @@ ufshc: ufshc@624000 { "rx_lane0_sync_clk", "rx_lane1_sync_clk"; clocks = - <&gcc UFS_AXI_CLK_SRC>, <&gcc GCC_UFS_AXI_CLK>, <&gcc GCC_SYS_NOC_UFS_AXI_CLK>, <&gcc GCC_AGGRE2_UFS_AXI_CLK>, <&gcc GCC_UFS_AHB_CLK>, - <&gcc UFS_ICE_CORE_CLK_SRC>, <&gcc GCC_UFS_UNIPRO_CORE_CLK>, <&gcc GCC_UFS_ICE_CORE_CLK>, <&rpmcc RPM_SMD_LN_BB_CLK>, @@ -2074,8 +2070,6 @@ ufshc: ufshc@624000 { <&gcc GCC_UFS_RX_SYMBOL_1_CLK>; freq-table-hz = <100000000 200000000>, - <100000000 200000000>, - <0 0>, <0 0>, <0 0>, <0 0>,