From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: doronc@siano-ms.com
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH 13/17]DVB:Siano drivers - Support big endian platform which uses SPI/I2C
Date: Fri, 23 Sep 2011 19:45:18 -0300 [thread overview]
Message-ID: <4E7D0BFE.8020201@redhat.com> (raw)
In-Reply-To: <1316514714.5199.91.camel@Doron-Ubuntu>
Em 20-09-2011 07:31, Doron Cohen escreveu:
> Hi,
> This patch step adds support big endian platform which uses SPI/I2C
seems ok.
>
> Thanks,
> Doron Cohen
>
>>From 2b77c0b5f69924206b9e09cda42aad56772e9380 Mon Sep 17 00:00:00 2001
> From: Doron Cohen <doronc@siano-ms.com>
> Date: Tue, 20 Sep 2011 08:31:52 +0300
> Subject: [PATCH 17/21] Support big endian platform which uses SPI/I2C
> (need to switch header byte order)
>
> ---
> drivers/media/dvb/siano/smscoreapi.c | 9 ++++++---
> 1 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/media/dvb/siano/smscoreapi.c
> b/drivers/media/dvb/siano/smscoreapi.c
> index e50e356..459c6e9 100644
> --- a/drivers/media/dvb/siano/smscoreapi.c
> +++ b/drivers/media/dvb/siano/smscoreapi.c
> @@ -570,8 +570,8 @@ static int smscore_load_firmware_family2(struct
> smscore_device_t *coredev,
> sms_debug("sending reload command.");
> SMS_INIT_MSG(msg, MSG_SW_RELOAD_START_REQ,
> sizeof(struct SmsMsgHdr_S));
> - rc = smscore_sendrequest_and_wait(coredev, msg,
> - msg->msgLength,
> + smsendian_handle_tx_message((struct SmsMsgHdr_S *)msg);
> + rc = smscore_sendrequest_and_wait(coredev, msg, msg->msgLength,
> &coredev->reload_start_done);
>
> if (rc < 0) {
> @@ -597,7 +597,7 @@ static int smscore_load_firmware_family2(struct
> smscore_device_t *coredev,
> memcpy(DataMsg->Payload, payload, payload_size);
>
>
> -
> + smsendian_handle_tx_message((struct SmsMsgHdr_S *)msg);
> rc = smscore_sendrequest_and_wait(coredev, DataMsg,
> DataMsg->xMsgHeader.msgLength,
> &coredev->data_download_done);
> @@ -976,6 +976,7 @@ static int smscore_detect_mode(struct
> smscore_device_t *coredev)
> SMS_INIT_MSG(msg, MSG_SMS_GET_VERSION_EX_REQ,
> sizeof(struct SmsMsgHdr_S));
>
> + smsendian_handle_tx_message((struct SmsMsgHdr_S *)msg);
> rc = smscore_sendrequest_and_wait(coredev, msg, msg->msgLength,
> &coredev->version_ex_done);
>
> @@ -1356,6 +1357,8 @@ void smscore_onresponse(struct smscore_device_t
> *coredev,
> rc = client->onresponse_handler(client->context, cb);
>
> if (rc < 0) {
> + smsendian_handle_rx_message((struct SmsMsgData_S *)phdr);
> +
> switch (phdr->msgType) {
> case MSG_SMS_ISDBT_TUNE_RES:
> sms_debug("MSG_SMS_ISDBT_TUNE_RES");
prev parent reply other threads:[~2011-09-23 22:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-20 10:31 [PATCH 13/17]DVB:Siano drivers - Support big endian platform which uses SPI/I2C Doron Cohen
2011-09-23 22:45 ` Mauro Carvalho Chehab [this message]
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=4E7D0BFE.8020201@redhat.com \
--to=mchehab@redhat.com \
--cc=doronc@siano-ms.com \
--cc=linux-media@vger.kernel.org \
/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.