From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Cc: "Cyrille Pitchen" <cyrille.pitchen@atmel.com>,
"David Woodhouse" <dwmw2@infradead.org>,
"Brian Norris" <computersforpeace@gmail.com>,
"Javier Martinez Canillas" <javier@osg.samsung.com>,
"Stephen Warren" <swarren@nvidia.com>,
"Jagan Teki" <jteki@openedev.com>, "Vignesh R" <vigneshr@ti.com>,
"Marek Vasut" <marex@denx.de>,
"Ezequiel García" <ezequiel@vanguardiasur.com.ar>,
"Rafał Miłecki" <zajec5@gmail.com>,
"Furquan Shaikh" <furquan@google.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5] mtd: spi-nor: Add support for S3AN spi-nor devices
Date: Tue, 20 Sep 2016 18:09:49 +0200 [thread overview]
Message-ID: <20160920180949.1bd3d48c@bbrezillon> (raw)
In-Reply-To: <CAPybu_2DNM5gLmTza_v-Xob_9rGQ69c8EVbuuRGg5pZHL3hgLA@mail.gmail.com>
On Tue, 20 Sep 2016 17:45:55 +0200
Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> wrote:
> Hi Boris
>
> Thanks for your review.
>
> On Tue, Sep 20, 2016 at 1:21 PM, Boris Brezillon
> <boris.brezillon@free-electrons.com> wrote:
> >> int sr, fsr;
> >> - sr = spi_nor_sr_ready(nor);
> >> +
> >> + sr = nor->flags & SNOR_F_READY_XSR_RDY ? s3an_sr_ready(nor) :
> >> + spi_nor_sr_ready(nor);
> >
> > Nit: I find
> >
> > if (nor->flags & SNOR_F_READY_XSR_RDY)
> > sr = s3an_sr_ready(nor);
> > else
> > sr = spi_nor_sr_ready(nor);
>
> Fixed in v6
>
>
> >> +static loff_t spi_nor_s3an_addr_convert(struct spi_nor *nor, unsigned int addr)
> >> +{
> >> + unsigned int offset;
> >> +
> >> + offset = (nor->page_size == 264) ? (addr % 264) : (addr % 528);
> >
> > Why not just
> >
> > offset = addr % nor->page_size;
> >
>
> Because kbuild test robot does not like it ;)
>
> make.cross ARCH=blackfin
>
> All errors (new ones prefixed by >>):
>
> drivers/built-in.o: In function `spi_nor_write':
> >> drivers/mtd/spi-nor/spi-nor.c:1050: undefined reference to `__moddi3'
>
> vim +1050 drivers/mtd/spi-nor/spi-nor.c
Hm, that's weird, I would expect that if you were manipulating a 64 bit
type, but that's not the case here.
Are you sure you didn't change the type of the addr parameter at some
point?
next prev parent reply other threads:[~2016-09-20 16:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 19:33 [PATCH v5] mtd: spi-nor: Add support for S3AN spi-nor devices Ricardo Ribalda Delgado
2016-09-20 9:52 ` Cyrille Pitchen
2016-09-20 11:21 ` Boris Brezillon
2016-09-20 15:45 ` Ricardo Ribalda Delgado
2016-09-20 16:09 ` Boris Brezillon [this message]
2016-09-20 16:25 ` Boris Brezillon
2016-09-20 18:01 ` Ricardo Ribalda Delgado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160920180949.1bd3d48c@bbrezillon \
--to=boris.brezillon@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=cyrille.pitchen@atmel.com \
--cc=dwmw2@infradead.org \
--cc=ezequiel@vanguardiasur.com.ar \
--cc=furquan@google.com \
--cc=javier@osg.samsung.com \
--cc=jteki@openedev.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marex@denx.de \
--cc=ricardo.ribalda@gmail.com \
--cc=swarren@nvidia.com \
--cc=vigneshr@ti.com \
--cc=zajec5@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.