mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [bug report] HID: playstation: DS4: Don't fail on calibration data request
       [not found] <d0e5bb97-3e18-44ac-89b0-503cfe16417f@moroto.mountain>
@ 2024-04-08 14:44 ` Max Staudt
  2024-04-12 14:57   ` Max Staudt
  0 siblings, 1 reply; 4+ messages in thread
From: Max Staudt @ 2024-04-08 14:44 UTC (permalink / raw)
  To: Dan Carpenter, Jiri Kosina
  Cc: linux-input, linux-kernel, Roderick Colenbrander

On 4/8/24 09:41, Dan Carpenter wrote:
> Hello Max Staudt,
> 
> Commit a48a7cd85f55 ("HID: playstation: DS4: Don't fail on
> calibration data request") from Feb 8, 2024 (linux-next), leads to
> the following Smatch static checker warning:
> 
> drivers/hid/hid-playstation.c:1904 dualshock4_get_calibration_data() error: uninitialized symbol 'acc_x_minus'.
> drivers/hid/hid-playstation.c:1904 dualshock4_get_calibration_data() error: uninitialized symbol 'acc_x_plus'.
> drivers/hid/hid-playstation.c:1910 dualshock4_get_calibration_data() error: uninitialized symbol 'acc_y_minus'.
> drivers/hid/hid-playstation.c:1910 dualshock4_get_calibration_data() error: uninitialized symbol 'acc_y_plus'.
> drivers/hid/hid-playstation.c:1916 dualshock4_get_calibration_data() error: uninitialized symbol 'acc_z_minus'.
> drivers/hid/hid-playstation.c:1916 dualshock4_get_calibration_data() error: uninitialized symbol 'acc_z_plus'.


Hi Dan, Jiri,

Thanks for the report!


Jiri, if you prefer to do so, please feel free to stop/revert this patch for now, and I'll send a better one soon.

The label "no_buffer_tail_check" was meant to jump straight to the sanity checks in order to have them write the fallback calibration values. But I missed that the part in between the two sanity checks can actually make the second sanity check pass with bogus values - as shown by Dan's check.


Max


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report] HID: playstation: DS4: Don't fail on calibration data request
  2024-04-08 14:44 ` [bug report] HID: playstation: DS4: Don't fail on calibration data request Max Staudt
@ 2024-04-12 14:57   ` Max Staudt
  2024-04-12 15:01     ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Max Staudt @ 2024-04-12 14:57 UTC (permalink / raw)
  To: Dan Carpenter, Jiri Kosina
  Cc: linux-input, linux-kernel, Roderick Colenbrander

On 4/8/24 23:44, Max Staudt wrote:
> On 4/8/24 09:41, Dan Carpenter wrote:
>> Hello Max Staudt,
>>
>> Commit a48a7cd85f55 ("HID: playstation: DS4: Don't fail on
>> calibration data request") from Feb 8, 2024 (linux-next), leads to
>> the following Smatch static checker warning:
>>
>> [...]
> 
> 
> Hi Dan, Jiri,
> 
> Thanks for the report!
> 
> 
> Jiri, if you prefer to do so, please feel free to stop/revert this patch for now, and I'll send a better one soon.
> 
> [...]

Jiri,

Would you like me to send a patch on top of the existing one, or a completely fresh one?


Max


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report] HID: playstation: DS4: Don't fail on calibration data request
  2024-04-12 14:57   ` Max Staudt
@ 2024-04-12 15:01     ` Jiri Kosina
  2024-04-12 15:23       ` Max Staudt
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2024-04-12 15:01 UTC (permalink / raw)
  To: Max Staudt
  Cc: Dan Carpenter, linux-input, linux-kernel, Roderick Colenbrander

On Fri, 12 Apr 2024, Max Staudt wrote:

> >> Commit a48a7cd85f55 ("HID: playstation: DS4: Don't fail on 
> >> calibration data request") from Feb 8, 2024 (linux-next), leads to 
> >> the following Smatch static checker warning:
> >>
> >> [...]
> > 
> > 
> > Hi Dan, Jiri,
> > 
> > Thanks for the report!
> > 
> > 
> > Jiri, if you prefer to do so, please feel free to stop/revert this 
> > patch for now, and I'll send a better one soon.
> > 
> > [...]
> 
> Jiri,
> 
> Would you like me to send a patch on top of the existing one, or a completely
> fresh one?

Max,

please send a followup one with proper Fixes: tag. We're generally not 
rebasing the tree.

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report] HID: playstation: DS4: Don't fail on calibration data request
  2024-04-12 15:01     ` Jiri Kosina
@ 2024-04-12 15:23       ` Max Staudt
  0 siblings, 0 replies; 4+ messages in thread
From: Max Staudt @ 2024-04-12 15:23 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Dan Carpenter, linux-input, linux-kernel, Roderick Colenbrander

On 4/13/24 00:01, Jiri Kosina wrote:
> Max,
> 
> please send a followup one with proper Fixes: tag. We're generally not
> rebasing the tree.

Instead of rebasing, I was wondering whether you were intending to revert the faulty patch first :)

Thanks, will do!



Max


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-12 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <d0e5bb97-3e18-44ac-89b0-503cfe16417f@moroto.mountain>
2024-04-08 14:44 ` [bug report] HID: playstation: DS4: Don't fail on calibration data request Max Staudt
2024-04-12 14:57   ` Max Staudt
2024-04-12 15:01     ` Jiri Kosina
2024-04-12 15:23       ` Max Staudt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®