On Mon, Apr 15, 2019 at 5:40 PM Andrzej Pietrasiewicz
wrote:
>
> Hi Peter,
>
>
>
> >>
> >> Can you please describe your use case?
> >>
> >> Andrzej
> >
> > I would like to change parameters for function driver through configfs,
> > below is the example for ncm and f_sourcesink cases,
> > thanks.
Hi Peter,
Can you please describe your use case?
Andrzej
I would like to change parameters for function driver through configfs, below
is the example for ncm and f_sourcesink cases,
thanks.
if [ "$FUNC" == "ncm" ]; then
mkdir functions/$FUNC".0"
ln -s functions/$FUNC".0" configs/c.1
echo
> >
> >>>
> >>> Andrzej, would you tell us why you introduce refcnt for driver's
> >>> configfs opts? And why it is needed to judge for "store" operation?
> >>>
> >>
> >> The reason is that a function can be linked to more than one
> >> configuration. Imagine this sequence: you create a function,
Hi Peter,
W dniu 08.04.2019 o 09:00, Peter Chen pisze:
Andrzej, would you tell us why you introduce refcnt for driver's
configfs opts? And why it is needed to judge for "store" operation?
The reason is that a function can be linked to more than one configuration.
Imagine
this sequence: y
> >
> > Andrzej, would you tell us why you introduce refcnt for driver's
> > configfs opts? And why it is needed to judge for "store" operation?
> >
>
> The reason is that a function can be linked to more than one configuration.
> Imagine
> this sequence: you create a function, set its paramete
Hi Peter,
W dniu 04.04.2019 o 09:35, Peter Chen pisze:
Peter Chen writes:
Hi Felipe,
Do you know why? In that case, I can't change property, eg changing
qmult at NCM like below:
mkdir functions/ncm.0
ln -s functions/ncm.0 configs/c.1
echo 10 > functions/ncm.0/qmult
That check loo
>
> Peter Chen writes:
> > Hi Felipe,
> >
> > Do you know why? In that case, I can't change property, eg changing
> > qmult at NCM like below:
> >
> > mkdir functions/ncm.0
> > ln -s functions/ncm.0 configs/c.1
> > echo 10 > functions/ncm.0/qmult
> >
> > The code:
> > drivers/usb/gadget/functio
Hi,
Peter Chen writes:
> Hi Felipe,
>
> Do you know why? In that case, I can't change property, eg changing qmult at
> NCM
> like below:
>
> mkdir functions/ncm.0
> ln -s functions/ncm.0 configs/c.1
> echo 10 > functions/ncm.0/qmult
>
> The code:
> drivers/usb/gadget/function/u_ether_configfs.h
Hi Felipe,
Do you know why? In that case, I can't change property, eg changing qmult at NCM
like below:
mkdir functions/ncm.0
ln -s functions/ncm.0 configs/c.1
echo 10 > functions/ncm.0/qmult
The code:
drivers/usb/gadget/function/u_ether_configfs.h
static ssize_t _f_##_opts_qmult_store(struct