Thread (6 messages) flat view 6 messages, 3 authors, 2014-06-02

Re: [PATCH 1/2] rt2800usb:fix efuse detection

From: Stanislaw Gruszka <hidden>
Date: 2014-06-02 13:08:28
Also in: lkml, netdev

On Sun, Jun 01, 2014 at 11:06:11PM +0400, Sergei Shtylyov wrote:
quoted
+	rt2x00usb_vendor_request(rt2x00dev, USB_DEVICE_MODE,
+				 USB_VENDOR_REQUEST_IN, 0, 0x11, &fwMode,
+				 sizeof(fwMode), REGISTER_TIMEOUT_FIRMWARE);
+
+	if ((fwMode & 0x00000003) == 2)
   Operating directly on '__le32'? That doesn't look right.
rt2x00usb_register_read() helper can be used to do conversion. I also
dislike using 0x11 number instead of register name and prefer kernel
like variable names (i.e. fw_mode instead of fwMode).

Thanks
Stanislaw
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help