Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2543759lqb; Tue, 28 May 2024 03:20:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyaLkyrlHSsnKvjbN0Wl2WnJjIrNl8iNWZJbSzarDZ+rip4WYv5gKlzwo7fMgb/aMy6B3gV/xfzhu7Uk5xd/aSxjtd8rP08vkxAxTdKg== X-Google-Smtp-Source: AGHT+IFaIjxS4UFya00QGocGfgOg+Gdxmouz8KrFf0Jva22NPTulnuTCInMsMypS4uJtPb6gkD/N X-Received: by 2002:a05:6214:5d86:b0:6a8:ca37:c8fe with SMTP id 6a1803df08f44-6abbbc0c2femr122188356d6.6.1716891652585; Tue, 28 May 2024 03:20:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716891652; cv=pass; d=google.com; s=arc-20160816; b=S5rhwwEGNZ1kzOGFaL1ni0PqqMFs8czClnfvAyjJaUJNlDeXkcGqYYTBJvWjTrm9XB wKjr9mFaIVntkY6rPvZz4v6dGbHUcSU3v74KnYMpIZ0g6X1dZU3T+zym8L4rQUUZZdiQ NU+olruvXHaNHUEx0RejMjAJikr8BlFY5eFy6i+nYyUXwGIjF2bwzmaqfDWcThYtgjPY 5FGe1c58ZeRA0oVGSq9J/mgeWrI+Szr2pfOS07rzxvh6YeWcHMSQMTeRbYrF/89r3CMJ qozEtOAVT0zPRCrtRix1fIGZitY4AiZ7uwObgl2l561QpEisXKsChQeB/wcJMXvsfbFn m4+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=amToApSarLSNqnXhX0wNJ/SchkoaLpTlnt9nLIsw7Xw=; fh=uZ9fwDGAJTD4qTLbDZSlyY1iCL0JjAF5oxvOang+BXg=; b=j+gO9pMpnbKADvrsUjKQFfKEMBDz+hdkWzHCRvzKL/Bu1EHVsBTNi3ohOfQP6UiunA xN9qe8LOgWR2H15TxE4Zbj0la+XXwEQnQm46ZKkyurxihxFP6NE36kIoeSHzYPVh869z E6pTYnfrhvcpW0g2BLSrSg809WyykC9mXCUNO++oTyG6F2MdPWQlbQQjLPMJxfxWpm72 f9jkyeBHmlrEyxWblsxX60ez05BTIp0qC29DM9nk2jQ1HNr2wGb3fqxBY5XVj0wfaCg6 pwmr+ShPC90+5HkgXhIK7tK66gaZ8TSZkTPuQQVm57JeW6EAaRsoqZ/8HS41870L5Z1c E3JA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vcf9VNi4; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-192097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac06f4f8f3si101497596d6.16.2024.05.28.03.20.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vcf9VNi4; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-192097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 50F4E1C22C50 for ; Tue, 28 May 2024 10:20:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4386916B74A; Tue, 28 May 2024 10:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Vcf9VNi4" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE89C16B729; Tue, 28 May 2024 10:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891636; cv=none; b=KYQ+v9pBoCxmR1SwIGYHQIrX4ZMWRaRPDYvnd5M7EMm7/NJyAICCZMoxxx90I9fOWgYJWKhBbrGeAQ3CAF7pPkn9YHXWb6MbXYlbuywPkYviHRm5X5V235nx3rIfPUA1P0/YhvRRw4dgY1bu2PG/4DvLBwF+Xf5GJav3gh7ff34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891636; c=relaxed/simple; bh=ViR8Udm3r/8e8RITNn1t7ns7zufnKVllfdjhJnE/Dvs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r2x7c+c85tWrAFDFct/zSydDAEaiSJDxIVIgyoy9dBbSuS/keebJgHG4ixP3TdKXu/Z2giVp/cAFYGGYWQpR8OXtwuGkD/Dz0LhvQ+J4X6f/Nb1zC9TRHsqco65lvYR47tb1elg/zyQk/9Y5PZSiSBYlImSYr+Nb80gP5p5nvf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Vcf9VNi4; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPA id 4D0DE24000B; Tue, 28 May 2024 10:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716891629; 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=amToApSarLSNqnXhX0wNJ/SchkoaLpTlnt9nLIsw7Xw=; b=Vcf9VNi4oHVeaX/E9kYettn+xE2HkeMekUBAz7m8jxAWawVImMompaxF05MT7VUAVqGD09 EY9yGRfRa5E3HexRQf+yD4Ng16ORCE9XPnMJSOYkU5HNuihzDlF3lWD78hpWjV5QpEAaIq 22ZVHCszbVvXOXhaWVczfVBsVGFL23qlt/5ASmqDAHmZ5y9j55E//Yg8tNmU0tDrnTVXNi mkjw0GXvDmASHLZy8luNQtpoccFlHysn7tlseV7afxknTDXmdzwVckxn28AaRraUne9JkE fmsL6ee7uBSIGk5ak2ttjutCD5flBeT85cIXcCdtOi9H4eqvQJhgxmia2H8cbg== From: Bastien Curutchet To: Vinod Koul , Kishon Vijay Abraham I , Bin Liu , Greg Kroah-Hartman Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Thomas Petazzoni , herve.codina@bootlin.com, christophercordahi@nanometrics.ca, Bastien Curutchet Subject: [PATCH 0/4] usb: davinci: Add PM runtime support and improve HOST only mode support Date: Tue, 28 May 2024 12:20:22 +0200 Message-ID: <20240528102026.40136-1-bastien.curutchet@bootlin.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: bastien.curutchet@bootlin.com Hi all, I've worked on adding PM runtime support on the DAVINCI's USB PHY controller. It revealed some bugs in the MUSB controller that I fixed in the last three patches. The platform I work on uses the MUSB controller in HOST-only mode and has been designed to save as much energy as possible. To do so, the USB's VBUS supply can be cut off by toggling a GPIO, this triggers the bug fixed by patch 2. If an USB stick gets unplugged, then plugged back while the PHY is in suspend state, a BABBLE error happens. This BABBLE can't be recovered. This is fixed by last patch. Bastien Curutchet (4): phy: ti: phy-da8xx-usb: Add runtime PM support Revert "usb: musb: da8xx: Set phy in OTG mode by default" usb: musb: da8xx: Remove try_idle implementation from host-only mode usb: musb: da8xx: Implement BABBLE recovery drivers/phy/ti/phy-da8xx-usb.c | 49 ++++++++++++++++++++++++++++++++++ drivers/usb/musb/da8xx.c | 20 ++++++++------ 2 files changed, 61 insertions(+), 8 deletions(-) -- 2.44.0