Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1380589
| From | Neil Armstrong <narmstrong@baylibre.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] clocksource: sp804: Add support for OX810SE 24bit timer width |
| Date | 2016-04-16 21:10 +0200 |
| Message-ID | <roDLs-8sy-29@gated-at.bofh.it> (permalink) |
| References | <rj8ff-5EH-13@gated-at.bofh.it> <rj8fg-5EH-35@gated-at.bofh.it> <rj9kZ-6nD-1@gated-at.bofh.it> |
| Organization | Baylibre |
On 04/01/2016 05:33 PM, Mathieu Poirier wrote: > On 1 April 2016 at 08:22, Neil Armstrong <narmstrong@baylibre.com> wrote: Hi Matthieu, Thanks for the review. >> + /* OX810SE Uses a special 24bit width */ >> + if (of_device_is_compatible(np, "oxsemi,ox810se-rps-timer")) >> + width = 24; > > Wouldn't it be better to add a new optional property for this? If the > property is not specified then we default to a width of 32. Otherwise > the new width is configured. That way we don't have to add a new > compatible string every time (however often) a special width is > encountered. As explained by Rob Herring, this HW is compatible with SP804 but is /not/ an IP from ARM and has been customized to support 24bit. Having a DT property for this width is not wanted actually since it makes no sense for the original SP804 IP, so it should be handled per vendor. > > Otherwise I think the code facelift looks good, > Mathieu Is there any other blocking points ? The point to have a change on sp804 is to economize a new very similar driver for oxnas. Neil
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH 1/2] clocksource: sp804: Add support for OX810SE 24bit timer width Neil Armstrong <narmstrong@baylibre.com> - 2016-04-16 21:10 +0200
csiph-web