Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1362153 > unrolled thread

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

Started byGreg KH <gregkh@linuxfoundation.org>
First post2016-03-21 22:10 +0100
Last post2016-03-23 02:40 +0100
Articles 4 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of  kcalloc Greg KH <gregkh@linuxfoundation.org> - 2016-03-21 22:10 +0100
    Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc DaeSeok Youn <daeseok.youn@gmail.com> - 2016-03-22 08:50 +0100
      Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of  kcalloc Greg KH <gregkh@linuxfoundation.org> - 2016-03-22 14:10 +0100
        Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc DaeSeok Youn <daeseok.youn@gmail.com> - 2016-03-23 02:40 +0100

#1362153 — Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

FromGreg KH <gregkh@linuxfoundation.org>
Date2016-03-21 22:10 +0100
SubjectRe: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc
Message-ID<rfffl-2ON-29@gated-at.bofh.it>
On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote:
> the tty_alloc_driver() can allocate memory for ttys and termios.
> And also it can release allocated memory easly with using
> put_tty_driver().
> 
> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>

But you broke the driver in the previous patch, you can't do that, each
patch has to be 'stand-alone'.

thanks,

greg k-h

[toc] | [next] | [standalone]


#1362392 — Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

FromDaeSeok Youn <daeseok.youn@gmail.com>
Date2016-03-22 08:50 +0100
SubjectRe: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc
Message-ID<rfpeG-1f1-17@gated-at.bofh.it>
In reply to#1362153
2016-03-22 6:05 GMT+09:00 Greg KH <gregkh@linuxfoundation.org>:
> On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote:
>> the tty_alloc_driver() can allocate memory for ttys and termios.
>> And also it can release allocated memory easly with using
>> put_tty_driver().
>>
>> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
>
> But you broke the driver in the previous patch, you can't do that, each
> patch has to be 'stand-alone'.
I am not sure about 'stand-alone'. this patch has to have dependency on
previous patch..

I am not sure how to make a series of patches that are related with others.

In this series of patches, 1/3 was failed to merge because changelog entry was
missing. So other patches(2/3, 3/3) was breaking working codes.
I will resend this patch with previous and check more before sending
these patches.
Sorry for the noise..

And I have a question not related this thread,
I had been waiting my patches merged and also have other patches on
same file(in case of dgnc).
I couldn't send next patches until previous patches are taken.
How can I manage my patches for this case?

thanks.

regards,
Daeseok.

>
> thanks,
>
> greg k-h

[toc] | [prev] | [next] | [standalone]


#1362709

FromGreg KH <gregkh@linuxfoundation.org>
Date2016-03-22 14:10 +0100
Message-ID<rfuel-4Pn-1@gated-at.bofh.it>
In reply to#1362392
On Tue, Mar 22, 2016 at 04:40:24PM +0900, DaeSeok Youn wrote:
> 2016-03-22 6:05 GMT+09:00 Greg KH <gregkh@linuxfoundation.org>:
> > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote:
> >> the tty_alloc_driver() can allocate memory for ttys and termios.
> >> And also it can release allocated memory easly with using
> >> put_tty_driver().
> >>
> >> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
> >
> > But you broke the driver in the previous patch, you can't do that, each
> > patch has to be 'stand-alone'.
> I am not sure about 'stand-alone'. this patch has to have dependency on
> previous patch..

Yes, that is ok, but your first patch said it was just function
renaming, and then the second patch broke functionality, and the third
fixed it up.  You should have a working kernel at each step in your
patch series, which you did not.

> And I have a question not related this thread,
> I had been waiting my patches merged and also have other patches on
> same file(in case of dgnc).
> I couldn't send next patches until previous patches are taken.
> How can I manage my patches for this case?

Just send your new patches and say they depend on the previous ones.  My
staging patch queue is almost empty at the moment so odds are I have
already applied, or rejected them.

thanks,

greg k-h

[toc] | [prev] | [next] | [standalone]


#1363155 — Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

FromDaeSeok Youn <daeseok.youn@gmail.com>
Date2016-03-23 02:40 +0100
SubjectRe: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc
Message-ID<rfFWa-4tr-21@gated-at.bofh.it>
In reply to#1362709
2016-03-22 22:02 GMT+09:00 Greg KH <gregkh@linuxfoundation.org>:
> On Tue, Mar 22, 2016 at 04:40:24PM +0900, DaeSeok Youn wrote:
>> 2016-03-22 6:05 GMT+09:00 Greg KH <gregkh@linuxfoundation.org>:
>> > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote:
>> >> the tty_alloc_driver() can allocate memory for ttys and termios.
>> >> And also it can release allocated memory easly with using
>> >> put_tty_driver().
>> >>
>> >> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
>> >
>> > But you broke the driver in the previous patch, you can't do that, each
>> > patch has to be 'stand-alone'.
>> I am not sure about 'stand-alone'. this patch has to have dependency on
>> previous patch..
>
> Yes, that is ok, but your first patch said it was just function
> renaming, and then the second patch broke functionality, and the third
> fixed it up.  You should have a working kernel at each step in your
> patch series, which you did not.
I got it. So I start over from fixing coding style of dgnc module like
I was doing
dgap module.

>
>> And I have a question not related this thread,
>> I had been waiting my patches merged and also have other patches on
>> same file(in case of dgnc).
>> I couldn't send next patches until previous patches are taken.
>> How can I manage my patches for this case?
>
> Just send your new patches and say they depend on the previous ones.  My
> staging patch queue is almost empty at the moment so odds are I have
> already applied, or rejected them.
thanks for your explanation. :-)

I will try to make patches more carefully.

regards,
Daeseok.
>
> thanks,
>
> greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web