From patchwork Wed Mar 13 03:54:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13590953 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 B4544107B6 for ; Wed, 13 Mar 2024 03:54:22 +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=1710302064; cv=none; b=Fb5EVb8OPDIWTbVpKEj2WavhxwI4HKgKkF/RuGdcRtBjwUGoxTJzsOHc6Str/1qQBVOn8JEFpUcO7G+ALzKhiLKdDEzxdfzHZeLKYlVoJeAP06XrRusmQqlxiqb52gnf18uwwUb0EVoVzA2DeLSVxu+sBPFiFE1nPO/5SGruGNY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710302064; c=relaxed/simple; bh=uuYeQvYvdPa6xmGP869tkZ5w3Kz9K6rlx7X6sdK7szI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=YTXjeEgNywH/vxRCBtbJ8D2IH78i2OqjHy/IYXbIRFZsTgz9jpan8aE9Uu2y8t9u6GRyQaWF3ccqqXzjIgXMHdVu6YRlAlVvAmt0VqkaGILZgKdfm5OfTfPsijU0wFVwVbKLCsJ6jNrFDe8wUjfwih18SCAH8IfrLTSSYLDKiD0= 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=iOzrJosK; 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="iOzrJosK" Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2d24a727f78so7600871fa.0 for ; Tue, 12 Mar 2024 20:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710302061; x=1710906861; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Ul9kMS0dDijopmqealloW1ilUpaK8SpmQOuP6iZpG7o=; b=iOzrJosKf/4P2vfyFYxlGjdPDMnBaYb0pZNWChh6287FnZGgiVGyyqm3mnTcP9V8l+ VMBB98sLzN8nYTTq3y/400VOfbHLiPxey4T32uw0Cjp2c7WWV0q9MPpyb0rDcvZ1S68N AD9JPRT3RaDVMtLAW2KH+7xbaHFNe680yh9bnuErvHm8w/a1Vdsd4ez5K5CRpm+fPO4j D5P2p78jTzqjkvbRjWGyORTiGoIa4YX1v4yClJArHEzwni8CmnWhmcSx83hqjydPnaas MFu8QtvPakQ0k/krM5rNZ2AFzsffXXnOvlqNf9idvx9d6JrEqHbuhNyJNW1G++rRFMH9 ynSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710302061; x=1710906861; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ul9kMS0dDijopmqealloW1ilUpaK8SpmQOuP6iZpG7o=; b=rpEU6gUgwRLWo1ukRkm0RC1ShjsPKrS7IrzjpY1EYa2VQnPDJQJI9tWd32Z9YB6SsR aSFB6kmSQAn0b228JTWSL2O0o88C9QZs839l8U/HETQJd2Fj26OPo7iX+K+ld0FB97v2 QI0ZNc2yNtgwAdbdkovexeTuUh0oJmeRM4hwUl32z0zQfqfh/DotwbDLd2NVQY1m6ckV xTaViZ7sJcGgb16W7/E1aNo0zQ1PRmIz0uwz5IADmEDG2o03JVDDVgR/Ld9O+83/hKwj 7kzZxuYqAwefaBhSjYHGbqWi/llILgDC3dSHMvyeSC5QQo/o5LamYgj+6RuxBcCLYykk ARFA== X-Forwarded-Encrypted: i=1; AJvYcCVivGODy+z4emE9voU8049DJRrojVukujCXzv348lpX0pvRZOnH0JDcwBQxS4WHk5clrhAx6CcvCm9PpngYGqdut+WtC70uvEOH X-Gm-Message-State: AOJu0YxZKNZWpmTX23tLR3pYzHc003Ico6NuO35yk8SEqFbCrQ5y8Ykc ikHoE3AkAeN6D8FXv56175v718IWFrPHnuSjdOakvYsKnfXxpXobS5lYIMv/FGE= X-Google-Smtp-Source: AGHT+IFFWO0p1YoK78R5xGmkweZHTNPWCkFoHXOWekR/ioaaF/xOmbY+3EHSZ9Lmr/mIoMKmse9siQ== X-Received: by 2002:a2e:9cd4:0:b0:2d4:54dc:28e3 with SMTP id g20-20020a2e9cd4000000b002d454dc28e3mr2747237ljj.28.1710302060670; Tue, 12 Mar 2024 20:54:20 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f25-20020a05651c02d900b002d0acb57c89sm1854319ljo.64.2024.03.12.20.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 20:54:20 -0700 (PDT) From: Dmitry Baryshkov Subject: [PATCH 0/7] usb: typec: ucsi: fix several issues manifesting on Qualcomm platforms Date: Wed, 13 Mar 2024 05:54:10 +0200 Message-Id: <20240313-qcom-ucsi-fixes-v1-0-74d90cb48a00@linaro.org> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGIj8WUC/x3LQQ5AMBBA0avIrE1SRYmriIXWYBaUTohEeneN5 cvPf0EoMAl02QuBbhb2e0KRZ+DWcV8IeUoGrXSlykLj6fyGlxPGmR8SNHXTTro01igL6ToC/SF N/RDjByyx2sNhAAAA To: Heikki Krogerus , Greg Kroah-Hartman , Guenter Roeck , Bjorn Andersson , Neil Armstrong , Konrad Dybcio Cc: Johan Hovold , linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1153; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=uuYeQvYvdPa6xmGP869tkZ5w3Kz9K6rlx7X6sdK7szI=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ+pH5azXzEv/mU/YY+XI72Umr/rxs/apdoM7X0MX5ZaJ5 Ypxs1h0MhqzMDByMciKKbL4FLRMjdmUHPZhx9R6mEGsTCBTGLg4BWAije0cDDM+yrCzKq48cYHp 1IP1QT+EHQR5wxh+3NTr39h6Z43ulx8TV2x51u8rK6AgeNW7irNLblcKz3reBZvjeHdYtUtP18n WXdzVu9Ln1CdVxy3ppvJJHUvX2Sxct2Z/+sw9xRmZ75tOSsaoi6lY8LuKPPmimbZB/Pr+NBmLqA Mz5aNP7PJbd0zmmMtbvmAlrbVHE6teepWpOHRN27fIWUaT1yc2M2tyIf+i6c/vNxlOTrS7MLMyz JBvmzffURf77w9bXzgsusqX8Lvf9kWj5BHPkutnzDY2n5CsF/S5Ybw0wluDN0Dkepr9pSw17cBf pUYz9gnZi066UuLGdnqtjcPuyPd9M64YWJW3bJX/d+YlAA== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Fix several issues discovered while debugging UCSI implementation on Qualcomm platforms (ucsi_glink). With these patches I was able to get a working Type-C port managament implementation. Tested on SC8280XP (Lenovo X13s laptop) and SM8350-HDK. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (7): usb: typec: ucsi: fix race condition in connection change ACK'ing usb: typec: ucsi: acknowledge the UCSI_CCI_NOT_SUPPORTED usb: typec: ucsi: make ACK_CC_CI rules more obvious usb: typec: ucsi: allow non-partner GET_PDOS for Qualcomm devices usb: typec: ucsi: limit the UCSI_NO_PARTNER_PDOS even further usb: typec: ucsi: properly register partner's PD device soc: qcom: pmic_glink: reenable UCSI on sc8280xp drivers/soc/qcom/pmic_glink.c | 1 - drivers/usb/typec/ucsi/ucsi.c | 51 +++++++++++++++++++++++++++++++++---------- 2 files changed, 39 insertions(+), 13 deletions(-) --- base-commit: ea86f16f605361af3779af0e0b4be18614282091 change-id: 20240312-qcom-ucsi-fixes-6578d236b60b Best regards,