From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.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 E565E1E4BE for ; Thu, 19 Dec 2024 01:25:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734571557; cv=none; b=HPyfuWDtZ2YldR5XTdrS7SJ06s1GZfPDa6T5MDdDaOFysvFtgYcOZqzgycGsF7blfWsTxfHklbSr4IKIkMVCbemSLpZx4WL1JMAnmvgrEMZd0e9OueT/H3LHBCpjkyiEK4y82xDRdHkfRWB7g+PubqYP7DK1wOlM8a5CSAMxUdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734571557; c=relaxed/simple; bh=2Dsf61/7CTSu04vldpJc6g9vN2n4R3Sf+/+qxTD4tfc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AynkaUNjvQH2Hu7Rfx98XyQxiUSGdmEctRfqFwe4/cd/VMgb44APVqN2rWhgWC5syFactksBiTC+CXZYaVKUkbe3pcCS8+p75HzcL85pgofI3ph6ufrKrN4GU7xBrDpamxe78VReN/ibUeJEPkAYKTM0kTlLWrAzHVqs6AV2PCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=fBLgZMel; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="fBLgZMel" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-725dc290c00so1159896b3a.0 for ; Wed, 18 Dec 2024 17:25:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1734571555; x=1735176355; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ifr3ayHIXYnUY/bBziOfNp0H3xeqKGEAJL0/80vlIrs=; b=fBLgZMel7tOExrRTBiG1GsC6Ahc/AvQj2Y0lSGi/e906ElxlJDKRikIrltRH/KVTRT gKeDATkk8LK6rRvkeAqQhbLNlO00W1fS+y4c5rXnUkFxjH3CsiLuGrkmBxAKCkRowvrW ECUuJxcumqbsREi1Jp5seSePYws1P0VyFmGe8lZtXUZRi+YUWkpfXv4+e2GNJdgQ4A7q Ks6VshJau2iYnYNVMV0PL21KD8s7X/UPUqODLOpAwQ0HyCzg3wkmJl4mwpzsL31tvioB Q7NhfvUpI1Q7He2ACkHQD8gt2MRRiIkdiAEJ3WbdKbqJsYyqHzDK0ZNYJgz52dSW8P4P 83tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734571555; x=1735176355; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ifr3ayHIXYnUY/bBziOfNp0H3xeqKGEAJL0/80vlIrs=; b=uB5kpT9Y/GkmFs7XGnxX9Z4uKNQ/2JjdDNMZaJYC67/4B8blrE5l90BxgBeF7kDdy7 5+gR37GtYR3ZWP+dmUxYjqV7s3k1/PnuvwliqAreONOgyccIWJTs3Z1KxAlOcx4IIN28 APCuFiNwGrCBSsVs6lvqU7rHPswgq/nS2YQs4TrZ49LIxPtlUZnDKPML/nP4T5mRDzKm PdNL3KwjGRJi4P+vksepwtmHLvsDe/BDkSKJiQWOzD4QEkOGSvLljAY8xjQVmfiAnUke dYHcv/42Qsd2MdCjPLo+ESBkcOR0+FFYcB6To/I1+K9j+1i7a8uoQW5n0kRT7Mz0KnYY QelQ== X-Forwarded-Encrypted: i=1; AJvYcCX3orOt4oECqtk8PprOY+r7KDx46yNE/VCSgcvlSLaixEu5WvUquLJhZM46aRaupIlYN9HVRJ0BMEJW9Ew=@vger.kernel.org X-Gm-Message-State: AOJu0Ywq4h6GfZOHIPgSf4dq5/YNKalkgKm4NeAxjouklYG8pgntrHYk TEF1xTDuN/E3pJN3YaCz9m/X0fRGdDZp4wlKqlZAxZhxlprI8AufgZmC1Y3On9bFim+Ff8nYhCz AMA== X-Gm-Gg: ASbGncsMmXJYfo9JeOEp/qLxa0J4obVvktf1R5EWMuDQ3ioMpBg+2XQzbIqkVcejPnS 44R9exIMIeAxfRY/f5MjwQFZ03o7U6MX07P/aHNGPEv6FopEvDKL5N/KiVDWeIhAAbliHQbn2Km F9n4VJMJGHQ9DQYNkpAx6+gS7dsjcjrP731J8Nv16PviSoj59CRY62C2PSDON4mmg+sUMN2fwZH E1OPrSzbWuHL5rBM2mld40ClyyLcmOrVKPzd1RwVgIy5l5MFUAID11jH5mZXrxxP191CAAoYDJY hREDp/1AuyB260/C X-Google-Smtp-Source: AGHT+IHaUtXpvS/Hr2aDFT2gXzn/HZ2P+Vpy2i8XwtK/2MHIKvZk286tXxhVBHLLpf4XBoweUFYGfA== X-Received: by 2002:a05:6a21:3997:b0:1d9:a94:feec with SMTP id adf61e73a8af0-1e5c70190f7mr2478459637.2.1734571555057; Wed, 18 Dec 2024 17:25:55 -0800 (PST) Received: from google.com (30.176.125.34.bc.googleusercontent.com. [34.125.176.30]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad90c225sm111371b3a.197.2024.12.18.17.25.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 17:25:53 -0800 (PST) Date: Thu, 19 Dec 2024 01:25:49 +0000 From: Benson Leung To: Abhishek Pandit-Subedi Cc: heikki.krogerus@linux.intel.com, tzungbi@kernel.org, linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev, akuchynski@google.com, sboyd@kernel.org, pmalani@chromium.org, badhri@google.com, rdbabiera@google.com, dmitry.baryshkov@linaro.org, jthies@google.com, Bill Wendling , Greg Kroah-Hartman , Justin Stitt , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v5 4/8] usb: typec: Print err when displayport fails to enter Message-ID: References: <20241213233552.451927-1-abhishekpandit@chromium.org> <20241213153543.v5.4.I6cff9d767b0f8ab6458d8940941e42c920902d49@changeid> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tnXtIProi7xyxxSe" Content-Disposition: inline In-Reply-To: <20241213153543.v5.4.I6cff9d767b0f8ab6458d8940941e42c920902d49@changeid> --tnXtIProi7xyxxSe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 13, 2024 at 03:35:45PM -0800, Abhishek Pandit-Subedi wrote: > Print the error reason for typec_altmode_enter so users can understand > why displayport failed to enter. >=20 > Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Benson Leung > --- >=20 > Changes in v5: > - Put dev_err on single line. > - Slip clang-format a washington to look the other way. >=20 > drivers/usb/typec/altmodes/displayport.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec= /altmodes/displayport.c > index 3245e03d59e6..ac84a6d64c2f 100644 > --- a/drivers/usb/typec/altmodes/displayport.c > +++ b/drivers/usb/typec/altmodes/displayport.c > @@ -252,7 +252,7 @@ static void dp_altmode_work(struct work_struct *work) > case DP_STATE_ENTER: > ret =3D typec_altmode_enter(dp->alt, NULL); > if (ret && ret !=3D -EBUSY) > - dev_err(&dp->alt->dev, "failed to enter mode\n"); > + dev_err(&dp->alt->dev, "failed to enter mode: %d\n", ret); > break; > case DP_STATE_ENTER_PRIME: > ret =3D typec_cable_altmode_enter(dp->alt, TYPEC_PLUG_SOP_P, NULL); > --=20 > 2.47.1.613.gc27f4b7a9f-goog >=20 >=20 --tnXtIProi7xyxxSe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCZ2N2HQAKCRBzbaomhzOw whX+AQDbKOoKjJw/ywfmFiIx+z/bwE9H8nxc+cnA77TQLewf/gD7BdIO9xpPe+WT 6MxZLxwAWDTtUQuMW4ewsFAM/8ss4QQ= =LfMz -----END PGP SIGNATURE----- --tnXtIProi7xyxxSe--