<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/scsi/arcmsr, branch v4.18-rc4</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>scsi: arcmsr: Change driver version to v1.40.00.05-20180309</title>
<updated>2018-03-21T22:46:30+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2018-03-15T06:40:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=45dce24df5b7ef569484caed9b44856dbf447e00'/>
<id>45dce24df5b7ef569484caed9b44856dbf447e00</id>
<content type='text'>
Change driver version to v1.40.00.05-20180309

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change driver version to v1.40.00.05-20180309

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: Sleep to avoid CPU stuck too long for waiting adapter ready</title>
<updated>2018-03-21T22:46:30+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2018-03-15T06:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c2c62ebca18bc48cb7312f519e132b79cf42ea0e'/>
<id>c2c62ebca18bc48cb7312f519e132b79cf42ea0e</id>
<content type='text'>
Sleep to avoid CPU stuck too long for waiting adapter ready.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sleep to avoid CPU stuck too long for waiting adapter ready.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: Handle adapter removed due to thunderbolt cable disconnection.</title>
<updated>2018-03-21T22:46:30+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2018-03-15T06:33:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c4c1adb3490ea4b8b13da2dae8d563350ded4988'/>
<id>c4c1adb3490ea4b8b13da2dae8d563350ded4988</id>
<content type='text'>
Handle adapter removed due to thunderbolt cable disconnection.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle adapter removed due to thunderbolt cable disconnection.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: Rename ACB_F_BUS_HANG_ON to ACB_F_ADAPTER_REMOVED for adapter hot-plug</title>
<updated>2018-03-21T22:46:30+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2018-03-15T06:26:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=50b08240de61fcae54f6b35a25198209ac13c947'/>
<id>50b08240de61fcae54f6b35a25198209ac13c947</id>
<content type='text'>
Rename ACB_F_BUS_HANG_ON to ACB_F_ADAPTER_REMOVED for adapter hot-plug.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename ACB_F_BUS_HANG_ON to ACB_F_ADAPTER_REMOVED for adapter hot-plug.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: avoid do_gettimeofday</title>
<updated>2018-01-23T01:04:02+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2018-01-21T23:12:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=45596c7889a4454e340863c112dbc6cf525e5647'/>
<id>45596c7889a4454e340863c112dbc6cf525e5647</id>
<content type='text'>
The arcmsr uses its own implementation of time_to_tm(), along with
do_gettimeofday() to read the current time. While the algorithm used
here is fine in principle, it suffers from two problems:

- it assigns the seconds portion of the timeval to a 32-bit unsigned
  integer that overflows in 2106 even on 64-bit architectures.

- do_gettimeofday() returns a time_t that overflows in 2038 on all
  32-bit systems.

This changes the time retrieval function to ktime_get_real_seconds(),
which returns a proper 64-bit value, and replaces the open-coded
time_to_tm() algorithm with a call to the safe time64_to_tm().

I checked way all numbers are indexed and found that months are given in
range 0..11 while the days are in range 1..31, same as 'struct tm', but
the year value that the firmware expects starts in 2000 while 'struct
tm' is based on year 1900, so it needs a small adjustment.

[mkp: checkpatch tweaks]

Fixes: b416c099472a ("scsi: arcmsr: Add a function to set date and time to firmware")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The arcmsr uses its own implementation of time_to_tm(), along with
do_gettimeofday() to read the current time. While the algorithm used
here is fine in principle, it suffers from two problems:

- it assigns the seconds portion of the timeval to a 32-bit unsigned
  integer that overflows in 2106 even on 64-bit architectures.

- do_gettimeofday() returns a time_t that overflows in 2038 on all
  32-bit systems.

This changes the time retrieval function to ktime_get_real_seconds(),
which returns a proper 64-bit value, and replaces the open-coded
time_to_tm() algorithm with a call to the safe time64_to_tm().

I checked way all numbers are indexed and found that months are given in
range 0..11 while the days are in range 1..31, same as 'struct tm', but
the year value that the firmware expects starts in 2000 while 'struct
tm' is based on year 1900, so it needs a small adjustment.

[mkp: checkpatch tweaks]

Fixes: b416c099472a ("scsi: arcmsr: Add a function to set date and time to firmware")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: simplify arcmsr_request_device_map routine</title>
<updated>2017-12-21T02:11:51+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2017-12-13T08:33:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6ae9abe0bde53fb92c51d0f4e2a3f310a1cf5d38'/>
<id>6ae9abe0bde53fb92c51d0f4e2a3f310a1cf5d38</id>
<content type='text'>
Simplify arcmsr_request_device_map routine.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Simplify arcmsr_request_device_map routine.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: simplify all arcmsr_hbaX_get_config routine by call a new get_adapter_config function</title>
<updated>2017-12-21T02:11:50+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2017-12-12T10:53:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1e9c81080ddc1076d7735502f3ed778e4b96d3e3'/>
<id>1e9c81080ddc1076d7735502f3ed778e4b96d3e3</id>
<content type='text'>
Simplify all arcmsr_hbaX_get_config routine by call a new
get_adapter_config function.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Simplify all arcmsr_hbaX_get_config routine by call a new
get_adapter_config function.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: simplify arcmsr_hbaE_get_config function</title>
<updated>2017-12-21T02:11:50+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2017-12-12T10:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=22c4ae5b9906afcaea6184092a78b9164dfebcae'/>
<id>22c4ae5b9906afcaea6184092a78b9164dfebcae</id>
<content type='text'>
Simplify arcmsr_hbaE_get_config function.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Simplify arcmsr_hbaE_get_config function.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: waiting for iop firmware ready before issue get_config command to iop</title>
<updated>2017-12-21T02:11:49+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2017-12-12T10:48:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b6b3084acb58cced555cd6710a345f0080c31737'/>
<id>b6b3084acb58cced555cd6710a345f0080c31737</id>
<content type='text'>
Waiting for iop firmware ready before issue get_config command to iop
for adapter type A and D.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Waiting for iop firmware ready before issue get_config command to iop
for adapter type A and D.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scsi: arcmsr: simplify arcmsr_hbaC_get_config function</title>
<updated>2017-12-21T02:11:49+00:00</updated>
<author>
<name>Ching Huang</name>
<email>ching2048@areca.com.tw</email>
</author>
<published>2017-12-12T10:42:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=df9f0ee9d57166501516eb8b93fe54a4b88534d6'/>
<id>df9f0ee9d57166501516eb8b93fe54a4b88534d6</id>
<content type='text'>
Simplify arcmsr_hbaC_get_config function.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Simplify arcmsr_hbaC_get_config function.

Signed-off-by: Ching Huang &lt;ching2048@areca.com.tw&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
