From patchwork Wed Nov 6 15:45:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13865095 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 90A012040B9 for ; Wed, 6 Nov 2024 15:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730907969; cv=none; b=YzhX0NsHelNTEwT/E2BEHvgCkyQ4axTVYpK5pCuBLO+VFk/obM6zcyRlo3FtIPq3HlVbyQHlZJ+pBgjW6koQ8d3Hy2hIo2tsQ589gJmByXxE5QZ86pDVexJrKew7lO7tVjSlbhcPfiSxZYmYxBsIF0VfMIREJ90ElQza/4dWaIE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730907969; c=relaxed/simple; bh=Q49gOcM+mbJ/X0FzkUv6ZaqCBSB1WkTEYzQp4xtHpmI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=EmE/USrndNJ7QpR9tfS/2Gw42oTmPJPJpUKMUbc6bU49DFzBGKz0L8FroiDDRXHmLbwCwjwaRHmmbNc8D86UrWxJas8DykWaRM+cpTz3t31a8AgB66t7akVT3UG3A/S8YmgYYBAtMIBHTSXlKv088G3cmsJ5cvL3vN54jIWkenw= 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=tTguHRgE; arc=none smtp.client-ip=209.85.167.54 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="tTguHRgE" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-539f8490856so7234375e87.2 for ; Wed, 06 Nov 2024 07:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730907966; x=1731512766; 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=TPNYTRPf8ptxBHF8ylH/q3ROnS54WebHSzeYDR0rcWA=; b=tTguHRgEsfCkcqN6t384GEC3zdht21+Lgdaiavo0QU5BSK3D0s3Kcc/9ULfCO3beV6 ll+TwIHVbzpC1IYyOWYq7c9WHLXzRUBomLnteR+GlRGf9vbo+iAZzDGW4akHzvD6E0Q+ WGVHyYAYDYxAPjiHTRPjLOpf8uo+SO4Kr/ZRHinEwnFiFrYtgFS8s1/hqDtO77BnvfUy shUoyWrwwzWTtykWeamoYaepyBM4HVePMJt+VDZeS4hLI6TUrvdK4mB+0Cg37CysYPWO EKveAyZElC9kcZ3s69c0YuzA5Tp5W1ui2FRJZFPfBq4JUKwCwNq+LUcE6vmAkfc7z3k3 e+Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730907966; x=1731512766; 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=TPNYTRPf8ptxBHF8ylH/q3ROnS54WebHSzeYDR0rcWA=; b=WHsj//MW5/0IFW4CyzV/E0mTzooPcoqXR9rGwnKXJjLd7xN0R/MeRd8moEpNJ6hthw aAW/dJoXsi92eVYTUhTOqJ4tneg3oqgvDx+dIaCnDd42dB3/hgjzngkqHRx/nDfe+b+C oBLMYKXGXo/hNpVgQXrHw2vh70XJcFQaYpNQPtR2UKI6RwEwKcNCIB0r99MolDbWAFzb cAMMHt+owQQAc0NOe4LGwcyF4gSAV7Npzrp9woZBxXG/ZACcdPEuZYG+7OZvGaw15x+y SM482rgspXGryzJE/AHEB2Hrx/U/XfjmWlTMtQkzq4Kl4fq1eta1V5ycZRmtzHhyqKzG qNVQ== X-Forwarded-Encrypted: i=1; AJvYcCWjJSp3wP6S3JO14fu4AN7L4whH4Xf81d9ZWrobERjoHZgj2blzxYzMfUHD+H6RyeTSYhNEWdznviE=@vger.kernel.org X-Gm-Message-State: AOJu0YzM+eOn5QkKyKtYDAYSMJHBILoRBxqC33Ky6s4eGTitqcfqvCop QvX0FA9o1c6YP0Z4XenIqmjqJnOVOwxG7UcE3jG2zS/nqPjwLzjT+kIR61vrnZc= X-Google-Smtp-Source: AGHT+IEje9ZCjPgnwh2eoFubhHb7G/8/Iew+6zmeklBYZyJn3+HazClQLCGTRuOTDb2bq/nr2kD8gA== X-Received: by 2002:a05:6512:3d16:b0:539:f763:789d with SMTP id 2adb3069b0e04-53c79e91262mr12180687e87.43.1730907965746; Wed, 06 Nov 2024 07:46:05 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53c7bc9598dsm2536626e87.22.2024.11.06.07.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 07:46:04 -0800 (PST) From: Dmitry Baryshkov Subject: [PATCH 0/2] usb: typec: ucsi: glink: fix and improve orientation handling Date: Wed, 06 Nov 2024 17:45:53 +0200 Message-Id: <20241106-ucsi-glue-fixes-v1-0-d0183d78c522@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=H4sIADGPK2cC/x3L0QpAQBBG4VfRXJvaHXLhVeRirR9TQjuRkne3u fw6nYcMSWHUFg8lXGq6bxm+LCguYZvBOmaTOKm9dw2f0ZTn9QRPesM4iIMMEhyqQPk6Ev6Qp65 /3w98cUCoYQAAAA== X-Change-ID: 20241106-ucsi-glue-fixes-a20e2b2a0e3a To: Heikki Krogerus , Greg Kroah-Hartman Cc: Heikki Krogerus , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abel Vesa , Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=718; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Q49gOcM+mbJ/X0FzkUv6ZaqCBSB1WkTEYzQp4xtHpmI=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnK487VXuui0ptL/OP97jyLJzCJD1cVnh5S8z94 gHmkVJOihiJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZyuPOwAKCRCLPIo+Aiko 1aBGCACgjxYYqsd9fF9EKZaWCqCJdjJIrN9pbh0eugxHPXCawg+Lg1in+flKfjZkyorPArG/5t3 EOsYX9MTpgY9ZVdpOrmGFXRjANaFCVBC0MUu7r2sGkhMhyqHrJsTcwPg04/Ip9PYYXzy7JpWp2Q UXvFd+ZrdRf3c+cKiwXWdx3Cm+MNkEDYgWdosK5f4zfy1ldWmZIl67L0z1vInoUH6CRmvgEK3QD V5fKYj4NKebHvovzlnoZGn0XZ164ld6Wxg6zGpOG83VayqCxxD7nhpEwn5x2xP1ca7wrYTfdtW+ VH8F8qx6Zi6R2HMY3sBiUuSbRPECq69cMP14Wbi1q2KPhUXk X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Fix an off-by-one issue which resulted in USB-C connector #2 orientation being reported as unknown. While we are at it, correct the way we set orientation_aware flag for the USB-C connectors. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (2): usb: typec: ucsi: glink: fix off-by-one in connector_status usb: typec: ucsi: glink: be more precise on orientation-aware ports drivers/usb/typec/ucsi/ucsi_glink.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- base-commit: 0a2598971f04649933bd38f5db241b3bf23c04ec change-id: 20241106-ucsi-glue-fixes-a20e2b2a0e3a Best regards,