From patchwork Mon Aug 28 15:23:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Thierry X-Patchwork-Id: 717782 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F4028C83F11 for ; Mon, 28 Aug 2023 15:25:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbjH1PZI (ORCPT ); Mon, 28 Aug 2023 11:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232214AbjH1PY6 (ORCPT ); Mon, 28 Aug 2023 11:24:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 325F7E0 for ; Mon, 28 Aug 2023 08:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693236249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fvt8AW+mIi2eZBWcexrLs2yuZIumHq8i5HiBkv83ZV4=; b=Szj9H3Dfr6iaQ+6/zhTBVqVWZdYADwV0OJxHlPg2awQugoo7XSQK/CL7i3Z+HwlCSxJEoy 1fGrKHnOkI62zokrPz4mKHfy92IvqGZ0TUz0qVBEgMOU7AaEjKPh08YDKWZpf0LGYCzkPK FqrNPUxbN/cFk/Dftc1VETIgXWRHzfY= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561--KheOTpNMVyGdt8dxjswXw-1; Mon, 28 Aug 2023 11:24:08 -0400 X-MC-Unique: -KheOTpNMVyGdt8dxjswXw-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-6491907dba4so30232016d6.1 for ; Mon, 28 Aug 2023 08:24:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693236247; x=1693841047; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fvt8AW+mIi2eZBWcexrLs2yuZIumHq8i5HiBkv83ZV4=; b=G69F2QMsK4AaoDOKc/DW4kxnz3O+jQKS9mj+TjoHjJSmbX8hLlSJAkmt94/cWTAouD 9MUbmV/czJEI2MsISHxx7m4dTr5sDN7rPPHBrgVh2vC4eXU/OzD8rNfFK9caPn49IpdC kXoL1qqhuXuPjpwbly1VNTL3W7Hvv7HKLpYSrSIP/7CiMhmZXUS5Jqjus49uAtbajnDC D1oBjwXgNk0AjKjcCEqoAN1R9zSUGLSnBsYrkAHdaYr+kv4LaGVYiy/aea2D1ChSkYW8 CgRmSDrlQgXR0eKHODZSrqeWBmEKdfui/MCTAe5IpfeSKiICx5jqeQONl1YRpFoq6W6k ay4Q== X-Gm-Message-State: AOJu0Yyvc/3XuwDYeAoVnQ9ZSitzpVqmBrJtrCY8xVoHG/EHot8qTWhk z2Kw/a1bWmPJxp8krriZZ2v2KcXY0va46eb6y6/wm3gdRIyRhug6OCAVUI3DmgsdWGRya+U++qk tSuRcsYpJ+QwCKCN16efDXDwEwQ== X-Received: by 2002:ad4:5d66:0:b0:647:225e:13cc with SMTP id fn6-20020ad45d66000000b00647225e13ccmr32576420qvb.31.1693236247637; Mon, 28 Aug 2023 08:24:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEl6XRmltSExgA8qzDmTIFQeCM0HRt2xpp2Va0ZoaBZdkg+stEwSFsNHM1N6xPTJIw21/P/hw== X-Received: by 2002:ad4:5d66:0:b0:647:225e:13cc with SMTP id fn6-20020ad45d66000000b00647225e13ccmr32576403qvb.31.1693236247434; Mon, 28 Aug 2023 08:24:07 -0700 (PDT) Received: from fedora.redhat.com ([107.171.218.122]) by smtp.gmail.com with ESMTPSA id m9-20020a0cf189000000b0063fbfbde4adsm2632860qvl.129.2023.08.28.08.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 08:24:06 -0700 (PDT) From: Adrien Thierry To: Andy Gross , Bjorn Andersson , Dmitry Baryshkov , Kishon Vijay Abraham I , Konrad Dybcio , Shazad Hussain , Vinod Koul Cc: Adrien Thierry , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v2 0/2] phy: qcom-qmp-usb: fix initialization of PCS_USB Date: Mon, 28 Aug 2023 11:23:49 -0400 Message-ID: <20230828152353.16529-1-athierry@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series attempts at making sure PCS_USB registers are properly initialized. I tested it on the sa8775p. AFAICT there's no noticeable change before/after the patch series: lsusb and dmesg output are the same. USB is still working properly. I don't know what those PCS_USB registers do exactly on the qmp PHY and I don't have access to the PHY datasheet, so it's hard for me to tell the impact of them being initialized vs not. v1 -> v2: - Don't fallback to pcs for PCS_USB initialization (Dmitry Baryshkov) Adrien Thierry (2): phy: qcom-qmp-usb: initialize PCS_USB registers phy: qcom-qmp-usb: split PCS_USB init table for sc8280xp and sa8775p drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-)