Re: [PATCH 05/14] qcom: mtd: nand: allocate bam transaction

2017-07-16 Thread Abhishek Sahu
On 2017-07-03 13:52, Sricharan R wrote: Hi Abhishek, <..> +/* Allocates and Initializes the BAM transaction */ +static struct bam_transaction * +alloc_bam_transaction(struct qcom_nand_controller *nandc, unsigned int num_cw) +{ + struct bam_transaction *bam_txn; + + bam_txn = devm

Re: [PATCH 05/14] qcom: mtd: nand: allocate bam transaction

2017-07-16 Thread Abhishek Sahu
On 2017-06-29 15:20, Marek Vasut wrote: On 06/29/2017 09:15 AM, Abhishek Sahu wrote: The BAM transaction is the core data structure which will be used for all the data transfers in QPIC NAND. Since the base layer is serializing all the NAND requests so allocating BAM transaction before every tra

Re: [PATCH 05/14] qcom: mtd: nand: allocate bam transaction

2017-07-03 Thread Sricharan R
Hi Abhishek, <..> > +/* Allocates and Initializes the BAM transaction */ > +static struct bam_transaction * > +alloc_bam_transaction(struct qcom_nand_controller *nandc, unsigned int > num_cw) > +{ > + struct bam_transaction *bam_txn; > + > + bam_txn = devm_kzalloc(nandc->dev, sizeof(*bam

Re: [PATCH 05/14] qcom: mtd: nand: allocate bam transaction

2017-06-29 Thread Marek Vasut
On 06/29/2017 09:15 AM, Abhishek Sahu wrote: > The BAM transaction is the core data structure which will be used > for all the data transfers in QPIC NAND. Since the base layer is > serializing all the NAND requests so allocating BAM transaction > before every transfer will be overhead. The memory

[PATCH 05/14] qcom: mtd: nand: allocate bam transaction

2017-06-29 Thread Abhishek Sahu
The BAM transaction is the core data structure which will be used for all the data transfers in QPIC NAND. Since the base layer is serializing all the NAND requests so allocating BAM transaction before every transfer will be overhead. The memory for it be allocated during probe time and before ever