Purchase Inquiry

2018-09-12 Thread Purchases
Good morning, We have a client who is interested in some of your services. I will provide further details should we get a response from you. Regards, Joseph Hamilton Accounts Payable c\o Hamtons Merchants Trading Co. Int'l 10722 - 32nd Street SE, Calgary AB T2C 5B2 Canada

[PATCH] checkpatch: don't check TODO file presence

2018-09-12 Thread Antony Pavlov
The commit b3baf2d86149 ("TODO: remove unused file") drops the TODO file. Alas scripts/checkpatch.pl checks TODO file presence in top_of_kernel_tree(). Without TODO checkpatch.pl exits with 'Must be run from the top-level dir. of a kernel tree'. Signed-off-by: Antony Pavlov ---

[PATCH for master 0/2] MIPS and PCI-related fixes

2018-09-12 Thread Antony Pavlov
Antony Pavlov (2): MIPS: fix PCI quirk infrastructure build pci_of_match_device: don't crash on MIPS Malta arch/mips/lib/barebox.lds.S | 11 +++ drivers/pci/pci.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) -- 2.18.0

[PATCH for master 1/2] MIPS: fix PCI quirk infrastructure build

2018-09-12 Thread Antony Pavlov
The commit fc2c618c2038 ("pci: add quirk infrastructure") adds necessary ld-script changes only for ARM architecture. As a result, qemu-malta build fails: LD barebox drivers/built-in.o: In function `pci_fixup_device': (.text.pci_fixup_device+0x30): undefined reference to

[PATCH for master 2/2] pci_of_match_device: don't crash on MIPS Malta

2018-09-12 Thread Antony Pavlov
In arch/mips/mach-malta/pci.c PCI controller is instantiated without dt and struct pci_controller parent field is NULL. Signed-off-by: Antony Pavlov --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index

[PATCH v2 7/7] ratp: fix incorrect whitespaces in method calls

2018-09-12 Thread Aleksander Morgado
This is a simple coding style fix to avoid the whitespace before the open-parenthesis in method calls. Signed-off-by: Aleksander Morgado --- common/ratp/getenv.c | 12 ++-- common/ratp/md.c | 8 common/ratp/mw.c | 6 +++--- common/ratp/reset.c | 4 ++-- 4 files

[PATCH v2 6/7] ratp: use pr_ macros to print messages

2018-09-12 Thread Aleksander Morgado
Following suggestions in other patch reviews, the RAPT commands are updated to use pr_err() instead of plain printf() to report errors to the user. Signed-off-by: Aleksander Morgado --- common/ratp/md.c| 12 +++- common/ratp/mw.c| 14 -- common/ratp/reset.c | 6

[PATCH v2 5/7] ratp: use __packed instead of the full form

2018-09-12 Thread Aleksander Morgado
Just a minor coding style change to follow the suggestions given in patch reviews for other RATP commands. Signed-off-by: Aleksander Morgado --- common/ratp/md.c| 4 ++-- common/ratp/mw.c| 4 ++-- common/ratp/reset.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v2 2/7] bbremote: implement i2c read/write support

2018-09-12 Thread Aleksander Morgado
Extend the bbremote script with operations to perform binary i2c read/write operations. E.g.: barebox:/ i2c_read -b 0 -a 0x68 -r 0x06A0 -c 4 -w 0x8f 0x30 0x00 0x00 barebox:/ i2c_write -b 0 -a 0x68 -r 0x06A0 -w 0x87 0x30 0x00 0x00 barebox:/ i2c_read -b 0 -a 0x68 -r 0x06A0 -c 4

[PATCH v2 4/7] bbremote: implement support for GPIO operations

2018-09-12 Thread Aleksander Morgado
Signed-off-by: Aleksander Morgado --- scripts/remote/controller.py | 36 ++ scripts/remote/main.py | 37 ++ scripts/remote/messages.py | 93 3 files changed, 166 insertions(+) diff --git a/scripts/remote/controller.py

[PATCH v2 1/7] ratp: implement i2c read/write support

2018-09-12 Thread Aleksander Morgado
Introduce two new RATP commands that allow running i2c read/write operations, very similar in format to the already existing md/mw RATP commands. The messages are defined with a fixed 16-bit long register field, but it will only be treated as a 16-bit address if I2C_FLAG_WIDE_ADDRESS is set in

[PATCH v2 3/7] ratp: implement support for GPIO commands

2018-09-12 Thread Aleksander Morgado
Introduce three new RATP commands that allow getting and setting GPIO values as well as configuring the direction of the GPIO pins. Signed-off-by: Aleksander Morgado --- common/ratp/Kconfig | 10 ++- common/ratp/Makefile | 1 + common/ratp/gpio.c | 144

[PATCH v2 0/7] RATP i2c and GPIO support

2018-09-12 Thread Aleksander Morgado
This series of patches implements support for i2c and GPIO operations via RATP. It addresses most of the comments from the first series review, except for Sascha's suggestion to implement name resolving for the i2c buses and Andrey's suggestion to prepare a new helper method to initialize the

Re: [PATCH 1/4] ratp: implement i2c read/write support

2018-09-12 Thread Aleksander Morgado
Hey Andrey, Thanks for the review :) see some comments below. >> + /* Don't read anything on error or if 0 bytes were requested */ >> + if (size > 0) { >> + adapter = i2c_get_adapter(i2c_read_req->bus); >> + if (!adapter) { >> +

Re: problems writing an fs image to a disk partition

2018-09-12 Thread Giorgio Dal Molin
> On September 12, 2018 at 9:12 AM Sascha Hauer wrote: > > > Hi Giorgio, > > On Tue, Sep 11, 2018 at 10:33:52PM +0200, Giorgio Dal Molin wrote: > > Hi, > > > > today I've tried barebox v2018.09.0 on an EFI system. > > It basically runs but I have problems when writing an fs image file > >

Re: problems writing an fs image to a disk partition

2018-09-12 Thread Sascha Hauer
Hi Giorgio, On Tue, Sep 11, 2018 at 10:33:52PM +0200, Giorgio Dal Molin wrote: > Hi, > > today I've tried barebox v2018.09.0 on an EFI system. > It basically runs but I have problems when writing an fs image file > to a disk partition: > > > cp rootfs.img /dev/disk1.userland > > barebox

[PATCH 1/2] fs: devfs: Create device files as character devices

2018-09-12 Thread Sascha Hauer
Without this files in /dev/ appear as regular files. copy_file() stumbles upon this as it tries a truncate() on that files which then fails. Create the files as character devices so that copy_file() works as expected. Fixes: 9137c41915 ("fs: devfs: Switch to dentry cache implementation")

[PATCH 2/2] fs: devfs: fix r/w permissions

2018-09-12 Thread Sascha Hauer
The real r/w flags were lost in the switch to dentry cache implementation. Restore them. Fixes: 9137c41915 ("fs: devfs: Switch to dentry cache implementation") Signed-off-by: Sascha Hauer --- fs/devfs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/devfs.c