Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1573510
| From | Rafał Miłecki <rafal@milecki.pl> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/2] net: ethernet: bgmac: init sequence bug |
| Date | 2017-02-04 00:10 +0100 |
| Message-ID | <t6UGm-809-17@gated-at.bofh.it> (permalink) |
| References | <t6Thf-7ai-3@gated-at.bofh.it> <t6Thf-7ai-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 02/03/2017 10:08 PM, Jon Mason wrote:
> @@ -61,15 +60,20 @@ static bool platform_bgmac_clk_enabled(struct bgmac *bgmac)
>
> static void platform_bgmac_clk_enable(struct bgmac *bgmac, u32 flags)
> {
> - bgmac_idm_write(bgmac, BCMA_IOCTL,
> - (BCMA_IOCTL_CLK | BCMA_IOCTL_FGC | flags));
> + u32 val;
> +
> + val = bgmac_idm_read(bgmac, BCMA_IOCTL);
> + /* Some bits of BCMA_IOCTL set by HW/ATF and should not change */
> + val |= flags & ~(BGMAC_AWCACHE | BGMAC_ARCACHE | BGMAC_AWUSER |
> + BGMAC_ARUSER);
> + val |= BGMAC_CLK_EN;
> bgmac_idm_read(bgmac, BCMA_IOCTL);
This read was previously following write op most likely to flush it or
something. I don't think it makes any sense to read after read.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 1/2] net: ethernet: bgmac: init sequence bug Jon Mason <jon.mason@broadcom.com> - 2017-02-03 22:10 +0100 Re: [PATCH v2 1/2] net: ethernet: bgmac: init sequence bug Jon Mason <jon.mason@broadcom.com> - 2017-02-03 23:40 +0100 Re: [PATCH v2 1/2] net: ethernet: bgmac: init sequence bug Rafał Miłecki <rafal@milecki.pl> - 2017-02-04 00:10 +0100
csiph-web