Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp598673rdb; Tue, 23 Jan 2024 08:51:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHE0Doo+reHEHkI5D4pStQ1ZRaKFHQFDgxmghXDcXS6LOnKLf/UU87RFVbha5rVcJjFrP9 X-Received: by 2002:a17:902:8c84:b0:1d5:be43:6068 with SMTP id t4-20020a1709028c8400b001d5be436068mr6694733plo.18.1706028672242; Tue, 23 Jan 2024 08:51:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706028672; cv=pass; d=google.com; s=arc-20160816; b=mcZq2HTGcr/AGJMIu9+OEN1/XM1RzCpKUWLIjMt7G6R2IVN9dhAOeO5hlXiAXWKWTh BP6ZJ+WzVfDtmvayzPHTv+cf99enKbJCzunSc+ttgxFVpSdKKYnfBfU1/1VGGfvS52yt 4CNvO35eEiHvQWy76Xr76dqceRRT3rG1HXCFFZd2PmE3QeJ5vFmk+RN8MCs2LaY5Bxal vNpbjVnjnnfKQtxUKyJwrAMs0/WCIP49F+LF3neIf2+TOU32O5Wyw1/R8lgs0Qrus+EI dkC1r+eHiFUlpjjPqefDG2le//26LHTQUvyPF3gz2fwl4vQKHqB1j9siy9OpLbh99mJx DO6g== 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=x+SegmqWvJB84QfkO7HYF4stG1Ls5HB6F1q0TGJJxxY=; fh=RNdmePdNddxZY//8OW/59MsRfib7ECd8om/XYr9bwAI=; b=IxqWqvTRP1BnJ4mCj/r1YASD4I4cy0FCJ1Q15Sd8h4sR9RTBNejcGkIjfP8i+0VIHF csOmQyszw4zw+mme91SkK7rouHFtgZpDpQ9dE4KNjXcfD3M+6g3FlnkLOTWPWvH7N7G6 wLJkOFXwSWwmQp+MlCMYWdnl4gaDRJzE6UeNW3EeZQUTZeRKX9UcEwePSlDnXaw4sMIQ Lv5HicBjpr0UiB6VWN+5ASioxnRvzGalL+jGG9RYYM1HotqkiKF7a2tcU7V+uvsDIMBB WCbObfvSqRarZMv+J0RP26W3S22cuoflhj89J7Hnp1ax+jLkcX+amJ9l9NStVSZv9yzm iOeQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nz1cxjcp; 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-35689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35689-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 l1-20020a170903244100b001d761fb1c69si2514911pls.228.2024.01.23.08.51.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:51:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35689-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=Nz1cxjcp; 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-35689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35689-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 C204128746D for ; Tue, 23 Jan 2024 16:47:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2061D85C59; Tue, 23 Jan 2024 16:42:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Nz1cxjcp" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.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 D3B7785C58 for ; Tue, 23 Jan 2024 16:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706028172; cv=none; b=lAoCwQedoUxnVH8oQ6zlUhtUfytgYFTyBgybDA4hfMRhQgfa7v/14Bx7OqSavpVUMnyXB0i83PhsenWnQPvRyr10LmMh6Szbl9q4XVfheWWSy/NN13qFCawwhSlHuv6dnKoZAt4kuxYwW+5Zrro+53DFcYjL1O3nFba1FWZ+mng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706028172; c=relaxed/simple; bh=ppl6t55Xb3yOStVS40Xp8F1eM7eIkdjEKB+PuByQGwk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pn1DAygtVCk1pi+FMQMG5291k1kLnNHRH0JHlM3iuYaIQcx9kioMo0V+/saI0cDV0hw5KQSZFGw5fRUWJB7fb8nsIYNZL4N7e8aySzsJvrWKDhJgrV67FswsCxexZ8J8cDEZX/Wg32P/UEjAle6yZB/OwHoWAjr9ZRXK/WvfFXc= 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=Nz1cxjcp; arc=none smtp.client-ip=209.85.219.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 Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dae7cc31151so3299239276.3 for ; Tue, 23 Jan 2024 08:42:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706028170; x=1706632970; 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=x+SegmqWvJB84QfkO7HYF4stG1Ls5HB6F1q0TGJJxxY=; b=Nz1cxjcpS2lVUmmqF1FwRQqZpR0r4apym+Zcq81Xc0WXR/+qi/zBjCmhftxdTF6gbS PGzp1e8+sZmH/MwpmkfLAYZk29YSOpsmkAZuGPMmF4A8vLJGCt43WBPjHb7KJLM2B+Ed l40pJo1xUrHjapIb2M9IR93ydfrAk9cOpvS3IhJTcEpdwwPQ7hD6/hChjUuZXVnIVAaZ Fy2ELtmySxXJuP7A7YKsdKo8r32V+wk5mnYUPCGBtBwOJ4tI9J4u+GVEFiqUFljDHSGs FEB5CEdm81/ogwVlHMchkEyywwfGUFdUW7YP1kbh7q88ZcYTzjnIfbIXc+ryKUBdUoaB wVzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706028170; x=1706632970; 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=x+SegmqWvJB84QfkO7HYF4stG1Ls5HB6F1q0TGJJxxY=; b=cFWShwt0eLu1RsblG9dyGqJZgqcJp4ZOuhMnAs6GX7Lx0Pshq3X6AwR1wA+SEgjxtP k00nuNllFh+s95kS9nP8SXIUoVe5AMyI3UjYQ/m0sHpuE0sjUB8StIid+mgoNvP5IT1v bZi4LuZ/1tYkawtvclFNj+e4wrTYf1kaWfYLBqZFcthT4/QSc0HazNpa+o9hHuHQXehg 5JmnrhPZRrzKxXTPKClxlLDuaas7ku6u1+2/nG4zoSYmLoBypPhY8LjWhMfXtEO+mELN rRI94M1UX1olaV8OJD9KtOOiBppScb//KGrgAI4sw2I1gM9z3CYFr/2/ucClYbEWP8K0 RoEA== X-Gm-Message-State: AOJu0Yzp/bJaPsJOe/+VloyP4czzsecR73R90M8w6yCPCEqPLjd5n8VO ipXWpDVJjzIoxBCFVVAYxqnbb/ciANFZiSrxPbp34082iXxYU9t+PJ+FVQRtZ2EzUJiWZEg8Bf9 iIUL4BvtoV2GKghgN4PoOMFTPSwDttf2Urkr6Dw== X-Received: by 2002:a05:6902:1b87:b0:dc2:1743:be55 with SMTP id ei7-20020a0569021b8700b00dc21743be55mr4241873ybb.112.1706028169807; Tue, 23 Jan 2024 08:42:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1706026160-17520-1-git-send-email-mantas@8devices.com> <1706026160-17520-2-git-send-email-mantas@8devices.com> In-Reply-To: <1706026160-17520-2-git-send-email-mantas@8devices.com> From: Dmitry Baryshkov Date: Tue, 23 Jan 2024 18:42:38 +0200 Message-ID: Subject: Re: [PATCH 1/2] phy: qcom-qmp-usb: fix register offsets for ipq8074/ipq6018 To: Mantas Pucka Cc: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 23 Jan 2024 at 18:09, Mantas Pucka wrote: > > Commit 2be22aae6b18 ("phy: qcom-qmp-usb: populate offsets configuration") > introduced register offsets to the driver but for ipq8074/ipq6018 they do > not match what was in the old style device tree. Example from old > ipq6018.dtsi: > > <0x00078200 0x130>, /* Tx */ > <0x00078400 0x200>, /* Rx */ > <0x00078800 0x1f8>, /* PCS */ > <0x00078600 0x044>; /* PCS misc */ > > which would translate to: > {.., .pcs = 0x800, .pcs_misc = 0x600, .tx = 0x200, .rx = 0x400 } > > but was translated to: > {.., .pcs = 0x600, .tx = 0x200, .rx = 0x400 } Even worse, it was translated to { ... .pcs = 0xc00, .pcs_misc = 0xa00 ... } With this fixed: Reviewed-by: Dmitry Baryshkov > > So split usb_offsets and fix USB initialization for IPQ8074 and IPQ6018. > Tested only on IPQ6018 > > Fixes: 2be22aae6b18 ("phy: qcom-qmp-usb: populate offsets configuration") > Signed-off-by: Mantas Pucka > --- > drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) -- With best wishes Dmitry