Skip to contentSkip to conversation

PCI: brcmstb: fix a missing if statement on a return error check

PATCH Jim Quinlan 2 participants 2 messages Sep 22, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Markus Elfring
Quoted 2 lines

The error return ret is not being check with an if statement and

Wording alternative:
The return value from a call of the function “brcm_phy_start” was not checked and

Quoted 2 lines

V2: disable clock as noted by Florian Fainelli and suggested by
Jim Quinlan.

Quoted 8 lines

Alex Dewar contributed another update suggestion.

[PATCH v2] PCI: brcmstb: Add missing if statement and error path
https://lore.kernel.org/linux-arm-kernel/[email protected]/
https://lore.kernel.org/patchwork/patch/1309860/

The exception handling needs further development considerations for this function implementation.

Hello,

I agree with Alex's patch. I should have suggested this at the beginning but as our upstream STB suspend/resume is not yet functional and the one-line change would have worked until we fixed suspend/resume.. But this is the proper modification.

Thanks,
Jim

Quoted 2 lines

Regards,
Markus

#2 lore raw
Quoted 17 lines · Jim Quinlan
Quoted 16 lines · Markus Elfring
Quoted 2 lines

The error return ret is not being check with an if statement and

Wording alternative:
The return value from a call of the function “brcm_phy_start” was not checked and

Quoted 2 lines

V2: disable clock as noted by Florian Fainelli and suggested by
Jim Quinlan.

Alex Dewar contributed another update suggestion.

[PATCH v2] PCI: brcmstb: Add missing if statement and error path
https://lore.kernel.org/linux-arm-kernel/[email protected]/
https://lore.kernel.org/patchwork/patch/1309860/

Quoted 8 lines
Quoted 2 lines

The exception handling needs further development considerations for this function implementation.

Hello,

I agree with Alex's patch. I should have suggested this at the beginning but as our upstream STB suspend/resume is not yet functional and the one-line change would have worked until we fixed suspend/resume.. But this is the proper modification.

Yup, go with Alex's patch. That one is correct.

Quoted 5 lines

Thanks,
Jim

Quoted 2 lines

Regards,
Markus