From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751398AbdCQPZz (ORCPT ); Fri, 17 Mar 2017 11:25:55 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:58166 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295AbdCQPZt (ORCPT ); Fri, 17 Mar 2017 11:25:49 -0400 Date: Fri, 17 Mar 2017 16:25:38 +0100 From: Pavel Machek To: Sebastian Reichel Cc: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , Rob Herring , Tony Lindgren , Greg Kroah-Hartman , Jiri Slaby , Mark Rutland , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/10] Bluetooth: hci_uart: add support for word alignment Message-ID: <20170317152538.GB8723@amd> References: <20170304115833.3538-1-sre@kernel.org> <20170304115833.3538-4-sre@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kXdP64Ggrk/fb43R" Content-Disposition: inline In-Reply-To: <20170304115833.3538-4-sre@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kXdP64Ggrk/fb43R Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > This will be used by Nokia's H4+ protocol, which > uses 2-byte aligned packets. >=20 > Signed-off-by: Sebastian Reichel Acked-by: Pavel Machek > --- a/drivers/bluetooth/hci_h4.c > +++ b/drivers/bluetooth/hci_h4.c > @@ -171,9 +171,20 @@ struct sk_buff *h4_recv_buf(struct hci_dev *hdev, st= ruct sk_buff *skb, > const unsigned char *buffer, int count, > const struct h4_recv_pkt *pkts, int pkts_count) > { > + struct hci_uart *hu =3D hci_get_drvdata(hdev); > + uint8_t alignment =3D hu->alignment; I'd do u8 here, too, for consistency with struct below (and becuase uint8_t is somehow unusual in kernel). > @@ -92,6 +92,9 @@ struct hci_uart { > =20 > unsigned int init_speed; > unsigned int oper_speed; > + > + u8 alignment; > + u8 padding; > }; > =20 Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --kXdP64Ggrk/fb43R Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAljL//IACgkQMOfwapXb+vKVdgCfbmJvP9y9Up37bQKrjnr1ewkv 13oAn1M/GRkTaeFLnU+jCJUoMePOa4vA =ZJTZ -----END PGP SIGNATURE----- --kXdP64Ggrk/fb43R--