[lkml]   [2011]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 5/8] staging: vme: add functions for bridge module refcounting
    On Wed, Aug 03, 2011 at 16:06:30 +0200, Manohar Vanga wrote:
    > Hey Martyn,
    > > Can we not do this inside vme_master_request, vme_slave_request, etc?
    > >
    > > I.e. Add reference count when resources are given out.
    > >
    > > This would then be done in the vme_*_free routines.
    > I agree this would be much better. I will change this and resend :)

    To me it seems better to keep this as is, to be
    used by .probe and .release methods, in the same way
    usb_get_dev() and usb_put_dev() are used by usb drivers.

    Hiding refcounts under the resource accessors will just
    complicate things unnecessarily. Modifying refcounts
    should always be explicit unless there's a very good
    reason against it.


     \ /
      Last update: 2011-08-03 18:23    [W:0.037 / U:10.700 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site