Skip to content

Commit

Permalink
pcmcia vs. MECR on pxa25x/sa1111
Browse files Browse the repository at this point in the history
After 2.6.34 changes, __pxa2xx_drv_pcmcia_probe() was replaced by
sa1111_pcmcia_add(). That unfortunately means that configure_sockets()
is not called, leading to MECR not being set properly, leading to
strange crashes.

Tested on pxa255+sa1111, I do not have lubbock board nearby. Perhaps
cleaner solution exists?

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
  • Loading branch information
Pavel Machek authored and Dominik Brodowski committed Feb 19, 2011
1 parent d5bb292 commit 5b70368
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/pxa2xx_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pxa2xx_pcmcia_frequency_change(struct soc_pcmcia_socket *skt,
}
#endif

static void pxa2xx_configure_sockets(struct device *dev)
void pxa2xx_configure_sockets(struct device *dev)
{
struct pcmcia_low_level *ops = dev->platform_data;
/*
Expand Down
1 change: 1 addition & 0 deletions drivers/pcmcia/pxa2xx_base.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt);
void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops);
void pxa2xx_configure_sockets(struct device *dev);

1 change: 1 addition & 0 deletions drivers/pcmcia/pxa2xx_lubbock.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ int pcmcia_lubbock_init(struct sa1111_dev *sadev)
lubbock_set_misc_wr((1 << 15) | (1 << 14), 0);

pxa2xx_drv_pcmcia_ops(&lubbock_pcmcia_ops);
pxa2xx_configure_sockets(&sadev->dev);
ret = sa1111_pcmcia_add(sadev, &lubbock_pcmcia_ops,
pxa2xx_drv_pcmcia_add_one);
}
Expand Down

0 comments on commit 5b70368

Please sign in to comment.