Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2011 17:28:12 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>, re@freebsd.org, "svn-src-stable@freebsd.org" <svn-src-stable@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "Robert N. M. Watson" <rwatson@freebsd.org>, "svn-src-stable-8@freebsd.org" <svn-src-stable-8@freebsd.org>
Subject:   Re: Request for patch approval (Re: svn commit: r225458 - in stable/8/sys: dev/usb dev/usb/quirk dev/usb/storage sys)
Message-ID:  <20110910142812.GO17489@deviant.kiev.zoral.com.ua>
In-Reply-To: <201109101540.16656.hselasky@c2i.net>
References:  <D2195F50-8958-41DC-AA26-AEF3156F369B@freebsd.org> <3406F3E2-56E6-47FF-8A60-10DD9F3B3D10@FreeBSD.org> <201109101540.16656.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--hp0y2R9lOm5A3xbf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 10, 2011 at 03:40:16PM +0200, Hans Petter Selasky wrote:
>=20
> > Right -- exactly my point. If this change breaks third-party compiled U=
SB
> > device drivers, then our current approach to device driver KBIs does not
> > allow it to be MFC'd in this form. Are there ways you can reformulate t=
he
> > change to avoid breaking those drivers? Sometimes this can be done by
> > adding new symbols, rather than replacing currently symbols, although
> > mileage varies.
>=20
> Hi,
>=20
> Here is my proposal:
>=20
> Implement test for automatic quirks in function which has access to the U=
SB=20
> device structure. This decouples the structure change in "struct=20
> usbd_lookup_info".
>=20
> The only structure which needs change is "struct usb_device". In 9-curren=
t=20
> this structure will be kept as is. In 8-stable the new element will be mo=
ved=20
> to the end of the structure like suggested, and then there shouldn't be a=
ny=20
> problems.
>=20
> Please find patches attached.
>=20
> --HPS
>=20
> Commit message:
>=20
> Refactor auto-quirk solution so that we break as few external
> drivers as possible.
>=20
> PR:             usb/160299
> Approved by:    re (kib)
> Suggested by:   rwatson
> MFC after:      0 days
>=20
First, can you, please, regenerate the diff for stable/8 against the
code before r225458 ? I want to read diff to see ABI change, assuming
r225458 was not done at all.

Second, you cannot decrement __FreeBSD_version. In fact, you shall increment
it once more in the patch for stable/8.



--hp0y2R9lOm5A3xbf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk5rc/sACgkQC3+MBN1Mb4jVFACgjL7UAnc6xBYTPg6siFESXQWR
u1AAoOYptIt4IoKezFbzPJdrrOKgqfcm
=jOV4
-----END PGP SIGNATURE-----

--hp0y2R9lOm5A3xbf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110910142812.GO17489>