thunderbolt: Fix for v5.6-rc6

This includes a single commit that fixes incorrect return value from
 tb_port_is_width_supported() if the read fails.
 -----BEGIN PGP SIGNATURE-----
 
 iQJUBAABCgA+FiEEVTdhRGBbNzLrSUBaAP2fSd+ZWKAFAl5niXMgHG1pa2Eud2Vz
 dGVyYmVyZ0BsaW51eC5pbnRlbC5jb20ACgkQAP2fSd+ZWKCuJQ/+JTm9I7cR1UnM
 EJ+iM16tgNGXwumq3rVfFogqdwicAX0kpTaQEPklmL9mxZ4T5vjvoUve4+vMan1b
 6slstxJxLk5Yx/Ne68ikuN6cjb4XeojijhOgVw8t+IjnJi0JZdByxNTlhjUZwNSm
 72Z8BqhWc46xY7BRHNnRtkOZxoHnrnOSjNit1x4Ts+tBiiUT5WhrWweBXYk7YIo7
 /T1dV2169Cb4H8INdOW4wU5o/Cq/ozTaVIHRld6Z5b6YGIuUEoymCsQmdWvM7pG6
 CW/MHjCZZgP3/yzbqb/xsCnqi0p2Fxd9xmQTyx17V68w3ZhvgJluvd3geRzCa9SY
 Gjbca22K9blAhwaMl36vwwyI/Q+Wa/I/nJqEyoITQJq58KRJVyp+1XtLxPm89xpp
 tKj3U9QPcLeA6jEMDaKm+jWcn2F6EkVBQrq631qrcbkA7xTS3jDRHppSIKRgjpe0
 Ni/xnMGM6pyDC2tedR+PNnyCdhi1ViKMmElSLB7HzCYCDKQWw1AmBSjgo/y6ndni
 vfvaZ/3rMECLc9xxoW+Udt2K0JvsDJojadzz1ngo3L3e8woTgOVlmbUS4JZOBHdv
 UYF3vZCnDpNXng/J9Ni6pPqTw9v9UdQ6SHnu6C6hwekH4vqprwCsp64AHpv17/Lu
 OTUzlaw1OmvDPrdgsd6+EZOTU1UWeX8=
 =kIEr
 -----END PGP SIGNATURE-----

Merge tag 'thunderbolt-fix-for-v5.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-linus

Mika writes:

thunderbolt: Fix for v5.6-rc6

This includes a single commit that fixes incorrect return value from
tb_port_is_width_supported() if the read fails.

* tag 'thunderbolt-fix-for-v5.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt:
  thunderbolt: Fix error code in tb_port_is_width_supported()
This commit is contained in:
Greg Kroah-Hartman 2020-03-10 17:42:55 +01:00
commit c08ab390b6

View File

@ -954,7 +954,7 @@ static bool tb_port_is_width_supported(struct tb_port *port, int width)
ret = tb_port_read(port, &phy, TB_CFG_PORT,
port->cap_phy + LANE_ADP_CS_0, 1);
if (ret)
return ret;
return false;
widths = (phy & LANE_ADP_CS_0_SUPPORTED_WIDTH_MASK) >>
LANE_ADP_CS_0_SUPPORTED_WIDTH_SHIFT;