Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753771AbaKXNEz (ORCPT ); Mon, 24 Nov 2014 08:04:55 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:46429 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753283AbaKXNEw (ORCPT ); Mon, 24 Nov 2014 08:04:52 -0500 X-AuditID: cbfec7f5-b7fc86d0000066b7-1f-54732cf19b11 Message-id: <54732CF0.6040404@samsung.com> Date: Mon, 24 Nov 2014 14:04:48 +0100 From: Karol Wrona User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-version: 1.0 To: Arnd Bergmann Cc: Jonathan Cameron , Samuel Ortiz , Lee Jones , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Kyungmin Park Subject: Re: [PATCH v2 1/5] misc: sensorhub: Add sensorhub driver References: <1416593957-19788-1-git-send-email-k.wrona@samsung.com> <54707ECA.7090800@kernel.org> <547318E0.8070407@samsung.com> <5942877.97OQIAaJx7@wuerfel> In-reply-to: <5942877.97OQIAaJx7@wuerfel> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsVy+t/xq7ofdYpDDA5NM7H4O+kYu8XGGetZ LR40rWKyONv0ht3i/tejjBbzjrxjsbi8aw6bxeluVgcOj9+/JjF6bFrVyeZx59oeNo95JwM9 +rasYvT4vEkugC2KyyYlNSezLLVI3y6BK2Pyk03sBUu4K/a/L2lg/MTRxcjJISFgIjHz+iEW CFtM4sK99WxdjFwcQgJLGSW63y5nhXA+MUocX/qSGaSKV0BLYumfCWAdLAKqEnMmTwWz2QTU JZp3LAarERWIkLiyZg4jRL2gxI/J98BqRAQUJaa+eAZWwywwkUnid68tiC0s4Cgxt3ERI8Sy hYwSO85dAGvgFNCUuDdtGjtEg63EgvfrWCBseYnNa94yT2AUmIVkxywkZbOQlC1gZF7FKJpa mlxQnJSea6RXnJhbXJqXrpecn7uJERL2X3cwLj1mdYhRgINRiYf3R09hiBBrYllxZe4hRgkO ZiURXjGx4hAh3pTEyqrUovz4otKc1OJDjEwcnFINjDu9wxt0ziayeMzpv/XNJ+Spnaq0yT2F nU8bWwKj5kg2rfrNdexjyUG3V39Ue6YYe9bdiueYeZDzVfLcmwp7YhaoL006d7pefO2yqpo5 nBv6/pafbC2unGfiX18so28T+PvSJqt1ceF2wgYNp83nOt6JszKY+91G7mXFDMbvDm9P117c VziNV4mlOCPRUIu5qDgRAMqpKe1ZAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/24/2014 01:35 PM, Arnd Bergmann wrote: > On Monday 24 November 2014 12:39:12 Karol Wrona wrote: >> It is possible that it can serve as input device sth else. So you are >> right about MFD. >> >> The structure of mfd directory is flat. I wonder what can be better: >> just putting these sources inside mfd dir or to some new category inside mfd. >> Generally sensorhub will not differ than others mfd devs but in the near future >> it can be that we end up with different (sensor)hubs or in my case with one core >> driver with several interfaces, mcu's modes - sth like ssp-i2c.c etc. >> These drivers can grow in size as these devices will appear in different boards. > > You should be able to abstract the interface differences using regmap for the > most part, so there would only be a small stub that is i2c or spi specific, > and a lot of mfd drivers have that. > >> Also there is a question where firmware loader (stm32fwu) should be placed as it >> is a library? > > Can you describe what this library does? Is this for loading firmware into > device RAM or into flash? Does it always use USB? Generally it uploads firmware to STM32F4xx mcu using SPI. Now it writes to flash. Its is a subset of STM32 boot code protocol (I suppose version 1.0 but it is poorly documented, version 1.1 is available on ST site) so it always can be improved to support full protocol or other interfaces. > > Arnd > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/