Skip to content

pinctrl: mcp23s08: Fix probe issues

Judith Mendez linux-gpio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Add #define for base address & use instead of 0x40 hardcode base address
- Add patch 2/2

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pinctrl: mcp23s08: Initialize mcp->dev and mcp->addr before regmap initdrivers/pinctrl/pinctrl-mcp23s08_spi.c+4 -10 replies
2/2pinctrl: mcp23s08: Read spi-present-mask as u8 not u32drivers/pinctrl/pinctrl-mcp23s08_spi.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] pinctrl: mcp23s08: Fix probe issues

MCP23S18 driver probe failures on AM62L3 BeagleBadge[0].

Fix MCP23S18 probe failures found with BeagleBadge which has a MCP23S18 on board chip. Fixes are made up of initializing chip data before regmap init, and using device_property_read_u8 to match binding spec. First fix prevents kernel oops and second fix prevents MCP chip probe failure.

[0] https://github.com/beagleboard/BeagleBadge

Changes since v1:
- Add #define for base address & use instead of 0x40 hardcode base address
- Add patch 2/2

Judith Mendez (2):
pinctrl: mcp23s08: Initialize mcp->dev and mcp->addr before regmap
init
pinctrl: mcp23s08: Read spi-present-mask as u8 not u32

 drivers/pinctrl/pinctrl-mcp23s08_spi.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
Signature · 1 line
2.54.0